Skip to content

Commit ab74d7c

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 539a2c5 commit ab74d7c

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
@@ -3655,6 +3655,7 @@ impl<Signer: WriteableEcdsaChannelSigner> ChannelMonitorImpl<Signer> {
36553655
claimable_outpoints.append(&mut new_outpoints);
36563656
if new_outpoints.is_empty() {
36573657
if let Some((mut new_outpoints, new_outputs)) = self.check_spend_holder_transaction(&tx, height, &block_hash, &logger) {
3658+
#[cfg(not(fuzzing))]
36583659
debug_assert!(commitment_tx_to_counterparty_output.is_none(),
36593660
"A commitment transaction matched as both a counterparty and local commitment tx?");
36603661
if !new_outputs.1.is_empty() {

0 commit comments

Comments
 (0)