Skip to content

Commit

Permalink
Set release version in deprecated attribute
Browse files Browse the repository at this point in the history
In preparation for release replace "TBD" with the next release version.
  • Loading branch information
tcharding committed Apr 18, 2024
1 parent b3ec4b3 commit 7a28b38
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bitcoin/src/consensus/params.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,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.
///
Expand Down
4 changes: 2 additions & 2 deletions bitcoin/src/pow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,12 +278,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()
}
Expand Down

0 comments on commit 7a28b38

Please sign in to comment.