From 6e84548b1f65f5edb6e5fcf1a29ced80fa22a713 Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 16 Apr 2024 06:31:11 +1000 Subject: [PATCH] Allow deprecated Params field I'm not sure why I haven't see this before during the whole test cycle but while running `cargo kani --only-codegen` we get a bunch of warnings of form: warning: use of deprecated field `consensus::params::Params::pow_limit` We deprecated the `pow_limit` field but still set it (obviously) in const structs - just shoosh the warning. --- bitcoin/src/consensus/params.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/bitcoin/src/consensus/params.rs b/bitcoin/src/consensus/params.rs index a6863ca3..b82de2b1 100644 --- a/bitcoin/src/consensus/params.rs +++ b/bitcoin/src/consensus/params.rs @@ -71,6 +71,7 @@ pub static SIGNET: Params = Params::SIGNET; /// The regtest parameters. pub static REGTEST: Params = Params::REGTEST; +#[allow(deprecated)] // For `pow_limit`. impl Params { /// The mainnet parameters (alias for `Params::MAINNET`). pub const BITCOIN: Params = Params::MAINNET;