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 48930e3 commit 381ff40Copy full SHA for 381ff40
lightning/src/events/bump_transaction.rs
@@ -827,12 +827,10 @@ where
827
.map(|utxo| utxo.satisfaction_weight)
828
.sum::<u64>();
829
#[cfg(debug_assertions)]
830
- let total_input_amount = must_spend_amount
831
- + coin_selection
832
- .confirmed_utxos
833
- .iter()
834
- .map(|utxo| utxo.output.value.to_sat())
835
- .sum::<u64>();
+ let input_value: u64 =
+ coin_selection.confirmed_utxos.iter().map(|utxo| utxo.output.value.to_sat()).sum();
+ #[cfg(debug_assertions)]
+ let total_input_amount = must_spend_amount + input_value;
836
837
self.process_coin_selection(&mut htlc_tx, &coin_selection);
838
0 commit comments