Skip to content

Commit 5715c85

Browse files
committed
f! add missing txid check
1 parent 991d62b commit 5715c85

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lightning/src/chain/onchaintx.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,6 +1011,9 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
10111011
) -> Option<(Transaction, ExternalHTLCClaim)> {
10121012
let find_htlc = |holder_commitment: &HolderCommitmentTransaction| -> Option<(Transaction, ExternalHTLCClaim)> {
10131013
let trusted_tx = holder_commitment.trust();
1014+
if outp.txid != trusted_tx.txid() {
1015+
return None;
1016+
}
10141017
trusted_tx.htlcs().iter().enumerate()
10151018
.find(|(_, htlc)| if let Some(output_index) = htlc.transaction_output_index {
10161019
output_index == outp.vout

0 commit comments

Comments
 (0)