Un-deprecate `MINIMUM_STAKE_DELEGATION` (#24089)
This commit is contained in:
parent
7cb3b6cbe2
commit
b14b8b1efa
|
@ -23,6 +23,5 @@ pub(crate) fn get_minimum_delegation(_feature_set: &FeatureSet) -> u64 {
|
||||||
// If/when the minimum delegation amount is changed, the `feature_set` parameter will be used
|
// If/when the minimum delegation amount is changed, the `feature_set` parameter will be used
|
||||||
// to chose the correct value. And since the MINIMUM_STAKE_DELEGATION constant cannot be
|
// to chose the correct value. And since the MINIMUM_STAKE_DELEGATION constant cannot be
|
||||||
// removed, use it here as to not duplicate magic constants.
|
// removed, use it here as to not duplicate magic constants.
|
||||||
#[allow(deprecated)]
|
|
||||||
solana_sdk::stake::MINIMUM_STAKE_DELEGATION
|
solana_sdk::stake::MINIMUM_STAKE_DELEGATION
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,8 +6,6 @@ pub mod program {
|
||||||
crate::declare_id!("Stake11111111111111111111111111111111111111");
|
crate::declare_id!("Stake11111111111111111111111111111111111111");
|
||||||
}
|
}
|
||||||
|
|
||||||
#[deprecated(
|
// NOTE: This constant will be deprecated soon; if possible, use
|
||||||
since = "1.10.6",
|
// `solana_stake_program::get_minimum_delegation()` instead.
|
||||||
note = "This constant may be outdated, please use `solana_stake_program::get_minimum_delegation` instead"
|
|
||||||
)]
|
|
||||||
pub const MINIMUM_STAKE_DELEGATION: u64 = 1;
|
pub const MINIMUM_STAKE_DELEGATION: u64 = 1;
|
||||||
|
|
Loading…
Reference in New Issue