From f96bbebdcc68684863981726321cb1a308d8103c Mon Sep 17 00:00:00 2001 From: "Tobin C. Harding" Date: Tue, 16 Apr 2024 06:24:45 +1000 Subject: [PATCH] Set release version in deprecated attribute In preparation for release replace "TBD" with the next release version. --- bitcoin/src/consensus/params.rs | 2 +- bitcoin/src/pow.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bitcoin/src/consensus/params.rs b/bitcoin/src/consensus/params.rs index 3cc70f5d..d95eb61c 100644 --- a/bitcoin/src/consensus/params.rs +++ b/bitcoin/src/consensus/params.rs @@ -91,7 +91,7 @@ pub struct Params { /// Number of blocks with the same set of rules. pub miner_confirmation_window: u32, /// Proof of work limit value. It contains the lowest possible difficulty. - #[deprecated(since = "TBD", note = "field renamed to max_attainable_target")] + #[deprecated(since = "0.32.0", note = "field renamed to max_attainable_target")] pub pow_limit: Target, /// The maximum **attainable** target value for these params. /// diff --git a/bitcoin/src/pow.rs b/bitcoin/src/pow.rs index 140698e4..8ef8a1a1 100644 --- a/bitcoin/src/pow.rs +++ b/bitcoin/src/pow.rs @@ -280,12 +280,12 @@ impl Target { /// Computes the minimum valid [`Target`] threshold allowed for a block in which a difficulty /// adjustment occurs. - #[deprecated(since = "TBD", note = "use min_transition_threshold instead")] + #[deprecated(since = "0.32.0", note = "use min_transition_threshold instead")] pub fn min_difficulty_transition_threshold(&self) -> Self { self.min_transition_threshold() } /// Computes the maximum valid [`Target`] threshold allowed for a block in which a difficulty /// adjustment occurs. - #[deprecated(since = "TBD", note = "use max_transition_threshold instead")] + #[deprecated(since = "0.32.0", note = "use max_transition_threshold instead")] pub fn max_difficulty_transition_threshold(&self) -> Self { self.max_transition_threshold_unchecked() }