From: TATHAGATA ROY <98920199+roy9495@users.noreply.github.com> Date: Thu, 27 Apr 2023 21:34:16 +0000 (+0000) Subject: Documentations regarding absolute_fee and fee_rate updated X-Git-Tag: v1.0.0-alpha.1~8^2 X-Git-Url: http://internal-gitweb-vhost/script/%22https:/database/scripts/struct.LegacyAddressTooLongError.html?a=commitdiff_plain;h=10b4b6c665d58321436413d1d9c0486e7d74c5ec;p=bdk Documentations regarding absolute_fee and fee_rate updated Update tx_builder.rs --- diff --git a/crates/bdk/src/wallet/tx_builder.rs b/crates/bdk/src/wallet/tx_builder.rs index dbd4811c..6e812e59 100644 --- a/crates/bdk/src/wallet/tx_builder.rs +++ b/crates/bdk/src/wallet/tx_builder.rs @@ -190,6 +190,9 @@ impl<'a, D, Cs: CoinSelectionAlgorithm, Ctx: TxBuilderContext> TxBuilder<'a, D, } /// Set an absolute fee + /// The fee_absolute method refers to the absolute transaction fee in satoshis (sats). + /// If anyone sets both the fee_absolute method and the fee_rate method, + /// the fee_absolute value will take precedence over the fee_rate. pub fn fee_absolute(&mut self, fee_amount: u64) -> &mut Self { self.params.fee_policy = Some(FeePolicy::FeeAmount(fee_amount)); self