Merge rust-bitcoin/rust-bitcoin#2699: Set release version in deprecated attribute
f96bbebdcc
Set release version in deprecated attribute (Tobin C. Harding) Pull request description: In preparation for release replace "TBD" with the next release version - `v0.32.0`. ACKs for top commit: apoelstra: ACKf96bbebdcc
storopoli: ACKf96bbebdcc
Tree-SHA512: 7478808322357d853fab2bf25a7d42a972d5ee05ed6f206bfb73748efe1154fb392dc76c3d0e1a50314bcfdac3a55a415f3c6d40dfaaab802ae1c69dd1ad9e76
This commit is contained in:
commit
4a4e07d66a
|
@ -91,7 +91,7 @@ pub struct Params {
|
||||||
/// Number of blocks with the same set of rules.
|
/// Number of blocks with the same set of rules.
|
||||||
pub miner_confirmation_window: u32,
|
pub miner_confirmation_window: u32,
|
||||||
/// Proof of work limit value. It contains the lowest possible difficulty.
|
/// 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,
|
pub pow_limit: Target,
|
||||||
/// The maximum **attainable** target value for these params.
|
/// The maximum **attainable** target value for these params.
|
||||||
///
|
///
|
||||||
|
|
|
@ -280,12 +280,12 @@ impl Target {
|
||||||
|
|
||||||
/// Computes the minimum valid [`Target`] threshold allowed for a block in which a difficulty
|
/// Computes the minimum valid [`Target`] threshold allowed for a block in which a difficulty
|
||||||
/// adjustment occurs.
|
/// 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() }
|
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
|
/// Computes the maximum valid [`Target`] threshold allowed for a block in which a difficulty
|
||||||
/// adjustment occurs.
|
/// 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 {
|
pub fn max_difficulty_transition_threshold(&self) -> Self {
|
||||||
self.max_transition_threshold_unchecked()
|
self.max_transition_threshold_unchecked()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue