From 464391c245d9d457005d715c3f1b736b406ee79e Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Wed, 14 Sep 2022 00:49:21 +0000 Subject: [PATCH] Fix compile warning in fuzzing introduced in cd0d19c005ee4fa11de93a --- lightning/src/chain/channelmonitor.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lightning/src/chain/channelmonitor.rs b/lightning/src/chain/channelmonitor.rs index bfb6e1ab3..28f3b5999 100644 --- a/lightning/src/chain/channelmonitor.rs +++ b/lightning/src/chain/channelmonitor.rs @@ -3162,8 +3162,10 @@ impl ChannelMonitorImpl { let htlc_claim = HTLCClaim::from_witness(&input.witness); let revocation_sig_claim = htlc_claim == Some(HTLCClaim::Revocation); let accepted_preimage_claim = htlc_claim == Some(HTLCClaim::AcceptedPreimage); + #[cfg(not(fuzzing))] let accepted_timeout_claim = htlc_claim == Some(HTLCClaim::AcceptedTimeout); let offered_preimage_claim = htlc_claim == Some(HTLCClaim::OfferedPreimage); + #[cfg(not(fuzzing))] let offered_timeout_claim = htlc_claim == Some(HTLCClaim::OfferedTimeout); let mut payment_preimage = PaymentPreimage([0; 32]); -- 2.39.5