Skip to content

Commit fc11193

Browse files
Update lightning/src/events/bump_transaction.rs
Co-authored-by: Matt Corallo <[email protected]>
1 parent 20ca2e0 commit fc11193

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -666,13 +666,11 @@ where
666666
output: vec![],
667667
};
668668

669+
let input_satisfaction_weight: u64 =
670+
coin_selection.confirmed_utxos.iter().map(|utxo| utxo.satisfaction_weight).sum();
669671
let total_satisfaction_weight = ANCHOR_INPUT_WITNESS_WEIGHT
670672
+ EMPTY_SCRIPT_SIG_WEIGHT
671-
+ coin_selection
672-
.confirmed_utxos
673-
.iter()
674-
.map(|utxo| utxo.satisfaction_weight)
675-
.sum::<u64>();
673+
+ input_satisfaction_weight;
676674
let total_input_amount = must_spend_amount
677675
+ coin_selection.confirmed_utxos.iter().map(|utxo| utxo.output.value).sum();
678676

0 commit comments

Comments
 (0)