Skip to content

Commit ee8df0d

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

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

lightning/src/events/bump_transaction.rs

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -820,12 +820,10 @@ where
820820
)?;
821821

822822
#[cfg(debug_assertions)]
823-
let total_satisfaction_weight = must_spend_satisfaction_weight
824-
+ coin_selection
825-
.confirmed_utxos
826-
.iter()
827-
.map(|utxo| utxo.satisfaction_weight)
828-
.sum::<u64>();
823+
let input_satisfaction_weight: u64 =
824+
coin_selection.confirmed_utxos.iter().map(|utxo| utxo.satisfaction_weight).sum();
825+
#[cfg(debug_assertions)]
826+
let total_satisfaction_weight = must_spend_satisfaction_weight + input_satisfaction_weight;
829827
#[cfg(debug_assertions)]
830828
let input_value: u64 =
831829
coin_selection.confirmed_utxos.iter().map(|utxo| utxo.output.value.to_sat()).sum();

0 commit comments

Comments
 (0)