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 85f406a commit ee8df0dCopy full SHA for ee8df0d
lightning/src/events/bump_transaction.rs
@@ -820,12 +820,10 @@ where
820
)?;
821
822
#[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>();
+ let input_satisfaction_weight: u64 =
+ coin_selection.confirmed_utxos.iter().map(|utxo| utxo.satisfaction_weight).sum();
+ #[cfg(debug_assertions)]
+ let total_satisfaction_weight = must_spend_satisfaction_weight + input_satisfaction_weight;
829
830
let input_value: u64 =
831
coin_selection.confirmed_utxos.iter().map(|utxo| utxo.output.value.to_sat()).sum();
0 commit comments