]> Untitled Git - bdk/commit
Add fee_amount() and fee_rate() functions to PsbtUtils trait
authorSteve Myers <steve@notmandatory.org>
Sun, 21 Aug 2022 01:54:46 +0000 (20:54 -0500)
committerSteve Myers <steve@notmandatory.org>
Tue, 13 Sep 2022 03:01:18 +0000 (22:01 -0500)
commitab41679368be79e8645915b40be554cc07557931
tree6ec18154ac7d665e0df998fa14ee0ed90bcde9e8
parent7b12f35698ff468f676665704fb274c36cb305df
Add fee_amount() and fee_rate() functions to PsbtUtils trait

PsbtUtils.fee_amount(), calculates the PSBT total transaction fee amount in Sats.
PsbtUtils.fee_rate(), calculates the PSBT FeeRate, the value is only accurate AFTER the PSBT is finalized.
src/psbt/mod.rs