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 4348e49 commit 2ead59bCopy full SHA for 2ead59b
lightning/src/chain/channelmonitor.rs
@@ -1900,9 +1900,10 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitor<Signer> {
1900
Some(commitment_tx_output_idx) == htlc.transaction_output_index
1901
} else { false }
1902
});
1903
- if !htlc_update_confd {
1904
- res.insert(source.clone(), (htlc.clone(),
1905
- us.counterparty_fulfilled_htlcs.get(&SentHTLCId::from_source(source)).cloned()));
+ let counterparty_resolved_preimage_opt =
+ us.counterparty_fulfilled_htlcs.get(&SentHTLCId::from_source(source)).cloned();
+ if !htlc_update_confd || counterparty_resolved_preimage_opt.is_some() {
1906
+ res.insert(source.clone(), (htlc.clone(), counterparty_resolved_preimage_opt));
1907
}
1908
1909
0 commit comments