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.
1 parent 20ca2e0 commit fc11193Copy full SHA for fc11193
lightning/src/events/bump_transaction.rs
@@ -666,13 +666,11 @@ where
666
output: vec![],
667
};
668
669
+ let input_satisfaction_weight: u64 =
670
+ coin_selection.confirmed_utxos.iter().map(|utxo| utxo.satisfaction_weight).sum();
671
let total_satisfaction_weight = ANCHOR_INPUT_WITNESS_WEIGHT
672
+ EMPTY_SCRIPT_SIG_WEIGHT
- + coin_selection
- .confirmed_utxos
673
- .iter()
674
- .map(|utxo| utxo.satisfaction_weight)
675
- .sum::<u64>();
+ + input_satisfaction_weight;
676
let total_input_amount = must_spend_amount
677
+ coin_selection.confirmed_utxos.iter().map(|utxo| utxo.output.value).sum();
678
0 commit comments