Skip to content

Commit cafc821

Browse files
committed
fix Include vout check as well in OutPoint check for shared input
1 parent 151a2ec commit cafc821

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/interactivetxs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -641,7 +641,7 @@ impl NegotiationContext {
641641
return Err(AbortReason::DuplicateFundingInput);
642642
}
643643
// Check if receied shared input matches the expected
644-
if shared_funding_input.0.txid != *shared_txid {
644+
if !(shared_funding_input.0.txid == *shared_txid && shared_funding_input.0.vout == msg.prevtx_out) {
645645
return Err(AbortReason::UnexpectedFundingInput);
646646
} else {
647647
let previous_output = OutPoint { txid: *shared_txid, vout: msg.prevtx_out };

0 commit comments

Comments
 (0)