From: Arik Sosman Date: Wed, 14 Aug 2024 18:50:40 +0000 (-0700) Subject: Suppress Taproot warnings. X-Git-Tag: v0.0.124-beta~9^2~5 X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=60ca255e5e1a9d2ee57244ca4ee46adbcc822ca4;p=rust-lightning Suppress Taproot warnings. Taproot is not yet being actively used, and this commit suppresses the noisy warning generation. --- 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!()