]> Untitled Git - bdk/commitdiff
Documentations regarding absolute_fee and fee_rate updated
authorTATHAGATA ROY <98920199+roy9495@users.noreply.github.com>
Thu, 27 Apr 2023 21:34:16 +0000 (21:34 +0000)
committerroy9495 <royzen9495@gmail.com>
Thu, 25 May 2023 22:00:46 +0000 (22:00 +0000)
Update tx_builder.rs

crates/bdk/src/wallet/tx_builder.rs

index dbd4811c182267fd7c1261ff6ee59e3b7847217d..6e812e595b74bf584d1375143e508436bb349816 100644 (file)
@@ -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