Skip to content

Commit 1b90060

Browse files
committed
f debug the debug-assert
1 parent 6f7b3c2 commit 1b90060

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2201,7 +2201,9 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
22012201
{
22022202
if htlc.offered {
22032203
let source = sources_iter.next().expect("Non-dust HTLC sources didn't match commitment tx");
2204-
debug_assert!(source.possibly_matches_output(htlc));
2204+
#[cfg(debug_assertions)] {
2205+
assert!(source.possibly_matches_output(htlc));
2206+
}
22052207
htlc_outputs.push((htlc.clone(), Some(counterparty_sig.clone()), Some(source)));
22062208
} else {
22072209
htlc_outputs.push((htlc.clone(), Some(counterparty_sig.clone()), None));

0 commit comments

Comments
 (0)