From 60ca255e5e1a9d2ee57244ca4ee46adbcc822ca4 Mon Sep 17 00:00:00 2001 From: Arik Sosman Date: Wed, 14 Aug 2024 11:50:40 -0700 Subject: [PATCH] Suppress Taproot warnings. Taproot is not yet being actively used, and this commit suppresses the noisy warning generation. --- lightning/src/sign/mod.rs | 1 + lightning/src/sign/type_resolver.rs | 3 +++ lightning/src/util/test_channel_signer.rs | 1 + 3 files changed, 5 insertions(+) diff --git a/lightning/src/sign/mod.rs b/lightning/src/sign/mod.rs index 63692bab5..0d3ec9efa 100644 --- a/lightning/src/sign/mod.rs +++ b/lightning/src/sign/mod.rs @@ -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, diff --git a/lightning/src/sign/type_resolver.rs b/lightning/src/sign/type_resolver.rs index fad8c0ac9..9aec6eb88 100644 --- a/lightning/src/sign/type_resolver.rs +++ b/lightning/src/sign/type_resolver.rs @@ -8,6 +8,7 @@ where // in practice, this will only ever be an EcdsaChannelSigner (specifically, Writeable) Ecdsa(::EcdsaSigner), #[cfg(taproot)] + #[allow(unused)] Taproot(::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, } } diff --git a/lightning/src/util/test_channel_signer.rs b/lightning/src/util/test_channel_signer.rs index c62b81f30..4dc349c97 100644 --- a/lightning/src/util/test_channel_signer.rs +++ b/lightning/src/util/test_channel_signer.rs @@ -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) -> PublicNonce { todo!() -- 2.39.5