From: Matt Corallo Date: Wed, 14 Sep 2022 00:49:21 +0000 (+0000) Subject: Fix compile warning in fuzzing introduced in cd0d19c005ee4fa11de93a X-Git-Tag: v0.0.112~39^2~1 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=464391c245d9d457005d715c3f1b736b406ee79e;p=rust-lightning Fix compile warning in fuzzing introduced in cd0d19c005ee4fa11de93a --- 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]);