Skip to content

Commit 4a56d87

Browse files
committed
Fix build warning about public_from_secret_hex.
1 parent d327c23 commit 4a56d87

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lightning/src/ln/channel.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7405,7 +7405,7 @@ mod tests {
74057405
}
74067406
}
74077407

7408-
#[cfg(not(feature = "grind_signatures"))]
7408+
#[cfg(all(feature = "_test_vectors", not(feature = "grind_signatures")))]
74097409
fn public_from_secret_hex(secp_ctx: &Secp256k1<bitcoin::secp256k1::All>, hex: &str) -> PublicKey {
74107410
PublicKey::from_secret_key(&secp_ctx, &SecretKey::from_slice(&hex::decode(hex).unwrap()[..]).unwrap())
74117411
}

0 commit comments

Comments
 (0)