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 6f7b3c2 commit 1b90060Copy full SHA for 1b90060
lightning/src/chain/channelmonitor.rs
@@ -2201,7 +2201,9 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
2201
{
2202
if htlc.offered {
2203
let source = sources_iter.next().expect("Non-dust HTLC sources didn't match commitment tx");
2204
- debug_assert!(source.possibly_matches_output(htlc));
+ #[cfg(debug_assertions)] {
2205
+ assert!(source.possibly_matches_output(htlc));
2206
+ }
2207
htlc_outputs.push((htlc.clone(), Some(counterparty_sig.clone()), Some(source)));
2208
} else {
2209
htlc_outputs.push((htlc.clone(), Some(counterparty_sig.clone()), None));
0 commit comments