Skip to content

Commit 9986d2e

Browse files
committed
f - remove unnecessary check
1 parent c839a36 commit 9986d2e

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

lightning/src/ln/interactivetxs.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,11 +2076,7 @@ pub(super) fn calculate_change_output_value(
20762076

20772077
let mut total_input_satoshis = 0u64;
20782078
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-
}
2079+
for FundingTxInput { utxo, .. } in context.our_funding_inputs.iter() {
20842080
total_input_satoshis = total_input_satoshis.saturating_add(utxo.output.value.to_sat());
20852081

20862082
let weight = BASE_INPUT_WEIGHT + utxo.satisfaction_weight;

0 commit comments

Comments
 (0)