Skip to content

Commit 9bc7fe8

Browse files
Merge #957: Documentation regarding absolute_fee and fee_rate updated
10b4b6c Documentations regarding absolute_fee and fee_rate updated (TATHAGATA ROY) Pull request description: ### Description This pr solves this issue #856 Updated the documentation for absolute fee and fee rate in BDK docs #### All Submissions: * [x] I've signed all my commits * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md) #### Bugfixes: * [x] I'm linking the issue being fixed by this PR ACKs for top commit: danielabrozzoni: ACK 10b4b6c Tree-SHA512: 5b5f360b742313443368dc0b75275c38888cb358545661f7d9c78f3290789c50ffa9830e18473055d8e3da544c7d9527b023a1acdb28eaf862b24c892b23e9c4
2 parents 796f433 + 10b4b6c commit 9bc7fe8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

crates/bdk/src/wallet/tx_builder.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,9 @@ impl<'a, D, Cs: CoinSelectionAlgorithm, Ctx: TxBuilderContext> TxBuilder<'a, D,
190190
}
191191

192192
/// Set an absolute fee
193+
/// The fee_absolute method refers to the absolute transaction fee in satoshis (sats).
194+
/// If anyone sets both the fee_absolute method and the fee_rate method,
195+
/// the fee_absolute value will take precedence over the fee_rate.
193196
pub fn fee_absolute(&mut self, fee_amount: u64) -> &mut Self {
194197
self.params.fee_policy = Some(FeePolicy::FeeAmount(fee_amount));
195198
self

0 commit comments

Comments
 (0)