We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
build_fee_bump
1 parent 61626d4 commit 8a08bf5Copy full SHA for 8a08bf5
src/wallet/mod.rs
@@ -1746,9 +1746,7 @@ impl Wallet {
1746
let fee = self
1747
.calculate_fee(&tx)
1748
.map_err(|_| BuildFeeBumpError::FeeRateUnavailable)?;
1749
- let fee_rate = self
1750
- .calculate_fee_rate(&tx)
1751
- .map_err(|_| BuildFeeBumpError::FeeRateUnavailable)?;
+ let fee_rate = fee / tx.weight();
1752
1753
// Remove the inputs from the tx and process them.
1754
let utxos: Vec<WeightedUtxo> = tx
0 commit comments