]> git.bitcoin.ninja Git - rust-lightning/commitdiff
Suppress Taproot warnings.
authorArik Sosman <git@arik.io>
Wed, 14 Aug 2024 18:50:40 +0000 (11:50 -0700)
committerArik Sosman <git@arik.io>
Fri, 16 Aug 2024 17:31:45 +0000 (10:31 -0700)
Taproot is not yet being actively used, and this commit suppresses
the noisy warning generation.

lightning/src/sign/mod.rs
lightning/src/sign/type_resolver.rs
lightning/src/util/test_channel_signer.rs

index 63692bab511d7846a001a19d6e64b967f9006ac2..0d3ec9efa417863fcd9bf9f37a901f5a63df68b5 100644 (file)
@@ -1699,6 +1699,7 @@ impl EcdsaChannelSigner for InMemorySigner {
 }
 
 #[cfg(taproot)]
+#[allow(unused)]
 impl TaprootChannelSigner for InMemorySigner {
        fn generate_local_nonce_pair(
                &self, commitment_number: u64, secp_ctx: &Secp256k1<All>,
index fad8c0ac96c0689fecfb7858f346aae63afe983c..9aec6eb8849ec4e168c178076db422f9aca4da4d 100644 (file)
@@ -8,6 +8,7 @@ where
        // in practice, this will only ever be an EcdsaChannelSigner (specifically, Writeable)
        Ecdsa(<SP::Target as SignerProvider>::EcdsaSigner),
        #[cfg(taproot)]
+       #[allow(unused)]
        Taproot(<SP::Target as SignerProvider>::TaprootSigner),
 }
 
@@ -19,6 +20,7 @@ where
                match self {
                        ChannelSignerType::Ecdsa(ecs) => ecs,
                        #[cfg(taproot)]
+                       #[allow(unused)]
                        ChannelSignerType::Taproot(tcs) => tcs,
                }
        }
@@ -27,6 +29,7 @@ where
                match self {
                        ChannelSignerType::Ecdsa(ecs) => ecs,
                        #[cfg(taproot)]
+                       #[allow(unused)]
                        ChannelSignerType::Taproot(tcs) => tcs,
                }
        }
index c62b81f307d4dfc5792799c23ae32f12d828a535..4dc349c97a1466daf1057d574a7a4c1c3b430cfb 100644 (file)
@@ -352,6 +352,7 @@ impl EcdsaChannelSigner for TestChannelSigner {
 }
 
 #[cfg(taproot)]
+#[allow(unused)]
 impl TaprootChannelSigner for TestChannelSigner {
        fn generate_local_nonce_pair(&self, commitment_number: u64, secp_ctx: &Secp256k1<All>) -> PublicNonce {
                todo!()