Optimize stakes cache and rewards at epoch boundaries (backport #20432) (#20472)

* Optimize stakes cache and rewards at epoch boundaries (backport #20432)

* fix conflicts
This commit is contained in:
Justin Starry
2021-10-06 12:15:27 -04:00
committed by GitHub
parent 95ac00d30a
commit d922971ec6
10 changed files with 739 additions and 47 deletions

View File

@@ -219,6 +219,10 @@ pub mod send_to_tpu_vote_port {
solana_sdk::declare_id!("C5fh68nJ7uyKAuYZg2x9sEQ5YrVf3dkW6oojNBSc3Jvo");
}
pub mod optimize_epoch_boundary_updates {
solana_sdk::declare_id!("265hPS8k8xJ37ot82KEgjRunsUp5w4n4Q4VwwiN9i9ps");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@@ -274,6 +278,7 @@ lazy_static! {
(reduce_required_deploy_balance::id(), "reduce required payer balance for program deploys"),
(stakes_remove_delegation_if_inactive::id(), "remove delegations from stakes cache when inactive"),
(send_to_tpu_vote_port::id(), "Send votes to the tpu vote port"),
(optimize_epoch_boundary_updates::id(), "Optimize epoch boundary updates"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()