From: Arik Sosman Date: Sat, 24 Jun 2023 05:33:55 +0000 (-0700) Subject: Fix build warning about public_from_secret_hex. X-Git-Tag: v0.0.116-rc1~14^2~7 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=4a56d87ef94fb938cbca4dea1052cc69f6527af9;p=rust-lightning Fix build warning about public_from_secret_hex. --- diff --git a/lightning/src/ln/channel.rs b/lightning/src/ln/channel.rs index 4d6e02cc..db385882 100644 --- a/lightning/src/ln/channel.rs +++ b/lightning/src/ln/channel.rs @@ -7405,7 +7405,7 @@ mod tests { } } - #[cfg(not(feature = "grind_signatures"))] + #[cfg(all(feature = "_test_vectors", not(feature = "grind_signatures")))] fn public_from_secret_hex(secp_ctx: &Secp256k1, hex: &str) -> PublicKey { PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&hex::decode(hex).unwrap()[..]).unwrap()) }