Skip to content

Commit 3fca6c2

Browse files
committed
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.
1 parent a634fd1 commit 3fca6c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lightning/src/chain/channelmonitor.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3679,6 +3679,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
36793679
claimable_outpoints.append(&mut new_outpoints);
36803680
if new_outpoints.is_empty() {
36813681
if let Some((mut new_outpoints, new_outputs)) = self.check_spend_holder_transaction(&tx, height, &block_hash, &logger) {
3682+
#[cfg(not(fuzzing))]
36823683
debug_assert!(commitment_tx_to_counterparty_output.is_none(),
36833684
"A commitment transaction matched as both a counterparty and local commitment tx?");
36843685
if !new_outputs.1.is_empty() {

0 commit comments

Comments
 (0)