]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Fix compile warning in fuzzing introduced in cd0d19c005ee4fa11de93a
authorMatt Corallo <git@bluematt.me>
Wed, 14 Sep 2022 00:49:21 +0000 (00:49 +0000)
committerMatt Corallo <git@bluematt.me>
Wed, 14 Sep 2022 00:49:21 +0000 (00:49 +0000)
lightning/src/chain/channelmonitor.rs

index bfb6e1ab3a8b72f363d948c539fd2ee212540bfa..28f3b59996c904c202b2bba0a62e476777005529 100644 (file)
@@ -3162,8 +3162,10 @@ impl<Signer: Sign> ChannelMonitorImpl<Signer> {
                        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]);