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 991d62b commit 5715c85Copy full SHA for 5715c85
lightning/src/chain/onchaintx.rs
@@ -1011,6 +1011,9 @@ impl<ChannelSigner: Sign> OnchainTxHandler<ChannelSigner> {
1011
) -> Option<(Transaction, ExternalHTLCClaim)> {
1012
let find_htlc = |holder_commitment: &HolderCommitmentTransaction| -> Option<(Transaction, ExternalHTLCClaim)> {
1013
let trusted_tx = holder_commitment.trust();
1014
+ if outp.txid != trusted_tx.txid() {
1015
+ return None;
1016
+ }
1017
trusted_tx.htlcs().iter().enumerate()
1018
.find(|(_, htlc)| if let Some(output_index) = htlc.transaction_output_index {
1019
output_index == outp.vout
0 commit comments