Use Rent sysvar directly for stake split instruction (#24008)
* Use Rent sysvar directly for stake split ix * Add feature to gate rent sysvar change * fix tests * cargo clippy
This commit is contained in:
@ -335,6 +335,10 @@ pub mod check_slice_translation_size {
|
||||
solana_sdk::declare_id!("GmC19j9qLn2RFk5NduX6QXaDhVpGncVVBzyM8e9WMz2F");
|
||||
}
|
||||
|
||||
pub mod stake_split_uses_rent_sysvar {
|
||||
solana_sdk::declare_id!("FQnc7U4koHqWgRvFaBJjZnV8VPg6L6wWK33yJeDp4yvV");
|
||||
}
|
||||
|
||||
lazy_static! {
|
||||
/// Map of feature identifiers to user-visible description
|
||||
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
|
||||
@ -412,7 +416,8 @@ lazy_static! {
|
||||
(check_physical_overlapping::id(), "check physical overlapping regions"),
|
||||
(limit_secp256k1_recovery_id::id(), "limit secp256k1 recovery id"),
|
||||
(disable_deprecated_loader::id(), "disable the deprecated BPF loader"),
|
||||
(check_slice_translation_size::id(), "check size when translating slices",)
|
||||
(check_slice_translation_size::id(), "check size when translating slices"),
|
||||
(stake_split_uses_rent_sysvar::id(), "stake split instruction uses rent sysvar"),
|
||||
/*************** ADD NEW FEATURES HERE ***************/
|
||||
]
|
||||
.iter()
|
||||
|
Reference in New Issue
Block a user