stake: pub use config constants for api backwards compatibility (#32769)
* stake: pub use config constants for api backwards compatibility * Add deprecate Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com> --------- Co-authored-by: Trent Nelson <trent.a.b.nelson@gmail.com>
This commit is contained in:
parent
b06500ee66
commit
85a9ebc0af
|
@ -1,10 +1,12 @@
|
||||||
//! config for staking
|
//! config for staking
|
||||||
//! carries variables that the stake program cares about
|
//! carries variables that the stake program cares about
|
||||||
|
|
||||||
use {
|
#[deprecated(
|
||||||
super::state::{DEFAULT_SLASH_PENALTY, DEFAULT_WARMUP_COOLDOWN_RATE},
|
since = "1.16.7",
|
||||||
serde_derive::{Deserialize, Serialize},
|
note = "Please use `solana_sdk::stake::state::{DEFAULT_SLASH_PENALTY, DEFAULT_WARMUP_COOLDOWN_RATE}` instead"
|
||||||
};
|
)]
|
||||||
|
pub use super::state::{DEFAULT_SLASH_PENALTY, DEFAULT_WARMUP_COOLDOWN_RATE};
|
||||||
|
use serde_derive::{Deserialize, Serialize};
|
||||||
|
|
||||||
// stake config ID
|
// stake config ID
|
||||||
crate::declare_deprecated_id!("StakeConfig11111111111111111111111111111111");
|
crate::declare_deprecated_id!("StakeConfig11111111111111111111111111111111");
|
||||||
|
|
Loading…
Reference in New Issue