runtime: remove inactive delegation from stakes cache

This commit is contained in:
Trent Nelson
2021-09-17 00:41:53 -06:00
parent 476124de50
commit 7b365c564f
3 changed files with 50 additions and 30 deletions

View File

@ -215,6 +215,10 @@ pub mod sol_log_data_syscall_enabled {
solana_sdk::declare_id!("HYPs7jyJ3KwQFdDpuSzMtVKf1MLJDaZRv3CSWvfUqdFo");
}
pub mod stakes_remove_delegation_if_inactive {
solana_sdk::declare_id!("HFpdDDNQjvcXnXKec697HDDsyk6tFoWS2o8fkxuhQZpL");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@ -264,6 +268,7 @@ lazy_static! {
(fix_write_privs::id(), "fix native invoke write privileges"),
(reduce_required_deploy_balance::id(), "reduce required payer balance for program deploys"),
(sol_log_data_syscall_enabled::id(), "enable sol_log_data syscall"),
(stakes_remove_delegation_if_inactive::id(), "remove delegations from stakes cache when inactive"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()