From: Matt Corallo Date: Sun, 24 Dec 2023 17:12:18 +0000 (+0000) Subject: Disable fuzzing-reachable debug assertion X-Git-Tag: v0.0.123-beta~80^2~8 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=c7258426cd73b4b8e48de3b0994c144b4a657a20;p=rust-lightning Disable fuzzing-reachable debug assertion Because of txid conflicts, a txid can match both a local and remote commitment transaction when fuzzing. Thus, we disable this assertion when fuzzing. --- diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index e65b54f57..55b7b503f 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -3679,6 +3679,7 @@ impl ChannelMonitorImpl { claimable_outpoints.append(&mut new_outpoints); if new_outpoints.is_empty() { if let Some((mut new_outpoints, new_outputs)) = self.check_spend_holder_transaction(&tx, height, &block_hash, &logger) { + #[cfg(not(fuzzing))] debug_assert!(commitment_tx_to_counterparty_output.is_none(), "A commitment transaction matched as both a counterparty and local commitment tx?"); if !new_outputs.1.is_empty() {