Filter out outdated slots (#22450)

* Filter out outdated slots

* Fixup error
This commit is contained in:
carllin
2022-01-13 19:51:00 -05:00
committed by GitHub
parent eca8d21249
commit 4ab7d6c23e
6 changed files with 151 additions and 45 deletions

View File

@ -299,6 +299,10 @@ pub mod require_rent_exempt_accounts {
solana_sdk::declare_id!("BkFDxiJQWZXGTZaJQxH7wVEHkAmwCgSEVkrvswFfRJPD");
}
pub mod filter_votes_outside_slot_hashes {
solana_sdk::declare_id!("3gtZPqvPpsbXZVCx6hceMfWxtsmrjMzmg8C7PLKSxS2d");
}
lazy_static! {
/// Map of feature identifiers to user-visible description
pub static ref FEATURE_NAMES: HashMap<Pubkey, &'static str> = [
@ -368,6 +372,7 @@ lazy_static! {
(cap_accounts_data_len::id(), "cap the accounts data len"),
(max_tx_account_locks::id(), "enforce max number of locked accounts per transaction"),
(require_rent_exempt_accounts::id(), "require all new transaction accounts with data to be rent-exempt"),
(filter_votes_outside_slot_hashes::id(), "filter vote slots older than the slot hashes history"),
/*************** ADD NEW FEATURES HERE ***************/
]
.iter()