Skip to content

Commit 1a27d9f

Browse files
committed
Suppress Taproot warnings.
Taproot is not yet being actively used, and this commit suppresses the noisy warning generation.
1 parent e648ebc commit 1a27d9f

File tree

3 files changed

+5
-0
lines changed

3 files changed

+5
-0
lines changed

lightning/src/sign/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1699,6 +1699,7 @@ impl EcdsaChannelSigner for InMemorySigner {
16991699
}
17001700

17011701
#[cfg(taproot)]
1702+
#[allow(unused)]
17021703
impl TaprootChannelSigner for InMemorySigner {
17031704
fn generate_local_nonce_pair(
17041705
&self, commitment_number: u64, secp_ctx: &Secp256k1<All>,

lightning/src/sign/type_resolver.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ where
88
// in practice, this will only ever be an EcdsaChannelSigner (specifically, Writeable)
99
Ecdsa(<SP::Target as SignerProvider>::EcdsaSigner),
1010
#[cfg(taproot)]
11+
#[allow(unused)]
1112
Taproot(<SP::Target as SignerProvider>::TaprootSigner),
1213
}
1314

@@ -19,6 +20,7 @@ where
1920
match self {
2021
ChannelSignerType::Ecdsa(ecs) => ecs,
2122
#[cfg(taproot)]
23+
#[allow(unused)]
2224
ChannelSignerType::Taproot(tcs) => tcs,
2325
}
2426
}
@@ -27,6 +29,7 @@ where
2729
match self {
2830
ChannelSignerType::Ecdsa(ecs) => ecs,
2931
#[cfg(taproot)]
32+
#[allow(unused)]
3033
ChannelSignerType::Taproot(tcs) => tcs,
3134
}
3235
}

lightning/src/util/test_channel_signer.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -352,6 +352,7 @@ impl EcdsaChannelSigner for TestChannelSigner {
352352
}
353353

354354
#[cfg(taproot)]
355+
#[allow(unused)]
355356
impl TaprootChannelSigner for TestChannelSigner {
356357
fn generate_local_nonce_pair(&self, commitment_number: u64, secp_ctx: &Secp256k1<All>) -> PublicNonce {
357358
todo!()

0 commit comments

Comments
 (0)