Skip to content

Commit

Permalink
add comments
Browse files Browse the repository at this point in the history
  • Loading branch information
lisicky committed Nov 14, 2024
1 parent f02922f commit 6b06b0b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions rust/src/builders/tx_builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1140,10 +1140,12 @@ impl TransactionBuilder {
aligned_fee_after.checked_sub(&aligned_fee_before)
}

///Set exact fee for the transaction. If the real fee will be bigger then the set value, the transaction will not be created on .build_tx()
pub fn set_fee(&mut self, fee: &Coin) {
self.fee_request = TxBuilderFee::Exactly(fee.clone());
}

///Set minimal fee for the transaction. If the real fee will be bigger then the set value, the transaction will be created with the real fee.
pub fn set_min_fee(&mut self, fee: &Coin) {
self.fee_request = TxBuilderFee::NotLess(fee.clone());
}
Expand Down

0 comments on commit 6b06b0b

Please sign in to comment.