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.
This commit is contained in:
parent
87b674be45
commit
6e84548b1f
|
@ -71,6 +71,7 @@ pub static SIGNET: Params = Params::SIGNET;
|
||||||
/// The regtest parameters.
|
/// The regtest parameters.
|
||||||
pub static REGTEST: Params = Params::REGTEST;
|
pub static REGTEST: Params = Params::REGTEST;
|
||||||
|
|
||||||
|
#[allow(deprecated)] // For `pow_limit`.
|
||||||
impl Params {
|
impl Params {
|
||||||
/// The mainnet parameters (alias for `Params::MAINNET`).
|
/// The mainnet parameters (alias for `Params::MAINNET`).
|
||||||
pub const BITCOIN: Params = Params::MAINNET;
|
pub const BITCOIN: Params = Params::MAINNET;
|
||||||
|
|
Loading…
Reference in New Issue