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 c839a36 commit 9986d2eCopy full SHA for 9986d2e
lightning/src/ln/interactivetxs.rs
@@ -2076,11 +2076,7 @@ pub(super) fn calculate_change_output_value(
2076
2077
let mut total_input_satoshis = 0u64;
2078
let mut our_funding_inputs_weight = 0u64;
2079
- for FundingTxInput { utxo, prevtx, .. } in context.our_funding_inputs.iter() {
2080
- let txid = prevtx.compute_txid();
2081
- if utxo.outpoint.txid != txid {
2082
- return Err(AbortReason::PrevTxOutInvalid);
2083
- }
+ for FundingTxInput { utxo, .. } in context.our_funding_inputs.iter() {
2084
total_input_satoshis = total_input_satoshis.saturating_add(utxo.output.value.to_sat());
2085
2086
let weight = BASE_INPUT_WEIGHT + utxo.satisfaction_weight;
0 commit comments