Un-deprecate `MINIMUM_STAKE_DELEGATION` (#24089)

This commit is contained in:
Brooks Prumo 2022-04-03 15:09:41 -05:00 committed by GitHub
parent 7cb3b6cbe2
commit b14b8b1efa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -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
// to chose the correct value. And since the MINIMUM_STAKE_DELEGATION constant cannot be
// removed, use it here as to not duplicate magic constants.
#[allow(deprecated)]
solana_sdk::stake::MINIMUM_STAKE_DELEGATION
}

View File

@ -6,8 +6,6 @@ pub mod program {
crate::declare_id!("Stake11111111111111111111111111111111111111");
}
#[deprecated(
since = "1.10.6",
note = "This constant may be outdated, please use `solana_stake_program::get_minimum_delegation` instead"
)]
// NOTE: This constant will be deprecated soon; if possible, use
// `solana_stake_program::get_minimum_delegation()` instead.
pub const MINIMUM_STAKE_DELEGATION: u64 = 1;