#![cfg(feature = "agave-unstable-api")] #![cfg_attr(feature = "frozen-abi", feature(min_specialization))] use { ahash::{AHashMap, AHashSet}, solana_epoch_schedule::EpochSchedule, solana_hash::Hash, solana_pubkey::Pubkey, solana_sha256_hasher::Hasher, solana_svm_feature_set::SVMFeatureSet, std::sync::LazyLock, }; /// A snapshot of features for faster access without a hash lookup. /// It should contain only features that have not been activated on /// all clusters. /// The order of fields should match the declaration order in /// [`FEATURE_NAMES`]. #[derive(Debug, Clone, Eq, PartialEq)] pub struct FeatureSnapshot { pub blake3_syscall_enabled: bool, pub disable_fees_sysvar: bool, pub curve25519_syscall_enabled: bool, pub stake_raise_minimum_delegation_to_1_sol: bool, pub disable_deploy_of_alloc_free_syscall: bool, pub increase_tx_account_lock_limit: bool, pub enable_bpf_loader_set_authority_checked_ix: bool, pub enable_alt_bn128_syscall: bool, pub simplify_alt_bn128_syscall_error_codes: bool, pub enable_big_mod_exp_syscall: bool, pub remove_bpf_loader_incorrect_program_id: bool, pub virtual_address_space_adjustments: bool, pub account_data_direct_mapping: bool, pub last_restart_slot_sysvar: bool, pub enable_poseidon_syscall: bool, pub remaining_compute_units_syscall_enabled: bool, pub enable_alt_bn128_compression_syscall: bool, pub abort_on_invalid_curve: bool, pub get_sysvar_syscall_enabled: bool, pub enable_get_epoch_stake_syscall: bool, pub move_stake_and_move_lamports_ixs: bool, pub move_precompile_verification_to_svm: bool, pub deprecate_legacy_vote_ixs: bool, pub disable_sbpf_v0_execution: bool, pub reenable_sbpf_v0_execution: bool, pub disable_sbpf_v0_v1_v2_deployment: bool, pub deplete_cu_meter_on_vm_failure: bool, pub fix_alt_bn128_multiplication_input_length: bool, pub formalize_loaded_transaction_data_size: bool, pub alpenglow: bool, pub alpenglow_fast_leader_handover: bool, pub disable_zk_elgamal_proof_program: bool, pub reenable_zk_elgamal_proof_program: bool, pub raise_block_limits_to_100m: bool, pub raise_cpi_nesting_limit_to_8: bool, pub provide_instruction_data_offset_in_vm_r2: bool, pub create_account_allow_prefund: bool, pub delay_commission_updates: bool, pub increase_cpi_account_info_limit: bool, pub deprecate_rent_exemption_threshold: bool, pub poseidon_enforce_padding: bool, pub fix_alt_bn128_pairing_length_check: bool, pub alt_bn128_little_endian: bool, pub bls_pubkey_management_in_vote_account: bool, pub relax_programdata_account_check_migration: bool, pub enable_alt_bn128_g2_syscalls: bool, pub commission_rate_in_basis_points: bool, pub custom_commission_collector: bool, pub enable_bls12_381_syscall: bool, pub set_lamports_per_byte_to_6333: bool, pub set_lamports_per_byte_to_5080: bool, pub set_lamports_per_byte_to_2575: bool, pub set_lamports_per_byte_to_1322: bool, pub block_revenue_sharing: bool, pub vote_account_initialize_v2: bool, pub direct_account_pointers_in_program_input: bool, pub upgrade_bpf_stake_program_to_v5: bool, pub loader_v3_minimum_extend_program_size: bool, pub enable_sha512_syscall: bool, pub relax_post_exec_min_balance_check: bool, pub enable_tx_v1: bool, pub define_ltds_fee_only_semantics: bool, pub relax_fee_payer_constraint: bool, } impl From<&AHashMap> for FeatureSnapshot { fn from(active: &AHashMap) -> Self { let is_active = |feature_id: &Pubkey| active.contains_key(feature_id); Self { blake3_syscall_enabled: is_active(&blake3_syscall_enabled::ID), disable_fees_sysvar: is_active(&disable_fees_sysvar::ID), curve25519_syscall_enabled: is_active(&curve25519_syscall_enabled::ID), stake_raise_minimum_delegation_to_1_sol: is_active( &stake_raise_minimum_delegation_to_1_sol::ID, ), disable_deploy_of_alloc_free_syscall: is_active( &disable_deploy_of_alloc_free_syscall::ID, ), increase_tx_account_lock_limit: is_active(&increase_tx_account_lock_limit::ID), enable_bpf_loader_set_authority_checked_ix: is_active( &enable_bpf_loader_set_authority_checked_ix::ID, ), enable_alt_bn128_syscall: is_active(&enable_alt_bn128_syscall::ID), simplify_alt_bn128_syscall_error_codes: is_active( &simplify_alt_bn128_syscall_error_codes::ID, ), enable_big_mod_exp_syscall: is_active(&enable_big_mod_exp_syscall::ID), remove_bpf_loader_incorrect_program_id: is_active( &remove_bpf_loader_incorrect_program_id::ID, ), virtual_address_space_adjustments: is_active(&virtual_address_space_adjustments::ID), account_data_direct_mapping: is_active(&account_data_direct_mapping::ID), last_restart_slot_sysvar: is_active(&last_restart_slot_sysvar::ID), enable_poseidon_syscall: is_active(&enable_poseidon_syscall::ID), remaining_compute_units_syscall_enabled: is_active( &remaining_compute_units_syscall_enabled::ID, ), enable_alt_bn128_compression_syscall: is_active( &enable_alt_bn128_compression_syscall::ID, ), abort_on_invalid_curve: is_active(&abort_on_invalid_curve::ID), get_sysvar_syscall_enabled: is_active(&get_sysvar_syscall_enabled::ID), enable_get_epoch_stake_syscall: is_active(&enable_get_epoch_stake_syscall::ID), move_stake_and_move_lamports_ixs: is_active(&move_stake_and_move_lamports_ixs::ID), move_precompile_verification_to_svm: is_active( &move_precompile_verification_to_svm::ID, ), deprecate_legacy_vote_ixs: is_active(&deprecate_legacy_vote_ixs::ID), disable_sbpf_v0_execution: is_active(&disable_sbpf_v0_execution::ID), reenable_sbpf_v0_execution: is_active(&reenable_sbpf_v0_execution::ID), disable_sbpf_v0_v1_v2_deployment: is_active(&disable_sbpf_v0_v1_v2_deployment::ID), deplete_cu_meter_on_vm_failure: is_active(&deplete_cu_meter_on_vm_failure::ID), fix_alt_bn128_multiplication_input_length: is_active( &fix_alt_bn128_multiplication_input_length::ID, ), formalize_loaded_transaction_data_size: is_active( &formalize_loaded_transaction_data_size::ID, ), alpenglow: is_active(&alpenglow::ID), alpenglow_fast_leader_handover: is_active(&alpenglow_fast_leader_handover::ID), disable_zk_elgamal_proof_program: is_active(&disable_zk_elgamal_proof_program::ID), reenable_zk_elgamal_proof_program: is_active(&reenable_zk_elgamal_proof_program::ID), raise_block_limits_to_100m: is_active(&raise_block_limits_to_100m::ID), raise_cpi_nesting_limit_to_8: is_active(&raise_cpi_nesting_limit_to_8::ID), provide_instruction_data_offset_in_vm_r2: is_active( &provide_instruction_data_offset_in_vm_r2::ID, ), create_account_allow_prefund: is_active(&create_account_allow_prefund::ID), delay_commission_updates: is_active(&delay_commission_updates::ID), increase_cpi_account_info_limit: is_active(&increase_cpi_account_info_limit::ID), deprecate_rent_exemption_threshold: is_active(&deprecate_rent_exemption_threshold::ID), poseidon_enforce_padding: is_active(&poseidon_enforce_padding::ID), fix_alt_bn128_pairing_length_check: is_active(&fix_alt_bn128_pairing_length_check::ID), alt_bn128_little_endian: is_active(&alt_bn128_little_endian::ID), bls_pubkey_management_in_vote_account: is_active( &bls_pubkey_management_in_vote_account::ID, ), relax_programdata_account_check_migration: is_active( &relax_programdata_account_check_migration::ID, ), enable_alt_bn128_g2_syscalls: is_active(&enable_alt_bn128_g2_syscalls::ID), commission_rate_in_basis_points: is_active(&commission_rate_in_basis_points::ID), custom_commission_collector: is_active(&custom_commission_collector::ID), enable_bls12_381_syscall: is_active(&enable_bls12_381_syscall::ID), set_lamports_per_byte_to_6333: is_active(&set_lamports_per_byte_to_6333::ID), set_lamports_per_byte_to_5080: is_active(&set_lamports_per_byte_to_5080::ID), set_lamports_per_byte_to_2575: is_active(&set_lamports_per_byte_to_2575::ID), set_lamports_per_byte_to_1322: is_active(&set_lamports_per_byte_to_1322::ID), block_revenue_sharing: is_active(&block_revenue_sharing::ID), vote_account_initialize_v2: is_active(&vote_account_initialize_v2::ID), direct_account_pointers_in_program_input: is_active( &direct_account_pointers_in_program_input::ID, ), upgrade_bpf_stake_program_to_v5: is_active(&upgrade_bpf_stake_program_to_v5::ID), loader_v3_minimum_extend_program_size: is_active( &loader_v3_minimum_extend_program_size::ID, ), enable_sha512_syscall: is_active(&enable_sha512_syscall::ID), relax_post_exec_min_balance_check: is_active(&relax_post_exec_min_balance_check::ID), enable_tx_v1: is_active(&enable_tx_v1::ID), define_ltds_fee_only_semantics: is_active(&define_ltds_fee_only_semantics::ID), relax_fee_payer_constraint: is_active(&relax_fee_payer_constraint::ID), } } } #[cfg_attr(feature = "frozen-abi", derive(solana_frozen_abi_macro::AbiExample))] #[derive(Debug, Clone, Eq, PartialEq)] pub struct FeatureSet { active: AHashMap, inactive: AHashSet, snapshot: FeatureSnapshot, } impl Default for FeatureSet { fn default() -> Self { // All features disabled let active = AHashMap::new(); let snapshot = FeatureSnapshot::from(&active); Self { active, inactive: AHashSet::from_iter((*FEATURE_NAMES).keys().cloned()), snapshot, } } } impl FeatureSet { pub fn new(active: AHashMap, inactive: AHashSet) -> Self { let feature_snapshot = FeatureSnapshot::from(&active); Self { active, inactive, snapshot: feature_snapshot, } } pub fn active(&self) -> &AHashMap { &self.active } pub fn inactive(&self) -> &AHashSet { &self.inactive } pub fn is_active(&self, feature_id: &Pubkey) -> bool { self.active.contains_key(feature_id) } pub fn activated_slot(&self, feature_id: &Pubkey) -> Option { self.active.get(feature_id).copied() } /// Activate a feature pub fn activate(&mut self, feature_id: &Pubkey, slot: u64) { self.inactive.remove(feature_id); self.active.insert(*feature_id, slot); self.snapshot = FeatureSnapshot::from(&self.active); } /// Deactivate a feature pub fn deactivate(&mut self, feature_id: &Pubkey) { self.active.remove(feature_id); self.inactive.insert(*feature_id); self.snapshot = FeatureSnapshot::from(&self.active); } /// List of enabled features that trigger full inflation pub fn full_inflation_features_enabled(&self) -> AHashSet { let mut hash_set = FULL_INFLATION_FEATURE_PAIRS .iter() .filter_map(|pair| { if self.is_active(&pair.vote_id) && self.is_active(&pair.enable_id) { Some(pair.enable_id) } else { None } }) .collect::>(); if self.is_active(&full_inflation::devnet_and_testnet::id()) { hash_set.insert(full_inflation::devnet_and_testnet::id()); } hash_set } /// All features enabled, useful for testing pub fn all_enabled() -> Self { let active = AHashMap::from_iter((*FEATURE_NAMES).keys().cloned().map(|key| (key, 0))); let feature_snapshot = FeatureSnapshot::from(&active); Self { active, inactive: AHashSet::new(), snapshot: feature_snapshot, } } pub fn new_warmup_cooldown_rate_epoch(&self, epoch_schedule: &EpochSchedule) -> Option { self.activated_slot(&reduce_stake_warmup_cooldown::id()) .map(|slot| epoch_schedule.get_epoch(slot)) } pub fn snapshot(&self) -> &FeatureSnapshot { &self.snapshot } pub fn runtime_features(&self) -> SVMFeatureSet { let snapshot = &self.snapshot; SVMFeatureSet { move_precompile_verification_to_svm: snapshot.move_precompile_verification_to_svm, virtual_address_space_adjustments: snapshot.virtual_address_space_adjustments, account_data_direct_mapping: snapshot.account_data_direct_mapping, enable_bpf_loader_set_authority_checked_ix: snapshot .enable_bpf_loader_set_authority_checked_ix, deplete_cu_meter_on_vm_failure: snapshot.deplete_cu_meter_on_vm_failure, abort_on_invalid_curve: snapshot.abort_on_invalid_curve, blake3_syscall_enabled: snapshot.blake3_syscall_enabled, curve25519_syscall_enabled: snapshot.curve25519_syscall_enabled, disable_fees_sysvar: snapshot.disable_fees_sysvar, enable_alt_bn128_compression_syscall: snapshot.enable_alt_bn128_compression_syscall, enable_alt_bn128_syscall: snapshot.enable_alt_bn128_syscall, enable_big_mod_exp_syscall: snapshot.enable_big_mod_exp_syscall, enable_get_epoch_stake_syscall: snapshot.enable_get_epoch_stake_syscall, enable_poseidon_syscall: snapshot.enable_poseidon_syscall, disable_sbpf_v0_execution: snapshot.disable_sbpf_v0_execution, reenable_sbpf_v0_execution: snapshot.reenable_sbpf_v0_execution, disable_sbpf_v0_v1_v2_deployment: snapshot.disable_sbpf_v0_v1_v2_deployment, get_sysvar_syscall_enabled: snapshot.get_sysvar_syscall_enabled, last_restart_slot_sysvar: snapshot.last_restart_slot_sysvar, remaining_compute_units_syscall_enabled: snapshot .remaining_compute_units_syscall_enabled, remove_bpf_loader_incorrect_program_id: snapshot.remove_bpf_loader_incorrect_program_id, move_stake_and_move_lamports_ixs: snapshot.move_stake_and_move_lamports_ixs, deprecate_legacy_vote_ixs: snapshot.deprecate_legacy_vote_ixs, simplify_alt_bn128_syscall_error_codes: snapshot.simplify_alt_bn128_syscall_error_codes, fix_alt_bn128_multiplication_input_length: snapshot .fix_alt_bn128_multiplication_input_length, increase_tx_account_lock_limit: snapshot.increase_tx_account_lock_limit, formalize_loaded_transaction_data_size: snapshot.formalize_loaded_transaction_data_size, disable_zk_elgamal_proof_program: snapshot.disable_zk_elgamal_proof_program, reenable_zk_elgamal_proof_program: snapshot.reenable_zk_elgamal_proof_program, delay_commission_updates: snapshot.delay_commission_updates, raise_cpi_nesting_limit_to_8: snapshot.raise_cpi_nesting_limit_to_8, increase_cpi_account_info_limit: snapshot.increase_cpi_account_info_limit, poseidon_enforce_padding: snapshot.poseidon_enforce_padding, fix_alt_bn128_pairing_length_check: snapshot.fix_alt_bn128_pairing_length_check, alt_bn128_little_endian: snapshot.alt_bn128_little_endian, create_account_allow_prefund: snapshot.create_account_allow_prefund, bls_pubkey_management_in_vote_account: snapshot.bls_pubkey_management_in_vote_account, enable_alt_bn128_g2_syscalls: snapshot.enable_alt_bn128_g2_syscalls, commission_rate_in_basis_points: snapshot.commission_rate_in_basis_points, custom_commission_collector: snapshot.custom_commission_collector, enable_bls12_381_syscall: snapshot.enable_bls12_381_syscall, block_revenue_sharing: snapshot.block_revenue_sharing, vote_account_initialize_v2: snapshot.vote_account_initialize_v2, direct_account_pointers_in_program_input: snapshot .direct_account_pointers_in_program_input, loader_v3_minimum_extend_program_size: snapshot.loader_v3_minimum_extend_program_size, enable_sha512_syscall: snapshot.enable_sha512_syscall, relax_post_exec_min_balance_check: snapshot.relax_post_exec_min_balance_check, define_ltds_fee_only_semantics: snapshot.define_ltds_fee_only_semantics, relax_fee_payer_constraint: snapshot.relax_fee_payer_constraint, } } } pub mod deprecate_rewards_sysvar { solana_pubkey::declare_id!("GaBtBJvmS4Arjj5W1NmFcyvPjsHN38UGYDq2MDwbs9Qu"); } pub mod pico_inflation { solana_pubkey::declare_id!("4RWNif6C2WCNiKVW7otP4G7dkmkHGyKQWRpuZ1pxKU5m"); } pub mod full_inflation { pub mod devnet_and_testnet { solana_pubkey::declare_id!("DT4n6ABDqs6w4bnfwrXT9rsprcPf6cdDga1egctaPkLC"); } pub mod mainnet { pub mod certusone { pub mod vote { solana_pubkey::declare_id!("BzBBveUDymEYoYzcMWNQCx3cd4jQs7puaVFHLtsbB6fm"); } pub mod enable { solana_pubkey::declare_id!("7XRJcS5Ud5vxGB54JbK9N2vBZVwnwdBNeJW1ibRgD9gx"); } } } } pub mod secp256k1_program_enabled { solana_pubkey::declare_id!("E3PHP7w8kB7np3CTQ1qQ2tW3KCtjRSXBQgW9vM2mWv2Y"); } pub mod spl_token_v2_multisig_fix { solana_pubkey::declare_id!("E5JiFDQCwyC6QfT9REFyMpfK2mHcmv1GUDySU1Ue7TYv"); } pub mod no_overflow_rent_distribution { solana_pubkey::declare_id!("4kpdyrcj5jS47CZb2oJGfVxjYbsMm2Kx97gFyZrxxwXz"); } pub mod filter_stake_delegation_accounts { solana_pubkey::declare_id!("GE7fRxmW46K6EmCD9AMZSbnaJ2e3LfqCZzdHi9hmYAgi"); } pub mod require_custodian_for_locked_stake_authorize { solana_pubkey::declare_id!("D4jsDcXaqdW8tDAWn8H4R25Cdns2YwLneujSL1zvjW6R"); } pub mod spl_token_v2_self_transfer_fix { solana_pubkey::declare_id!("BL99GYhdjjcv6ys22C9wPgn2aTVERDbPHHo4NbS3hgp7"); } pub mod warp_timestamp_again { solana_pubkey::declare_id!("GvDsGDkH5gyzwpDhxNixx8vtx1kwYHH13RiNAPw27zXb"); } pub mod check_init_vote_data { solana_pubkey::declare_id!("3ccR6QpxGYsAbWyfevEtBNGfWV4xBffxRj2tD6A9i39F"); } pub mod secp256k1_recover_syscall_enabled { solana_pubkey::declare_id!("6RvdSWHh8oh72Dp7wMTS2DBkf3fRPtChfNrAo3cZZoXJ"); } pub mod system_transfer_zero_check { solana_pubkey::declare_id!("BrTR9hzw4WBGFP65AJMbpAo64DcA3U6jdPSga9fMV5cS"); } pub mod blake3_syscall_enabled { solana_pubkey::declare_id!("HTW2pSyErTj4BV6KBM9NZ9VBUJVxt7sacNWcf76wtzb3"); } pub mod dedupe_config_program_signers { solana_pubkey::declare_id!("8kEuAshXLsgkUEdcFVLqrjCGGHVWFW99ZZpxvAzzMtBp"); } pub mod verify_tx_signatures_len { solana_pubkey::declare_id!("EVW9B5xD9FFK7vw1SBARwMA4s5eRo5eKJdKpsBikzKBz"); } pub mod vote_stake_checked_instructions { solana_pubkey::declare_id!("BcWknVcgvonN8sL4HE4XFuEVgfcee5MwxWPAgP6ZV89X"); } pub mod rent_for_sysvars { solana_pubkey::declare_id!("BKCPBQQBZqggVnFso5nQ8rQ4RwwogYwjuUt9biBjxwNF"); } pub mod libsecp256k1_0_5_upgrade_enabled { solana_pubkey::declare_id!("DhsYfRjxfnh2g7HKJYSzT79r74Afa1wbHkAgHndrA1oy"); } pub mod tx_wide_compute_cap { solana_pubkey::declare_id!("5ekBxc8itEnPv4NzGJtr8BVVQLNMQuLMNQQj7pHoLNZ9"); } pub mod spl_token_v2_set_authority_fix { solana_pubkey::declare_id!("FToKNBYyiF4ky9s8WsmLBXHCht17Ek7RXaLZGHzzQhJ1"); } pub mod merge_nonce_error_into_system_error { solana_pubkey::declare_id!("21AWDosvp3pBamFW91KB35pNoaoZVTM7ess8nr2nt53B"); } pub mod disable_fees_sysvar { solana_pubkey::declare_id!("JAN1trEUEtZjgXYzNBYHU9DYd7GnThhXfFP7SzPXkPsG"); } pub mod stake_merge_with_unmatched_credits_observed { solana_pubkey::declare_id!("meRgp4ArRPhD3KtCY9c5yAf2med7mBLsjKTPeVUHqBL"); } pub mod zk_token_sdk_enabled { solana_pubkey::declare_id!("zk1snxsc6Fh3wsGNbbHAJNHiJoYgF29mMnTSusGx5EJ"); } pub mod curve25519_syscall_enabled { solana_pubkey::declare_id!("7rcw5UtqgDTBBv2EcynNfYckgdAaH1MAsCjKgXMkN7Ri"); } pub mod curve25519_restrict_msm_length { solana_pubkey::declare_id!("eca6zf6JJRjQsYYPkBHF3N32MTzur4n2WL4QiiacPCL"); } pub mod versioned_tx_message_enabled { solana_pubkey::declare_id!("3KZZ6Ks1885aGBQ45fwRcPXVBCtzUvxhUTkwKMR41Tca"); } pub mod libsecp256k1_fail_on_bad_count { solana_pubkey::declare_id!("8aXvSuopd1PUj7UhehfXJRg6619RHp8ZvwTyyJHdUYsj"); } pub mod libsecp256k1_fail_on_bad_count2 { solana_pubkey::declare_id!("54KAoNiUERNoWWUhTWWwXgym94gzoXFVnHyQwPA18V9A"); } pub mod instructions_sysvar_owned_by_sysvar { solana_pubkey::declare_id!("H3kBSaKdeiUsyHmeHqjJYNc27jesXZ6zWj3zWkowQbkV"); } pub mod stake_program_advance_activating_credits_observed { solana_pubkey::declare_id!("SAdVFw3RZvzbo6DvySbSdBnHN4gkzSTH9dSxesyKKPj"); } pub mod credits_auto_rewind { solana_pubkey::declare_id!("BUS12ciZ5gCoFafUHWW8qaFMMtwFQGVxjsDheWLdqBE2"); } pub mod demote_program_write_locks { solana_pubkey::declare_id!("3E3jV7v9VcdJL8iYZUMax9DiDno8j7EWUVbhm9RtShj2"); } pub mod ed25519_program_enabled { solana_pubkey::declare_id!("6ppMXNYLhVd7GcsZ5uV11wQEW7spppiMVfqQv5SXhDpX"); } pub mod return_data_syscall_enabled { solana_pubkey::declare_id!("DwScAzPUjuv65TMbDnFY7AgwmotzWy3xpEJMXM3hZFaB"); } pub mod reduce_required_deploy_balance { solana_pubkey::declare_id!("EBeznQDjcPG8491sFsKZYBi5S5jTVXMpAKNDJMQPS2kq"); } pub mod sol_log_data_syscall_enabled { solana_pubkey::declare_id!("6uaHcKPGUy4J7emLBgUTeufhJdiwhngW6a1R9B7c2ob9"); } pub mod stakes_remove_delegation_if_inactive { solana_pubkey::declare_id!("HFpdDDNQjvcXnXKec697HDDsyk6tFoWS2o8fkxuhQZpL"); } pub mod do_support_realloc { solana_pubkey::declare_id!("75m6ysz33AfLA5DDEzWM1obBrnPQRSsdVQ2nRmc8Vuu1"); } pub mod prevent_calling_precompiles_as_programs { solana_pubkey::declare_id!("4ApgRX3ud6p7LNMJmsuaAcZY5HWctGPr5obAsjB3A54d"); } pub mod optimize_epoch_boundary_updates { solana_pubkey::declare_id!("265hPS8k8xJ37ot82KEgjRunsUp5w4n4Q4VwwiN9i9ps"); } pub mod remove_native_loader { solana_pubkey::declare_id!("HTTgmruMYRZEntyL3EdCDdnS6e4D5wRq1FA7kQsb66qq"); } pub mod send_to_tpu_vote_port { solana_pubkey::declare_id!("C5fh68nJ7uyKAuYZg2x9sEQ5YrVf3dkW6oojNBSc3Jvo"); } pub mod requestable_heap_size { solana_pubkey::declare_id!("CCu4boMmfLuqcmfTLPHQiUo22ZdUsXjgzPAURYaWt1Bw"); } pub mod disable_fee_calculator { solana_pubkey::declare_id!("2jXx2yDmGysmBKfKYNgLj2DQyAQv6mMk2BPh4eSbyB4H"); } pub mod add_compute_budget_program { solana_pubkey::declare_id!("4d5AKtxoh93Dwm1vHXUU3iRATuMndx1c431KgT2td52r"); } pub mod nonce_must_be_writable { solana_pubkey::declare_id!("BiCU7M5w8ZCMykVSyhZ7Q3m2SWoR2qrEQ86ERcDX77ME"); } pub mod spl_token_v3_3_0_release { solana_pubkey::declare_id!("Ftok2jhqAqxUWEiCVRrfRs9DPppWP8cgTB7NQNKL88mS"); } pub mod leave_nonce_on_success { solana_pubkey::declare_id!("E8MkiWZNNPGU6n55jkGzyj8ghUmjCHRmDFdYYFYHxWhQ"); } pub mod reject_empty_instruction_without_program { solana_pubkey::declare_id!("9kdtFSrXHQg3hKkbXkQ6trJ3Ja1xpJ22CTFSNAciEwmL"); } pub mod fixed_memcpy_nonoverlapping_check { solana_pubkey::declare_id!("36PRUK2Dz6HWYdG9SpjeAsF5F3KxnFCakA2BZMbtMhSb"); } pub mod reject_non_rent_exempt_vote_withdraws { solana_pubkey::declare_id!("7txXZZD6Um59YoLMF7XUNimbMjsqsWhc7g2EniiTrmp1"); } pub mod evict_invalid_stakes_cache_entries { solana_pubkey::declare_id!("EMX9Q7TVFAmQ9V1CggAkhMzhXSg8ECp7fHrWQX2G1chf"); } pub mod allow_votes_to_directly_update_vote_state { solana_pubkey::declare_id!("Ff8b1fBeB86q8cjq47ZhsQLgv5EkHu3G1C99zjUfAzrq"); } pub mod max_tx_account_locks { solana_pubkey::declare_id!("CBkDroRDqm8HwHe6ak9cguPjUomrASEkfmxEaZ5CNNxz"); } pub mod require_rent_exempt_accounts { solana_pubkey::declare_id!("BkFDxiJQWZXGTZaJQxH7wVEHkAmwCgSEVkrvswFfRJPD"); } pub mod filter_votes_outside_slot_hashes { solana_pubkey::declare_id!("3gtZPqvPpsbXZVCx6hceMfWxtsmrjMzmg8C7PLKSxS2d"); } pub mod update_syscall_base_costs { solana_pubkey::declare_id!("2h63t332mGCCsWK2nqqqHhN4U9ayyqhLVFvczznHDoTZ"); } pub mod stake_deactivate_delinquent_instruction { solana_pubkey::declare_id!("437r62HoAdUb63amq3D7ENnBLDhHT2xY8eFkLJYVKK4x"); } pub mod vote_withdraw_authority_may_change_authorized_voter { solana_pubkey::declare_id!("AVZS3ZsN4gi6Rkx2QUibYuSJG3S6QHib7xCYhG6vGJxU"); } pub mod spl_associated_token_account_v1_0_4 { solana_pubkey::declare_id!("FaTa4SpiaSNH44PGC4z8bnGVTkSRYaWvrBs3KTu8XQQq"); } pub mod reject_vote_account_close_unless_zero_credit_epoch { solana_pubkey::declare_id!("ALBk3EWdeAg2WAGf6GPDUf1nynyNqCdEVmgouG7rpuCj"); } pub mod add_get_processed_sibling_instruction_syscall { solana_pubkey::declare_id!("CFK1hRCNy8JJuAAY8Pb2GjLFNdCThS2qwZNe3izzBMgn"); } pub mod bank_transaction_count_fix { solana_pubkey::declare_id!("Vo5siZ442SaZBKPXNocthiXysNviW4UYPwRFggmbgAp"); } pub mod disable_bpf_deprecated_load_instructions { solana_pubkey::declare_id!("3XgNukcZWf9o3HdA3fpJbm94XFc4qpvTXc8h1wxYwiPi"); } pub mod disable_bpf_unresolved_symbols_at_runtime { solana_pubkey::declare_id!("4yuaYAj2jGMGTh1sSmi4G2eFscsDq8qjugJXZoBN6YEa"); } pub mod record_instruction_in_transaction_context_push { solana_pubkey::declare_id!("3aJdcZqxoLpSBxgeYGjPwaYS1zzcByxUDqJkbzWAH1Zb"); } pub mod syscall_saturated_math { solana_pubkey::declare_id!("HyrbKftCdJ5CrUfEti6x26Cj7rZLNe32weugk7tLcWb8"); } pub mod check_physical_overlapping { solana_pubkey::declare_id!("nWBqjr3gpETbiaVj3CBJ3HFC5TMdnJDGt21hnvSTvVZ"); } pub mod limit_secp256k1_recovery_id { solana_pubkey::declare_id!("7g9EUwj4j7CS21Yx1wvgWLjSZeh5aPq8x9kpoPwXM8n8"); } pub mod disable_deprecated_loader { solana_pubkey::declare_id!("GTUMCZ8LTNxVfxdrw7ZsDFTxXb7TutYkzJnFwinpE6dg"); } pub mod check_slice_translation_size { solana_pubkey::declare_id!("GmC19j9qLn2RFk5NduX6QXaDhVpGncVVBzyM8e9WMz2F"); } pub mod stake_split_uses_rent_sysvar { solana_pubkey::declare_id!("FQnc7U4koHqWgRvFaBJjZnV8VPg6L6wWK33yJeDp4yvV"); } pub mod add_get_minimum_delegation_instruction_to_stake_program { solana_pubkey::declare_id!("St8k9dVXP97xT6faW24YmRSYConLbhsMJA4TJTBLmMT"); } pub mod error_on_syscall_bpf_function_hash_collisions { solana_pubkey::declare_id!("8199Q2gMD2kwgfopK5qqVWuDbegLgpuFUFHCcUJQDN8b"); } pub mod reject_callx_r10 { solana_pubkey::declare_id!("3NKRSwpySNwD3TvP5pHnRmkAQRsdkXWRr1WaQh8p4PWX"); } pub mod drop_redundant_turbine_path { solana_pubkey::declare_id!("4Di3y24QFLt5QEUPZtbnjyfQKfm6ZMTfa6Dw1psfoMKU"); } pub mod executables_incur_cpi_data_cost { solana_pubkey::declare_id!("7GUcYgq4tVtaqNCKT3dho9r4665Qp5TxCZ27Qgjx3829"); } pub mod fix_recent_blockhashes { solana_pubkey::declare_id!("6iyggb5MTcsvdcugX7bEKbHV8c6jdLbpHwkncrgLMhfo"); } pub mod update_rewards_from_cached_accounts { solana_pubkey::declare_id!("28s7i3htzhahXQKqmS2ExzbEoUypg9krwvtK2M9UWXh9"); } pub mod partitioned_epoch_rewards_superfeature { solana_pubkey::declare_id!("PERzQrt5gBD1XEe2c9XdFWqwgHY3mr7cYWbm5V772V8"); } pub mod spl_token_v3_4_0 { solana_pubkey::declare_id!("Ftok4njE8b7tDffYkC5bAbCaQv5sL6jispYrprzatUwN"); } pub mod spl_associated_token_account_v1_1_0 { solana_pubkey::declare_id!("FaTa17gVKoqbh38HcfiQonPsAaQViyDCCSg71AubYZw8"); } pub mod default_units_per_instruction { solana_pubkey::declare_id!("J2QdYx8crLbTVK8nur1jeLsmc3krDbfjoxoea2V1Uy5Q"); } pub mod stake_allow_zero_undelegated_amount { solana_pubkey::declare_id!("sTKz343FM8mqtyGvYWvbLpTThw3ixRM4Xk8QvZ985mw"); } pub mod require_static_program_ids_in_transaction { solana_pubkey::declare_id!("8FdwgyHFEjhAdjWfV2vfqk7wA1g9X3fQpKH7SBpEv3kC"); } pub mod stake_raise_minimum_delegation_to_1_sol { // This is a feature-proposal *feature id*. The feature keypair address is `GQXzC7YiSNkje6FFUk6sc2p53XRvKoaZ9VMktYzUMnpL`. solana_pubkey::declare_id!("9onWzzvCzNC2jfhxxeqRgs5q7nFAAKpCUvkj6T6GJK9i"); } pub mod add_set_compute_unit_price_ix { solana_pubkey::declare_id!("98std1NSHqXi9WYvFShfVepRdCoq1qvsp8fsR2XZtG8g"); } pub mod disable_deploy_of_alloc_free_syscall { solana_pubkey::declare_id!("79HWsX9rpnnJBPcdNURVqygpMAfxdrAirzAGAVmf92im"); } pub mod include_account_index_in_rent_error { solana_pubkey::declare_id!("2R72wpcQ7qV7aTJWUumdn8u5wmmTyXbK7qzEy7YSAgyY"); } pub mod add_shred_type_to_shred_seed { solana_pubkey::declare_id!("Ds87KVeqhbv7Jw8W6avsS1mqz3Mw5J3pRTpPoDQ2QdiJ"); } pub mod warp_timestamp_with_a_vengeance { solana_pubkey::declare_id!("3BX6SBeEBibHaVQXywdkcgyUk6evfYZkHdztXiDtEpFS"); } pub mod separate_nonce_from_blockhash { solana_pubkey::declare_id!("Gea3ZkK2N4pHuVZVxWcnAtS6UEDdyumdYt4pFcKjA3ar"); } pub mod enable_durable_nonce { solana_pubkey::declare_id!("4EJQtF2pkRyawwcTVfQutzq4Sa5hRhibF6QAK1QXhtEX"); } pub mod vote_state_update_credit_per_dequeue { solana_pubkey::declare_id!("CveezY6FDLVBToHDcvJRmtMouqzsmj4UXYh5ths5G5Uv"); } pub mod quick_bail_on_panic { solana_pubkey::declare_id!("DpJREPyuMZ5nDfU6H3WTqSqUFSXAfw8u7xqmWtEwJDcP"); } pub mod nonce_must_be_authorized { solana_pubkey::declare_id!("HxrEu1gXuH7iD3Puua1ohd5n4iUKJyFNtNxk9DVJkvgr"); } pub mod nonce_must_be_advanceable { solana_pubkey::declare_id!("3u3Er5Vc2jVcwz4xr2GJeSAXT3fAj6ADHZ4BJMZiScFd"); } pub mod vote_authorize_with_seed { solana_pubkey::declare_id!("6tRxEYKuy2L5nnv5bgn7iT28MxUbYxp5h7F3Ncf1exrT"); } pub mod preserve_rent_epoch_for_rent_exempt_accounts { solana_pubkey::declare_id!("HH3MUYReL2BvqqA3oEcAa7txju5GY6G4nxJ51zvsEjEZ"); } pub mod enable_bpf_loader_extend_program_ix { solana_pubkey::declare_id!("8Zs9W7D9MpSEtUWSQdGniZk2cNmV22y6FLJwCx53asme"); } pub mod enable_early_verification_of_account_modifications { solana_pubkey::declare_id!("7Vced912WrRnfjaiKRiNBcbuFw7RrnLv3E3z95Y4GTNc"); } pub mod skip_rent_rewrites { solana_pubkey::declare_id!("CGB2jM8pwZkeeiXQ66kBMyBR6Np61mggL7XUsmLjVcrw"); } pub mod prevent_crediting_accounts_that_end_rent_paying { solana_pubkey::declare_id!("812kqX67odAp5NFwM8D2N24cku7WTm9CHUTFUXaDkWPn"); } pub mod cap_bpf_program_instruction_accounts { solana_pubkey::declare_id!("9k5ijzTbYPtjzu8wj2ErH9v45xecHzQ1x4PMYMMxFgdM"); } pub mod loosen_cpi_size_restriction { solana_pubkey::declare_id!("GDH5TVdbTPUpRnXaRyQqiKUa7uZAbZ28Q2N9bhbKoMLm"); } pub mod use_default_units_in_fee_calculation { solana_pubkey::declare_id!("8sKQrMQoUHtQSUP83SPG4ta2JDjSAiWs7t5aJ9uEd6To"); } pub mod compact_vote_state_updates { solana_pubkey::declare_id!("86HpNqzutEZwLcPxS6EHDcMNYWk6ikhteg9un7Y2PBKE"); } pub mod incremental_snapshot_only_incremental_hash_calculation { solana_pubkey::declare_id!("25vqsfjk7Nv1prsQJmA4Xu1bN61s8LXCBGUPp8Rfy1UF"); } pub mod disable_cpi_setting_executable_and_rent_epoch { solana_pubkey::declare_id!("B9cdB55u4jQsDNsdTK525yE9dmSc5Ga7YBaBrDFvEhM9"); } pub mod on_load_preserve_rent_epoch_for_rent_exempt_accounts { solana_pubkey::declare_id!("CpkdQmspsaZZ8FVAouQTtTWZkc8eeQ7V3uj7dWz543rZ"); } pub mod account_hash_ignore_slot { solana_pubkey::declare_id!("SVn36yVApPLYsa8koK3qUcy14zXDnqkNYWyUh1f4oK1"); } pub mod set_exempt_rent_epoch_max { solana_pubkey::declare_id!("5wAGiy15X1Jb2hkHnPDCM8oB9V42VNA9ftNVFK84dEgv"); } pub mod relax_authority_signer_check_for_lookup_table_creation { solana_pubkey::declare_id!("FKAcEvNgSY79RpqsPNUV5gDyumopH4cEHqUxyfm8b8Ap"); } pub mod stop_sibling_instruction_search_at_parent { solana_pubkey::declare_id!("EYVpEP7uzH1CoXzbD6PubGhYmnxRXPeq3PPsm1ba3gpo"); } pub mod vote_state_update_root_fix { solana_pubkey::declare_id!("G74BkWBzmsByZ1kxHy44H3wjwp5hp7JbrGRuDpco22tY"); } pub mod cap_accounts_data_allocations_per_transaction { solana_pubkey::declare_id!("9gxu85LYRAcZL38We8MYJ4A9AwgBBPtVBAqebMcT1241"); } pub mod epoch_accounts_hash { solana_pubkey::declare_id!("5GpmAKxaGsWWbPp4bNXFLJxZVvG92ctxf7jQnzTQjF3n"); } pub mod remove_deprecated_request_unit_ix { solana_pubkey::declare_id!("EfhYd3SafzGT472tYQDUc4dPd2xdEfKs5fwkowUgVt4W"); } pub mod disable_rehash_for_rent_epoch { solana_pubkey::declare_id!("DTVTkmw3JSofd8CJVJte8PXEbxNQ2yZijvVr3pe2APPj"); } pub mod increase_tx_account_lock_limit { solana_pubkey::declare_id!("9LZdXeKGeBV6hRLdxS1rHbHoEUsKqesCC2ZAPTPKJAbK"); } pub mod limit_max_instruction_trace_length { solana_pubkey::declare_id!("GQALDaC48fEhZGWRj9iL5Q889emJKcj3aCvHF7VCbbF4"); } pub mod check_syscall_outputs_do_not_overlap { solana_pubkey::declare_id!("3uRVPBpyEJRo1emLCrq38eLRFGcu6uKSpUXqGvU8T7SZ"); } pub mod enable_bpf_loader_set_authority_checked_ix { solana_pubkey::declare_id!("5x3825XS7M2A3Ekbn5VGGkvFoAg5qrRWkTrY4bARP1GL"); } pub mod enable_alt_bn128_syscall { solana_pubkey::declare_id!("A16q37opZdQMCbe5qJ6xpBB9usykfv8jZaMkxvZQi4GJ"); } pub mod simplify_alt_bn128_syscall_error_codes { solana_pubkey::declare_id!("JDn5q3GBeqzvUa7z67BbmVHVdE3EbUAjvFep3weR3jxX"); } pub mod enable_alt_bn128_compression_syscall { solana_pubkey::declare_id!("EJJewYSddEEtSZHiqugnvhQHiWyZKjkFDQASd7oKSagn"); } pub mod fix_alt_bn128_multiplication_input_length { solana_pubkey::declare_id!("bn2puAyxUx6JUabAxYdKdJ5QHbNNmKw8dCGuGCyRrFN"); } pub mod enable_program_redeployment_cooldown { solana_pubkey::declare_id!("J4HFT8usBxpcF63y46t1upYobJgChmKyZPm5uTBRg25Z"); } pub mod commission_updates_only_allowed_in_first_half_of_epoch { solana_pubkey::declare_id!("noRuG2kzACwgaY7TVmLRnUNPLKNVQE1fb7X55YWBehp"); } pub mod enable_turbine_fanout_experiments { solana_pubkey::declare_id!("D31EFnLgdiysi84Woo3of4JMu7VmasUS3Z7j9HYXCeLY"); } pub mod disable_turbine_fanout_experiments { solana_pubkey::declare_id!("turbnbNRp22nwZCmgVVXFSshz7H7V23zMzQgA46YpmQ"); } pub mod move_serialized_len_ptr_in_cpi { solana_pubkey::declare_id!("74CoWuBmt3rUVUrCb2JiSTvh6nXyBWUsK4SaMj3CtE3T"); } pub mod update_hashes_per_tick { solana_pubkey::declare_id!("3uFHb9oKdGfgZGJK9EHaAXN4USvnQtAFC13Fh5gGFS5B"); } pub mod enable_big_mod_exp_syscall { solana_pubkey::declare_id!("expH2ppKPW2ANEdEmAjfhSEcnBQJfmoX4FjuNpe9ttg"); } pub mod disable_builtin_loader_ownership_chains { solana_pubkey::declare_id!("4UDcAfQ6EcA6bdcadkeHpkarkhZGJ7Bpq7wTAiRMjkoi"); } pub mod cap_transaction_accounts_data_size { solana_pubkey::declare_id!("DdLwVYuvDz26JohmgSbA7mjpJFgX5zP2dkp8qsF2C33V"); } pub mod remove_congestion_multiplier_from_fee_calculation { solana_pubkey::declare_id!("A8xyMHZovGXFkorFqEmVH2PKGLiBip5JD7jt4zsUWo4H"); } pub mod enable_request_heap_frame_ix { solana_pubkey::declare_id!("Hr1nUA9b7NJ6eChS26o7Vi8gYYDDwWD3YeBfzJkTbU86"); } pub mod prevent_rent_paying_rent_recipients { solana_pubkey::declare_id!("Fab5oP3DmsLYCiQZXdjyqT3ukFFPrsmqhXU4WU1AWVVF"); } pub mod delay_visibility_of_program_deployment { solana_pubkey::declare_id!("GmuBvtFb2aHfSfMXpuFeWZGHyDeCLPS79s48fmCWCfM5"); } pub mod apply_cost_tracker_during_replay { solana_pubkey::declare_id!("2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj"); } pub mod syscall_parameter_address_restrictions { solana_pubkey::declare_id!("EDGMC5kxFxGk4ixsNkGt8bW7QL5hDMXnbwaZvYMwNfzF"); } pub mod virtual_address_space_adjustments { solana_pubkey::declare_id!("7VgiehxNxu53KdxgLspGQY8myE6f7UokaWa4jsGcaSz"); } pub mod account_data_direct_mapping { solana_pubkey::declare_id!("CR3dVN2Yoo95Y96kLSTaziWDAQT2MNEpiWh5cqVq2pNE"); } pub mod add_set_tx_loaded_accounts_data_size_instruction { solana_pubkey::declare_id!("G6vbf1UBok8MWb8m25ex86aoQHeKTzDKzuZADHkShqm6"); } pub mod switch_to_new_elf_parser { solana_pubkey::declare_id!("Cdkc8PPTeTNUPoZEfCY5AyetUrEdkZtNPMgz58nqyaHD"); } pub mod round_up_heap_size { solana_pubkey::declare_id!("CE2et8pqgyQMP2mQRg3CgvX8nJBKUArMu3wfiQiQKY1y"); } pub mod remove_bpf_loader_incorrect_program_id { solana_pubkey::declare_id!("2HmTkCj9tXuPE4ueHzdD7jPeMf9JGCoZh5AsyoATiWEe"); } pub mod include_loaded_accounts_data_size_in_fee_calculation { solana_pubkey::declare_id!("EaQpmC6GtRssaZ3PCUM5YksGqUdMLeZ46BQXYtHYakDS"); } pub mod native_programs_consume_cu { solana_pubkey::declare_id!("8pgXCMNXC8qyEFypuwpXyRxLXZdpM4Qo72gJ6k87A6wL"); } pub mod simplify_writable_program_account_check { solana_pubkey::declare_id!("5ZCcFAzJ1zsFKe1KSZa9K92jhx7gkcKj97ci2DBo1vwj"); } pub mod stop_truncating_strings_in_syscalls { solana_pubkey::declare_id!("16FMCmgLzCNNz6eTwGanbyN2ZxvTBSLuQ6DZhgeMshg"); } pub mod clean_up_delegation_errors { solana_pubkey::declare_id!("Bj2jmUsM2iRhfdLLDSTkhM5UQRQvQHm57HSmPibPtEyu"); } pub mod vote_state_add_vote_latency { solana_pubkey::declare_id!("7axKe5BTYBDD87ftzWbk5DfzWMGyRvqmWTduuo22Yaqy"); } pub mod checked_arithmetic_in_fee_validation { solana_pubkey::declare_id!("5Pecy6ie6XGm22pc9d4P9W5c31BugcFBuy6hsP2zkETv"); } pub mod last_restart_slot_sysvar { solana_pubkey::declare_id!("HooKD5NC9QNxk25QuzCssB8ecrEzGt6eXEPBUxWp1LaR"); } pub mod reduce_stake_warmup_cooldown { solana_pubkey::declare_id!("GwtDQBghCTBgmX2cpEGNPxTEBUTQRaDMGTr5qychdGMj"); } pub mod revise_turbine_epoch_stakes { solana_pubkey::declare_id!("BTWmtJC8U5ZLMbBUUA1k6As62sYjPEjAiNAT55xYGdJU"); } pub mod enable_poseidon_syscall { solana_pubkey::declare_id!("FL9RsQA6TVUoh5xJQ9d936RHSebA1NLQqe3Zv9sXZRpr"); } pub mod timely_vote_credits { solana_pubkey::declare_id!("tvcF6b1TRz353zKuhBjinZkKzjmihXmBAHJdjNYw1sQ"); } pub mod remaining_compute_units_syscall_enabled { solana_pubkey::declare_id!("5TuppMutoyzhUSfuYdhgzD47F92GL1g89KpCZQKqedxP"); } pub mod enable_loader_v4 { solana_pubkey::declare_id!("LoaderV4WasAbandoned11111111111111111111111"); } pub mod require_rent_exempt_split_destination { solana_pubkey::declare_id!("D2aip4BBr8NPWtU9vLrwrBvbuaQ8w1zV38zFLxx4pfBV"); } pub mod better_error_codes_for_tx_lamport_check { solana_pubkey::declare_id!("Ffswd3egL3tccB6Rv3XY6oqfdzn913vUcjCSnpvCKpfx"); } pub mod update_hashes_per_tick2 { solana_pubkey::declare_id!("EWme9uFqfy1ikK1jhJs8fM5hxWnK336QJpbscNtizkTU"); } pub mod update_hashes_per_tick3 { solana_pubkey::declare_id!("8C8MCtsab5SsfammbzvYz65HHauuUYdbY2DZ4sznH6h5"); } pub mod update_hashes_per_tick4 { solana_pubkey::declare_id!("8We4E7DPwF2WfAN8tRTtWQNhi98B99Qpuj7JoZ3Aikgg"); } pub mod update_hashes_per_tick5 { solana_pubkey::declare_id!("BsKLKAn1WM4HVhPRDsjosmqSg2J8Tq5xP2s2daDS6Ni4"); } pub mod update_hashes_per_tick6 { solana_pubkey::declare_id!("FKu1qYwLQSiehz644H6Si65U5ZQ2cp9GxsyFUfYcuADv"); } pub mod validate_fee_collector_account { solana_pubkey::declare_id!("prpFrMtgNmzaNzkPJg9o753fVvbHKqNrNTm76foJ2wm"); } pub mod disable_rent_fees_collection { solana_pubkey::declare_id!("CJzY83ggJHqPGDq8VisV3U91jDJLuEaALZooBrXtnnLU"); } pub mod enable_zk_transfer_with_fee { solana_pubkey::declare_id!("zkNLP7EQALfC1TYeB3biDU7akDckj8iPkvh9y2Mt2K3"); } pub mod drop_legacy_shreds { solana_pubkey::declare_id!("GV49KKQdBNaiv2pgqhS2Dy3GWYJGXMTVYbYkdk91orRy"); } pub mod allow_commission_decrease_at_any_time { solana_pubkey::declare_id!("decoMktMcnmiq6t3u7g5BfgcQu91nKZr6RvMYf9z1Jb"); } pub mod add_new_reserved_account_keys { solana_pubkey::declare_id!("8U4skmMVnF6k2kMvrWbQuRUT3qQSiTYpSjqmhmgfthZu"); } pub mod consume_blockstore_duplicate_proofs { solana_pubkey::declare_id!("6YsBCejwK96GZCkJ6mkZ4b68oP63z2PLoQmWjC7ggTqZ"); } pub mod index_erasure_conflict_duplicate_proofs { solana_pubkey::declare_id!("dupPajaLy2SSn8ko42aZz4mHANDNrLe8Nw8VQgFecLa"); } pub mod merkle_conflict_duplicate_proofs { solana_pubkey::declare_id!("mrkPjRg79B2oK2ZLgd7S3AfEJaX9B6gAF3H9aEykRUS"); } pub mod disable_bpf_loader_instructions { solana_pubkey::declare_id!("7WeS1vfPRgeeoXArLh7879YcB9mgE9ktjPDtajXeWfXn"); } pub mod enable_zk_proof_from_account { solana_pubkey::declare_id!("zkiTNuzBKxrCLMKehzuQeKZyLtX2yvFcEKMML8nExU8"); } pub mod cost_model_requested_write_lock_cost { solana_pubkey::declare_id!("wLckV1a64ngtcKPRGU4S4grVTestXjmNjxBjaKZrAcn"); } pub mod enable_gossip_duplicate_proof_ingestion { solana_pubkey::declare_id!("FNKCMBzYUdjhHyPdsKG2LSmdzH8TCHXn3ytj8RNBS4nG"); } pub mod chained_merkle_conflict_duplicate_proofs { solana_pubkey::declare_id!("chaie9S2zVfuxJKNRGkyTDokLwWxx6kD2ZLsqQHaDD8"); } pub mod enable_chained_merkle_shreds { solana_pubkey::declare_id!("7uZBkJXJ1HkuP6R3MJfZs7mLwymBcDbKdqbF51ZWLier"); } pub mod remove_rounding_in_fee_calculation { solana_pubkey::declare_id!("BtVN7YjDzNE6Dk7kTT7YTDgMNUZTNgiSJgsdzAeTg2jF"); } pub mod enable_tower_sync_ix { solana_pubkey::declare_id!("tSynMCspg4xFiCj1v3TDb4c7crMR5tSBhLz4sF7rrNA"); } pub mod deprecate_unused_legacy_vote_plumbing { solana_pubkey::declare_id!("6Uf8S75PVh91MYgPQSHnjRAPQq6an5BDv9vomrCwDqLe"); } pub mod reward_full_priority_fee { solana_pubkey::declare_id!("3opE3EzAKnUftUDURkzMgwpNgimBAypW1mNDYH4x4Zg7"); } pub mod get_sysvar_syscall_enabled { solana_pubkey::declare_id!("CLCoTADvV64PSrnR6QXty6Fwrt9Xc6EdxSJE4wLRePjq"); } pub mod abort_on_invalid_curve { solana_pubkey::declare_id!("FuS3FPfJDKSNot99ECLXtp3rueq36hMNStJkPJwWodLh"); } pub mod migrate_feature_gate_program_to_core_bpf { solana_pubkey::declare_id!("4eohviozzEeivk1y9UbrnekbAFMDQyJz5JjA9Y6gyvky"); } pub mod vote_only_full_fec_sets { solana_pubkey::declare_id!("ffecLRhhakKSGhMuc6Fz2Lnfq4uT9q3iu9ZsNaPLxPc"); } pub mod migrate_config_program_to_core_bpf { solana_pubkey::declare_id!("2Fr57nzzkLYXW695UdDxDeR5fhnZWSttZeZYemrnpGFV"); } pub mod enable_get_epoch_stake_syscall { solana_pubkey::declare_id!("FKe75t4LXxGaQnVHdUKM6DSFifVVraGZ8LyNo7oPwy1Z"); } pub mod migrate_address_lookup_table_program_to_core_bpf { solana_pubkey::declare_id!("C97eKZygrkU4JxJsZdjgbUY7iQR7rKTr4NyDWo2E5pRm"); } pub mod zk_elgamal_proof_program_enabled { solana_pubkey::declare_id!("zkhiy5oLowR7HY4zogXjCjeMXyruLqBwSWH21qcFtnv"); } pub mod verify_retransmitter_signature { solana_pubkey::declare_id!("51VCKU5eV6mcTc9q9ArfWELU2CqDoi13hdAjr6fHMdtv"); } pub mod move_stake_and_move_lamports_ixs { solana_pubkey::declare_id!("7bTK6Jis8Xpfrs8ZoUfiMDPazTcdPcTWheZFJTA5Z6X4"); } pub mod ed25519_precompile_verify_strict { solana_pubkey::declare_id!("ed9tNscbWLYBooxWA7FE2B5KHWs8A6sxfY8EzezEcoo"); } pub mod vote_only_retransmitter_signed_fec_sets { solana_pubkey::declare_id!("RfEcA95xnhuwooVAhUUksEJLZBF7xKCLuqrJoqk4Zph"); } pub mod move_precompile_verification_to_svm { solana_pubkey::declare_id!("9ypxGLzkMxi89eDerRKXWDXe44UY2z4hBig4mDhNq5Dp"); } pub mod enable_transaction_loading_failure_fees { solana_pubkey::declare_id!("PaymEPK2oqwT9TXAVfadjztH2H6KfLEB9Hhd5Q5frvP"); } pub mod enable_turbine_extended_fanout_experiments { solana_pubkey::declare_id!("turbRpTzBzDU6PJmWvRTbcJXXGxUs19CvQamUrRD9bN"); } pub mod deprecate_legacy_vote_ixs { solana_pubkey::declare_id!("depVvnQ2UysGrhwdiwU42tCadZL8GcBb1i2GYhMopQv"); } pub mod disable_sbpf_v0_execution { solana_pubkey::declare_id!("TestFeature11111111111111111111111111111111"); } pub mod reenable_sbpf_v0_execution { solana_pubkey::declare_id!("TestFeature21111111111111111111111111111111"); } pub mod enable_sbpf_v1_deployment_and_execution { solana_pubkey::declare_id!("JE86WkYvTrzW8HgNmrHY7dFYpCmSptUpKupbo2AdQ9cG"); } pub mod enable_sbpf_v2_deployment_and_execution { solana_pubkey::declare_id!("F6UVKh1ujTEFK3en2SyAL3cdVnqko1FVEXWhmdLRu6WP"); } pub mod enable_sbpf_v3_deployment_and_execution { solana_pubkey::declare_id!("5cC3foj77CWun58pC51ebHFUWavHWKarWyR5UUik7dnC"); } pub mod disable_sbpf_v0_v1_v2_deployment { solana_pubkey::declare_id!("B8JJXCy5amZyWG9r7EnUYLwzXSXTxG7GZ1qZ1qggo83g"); } pub mod remove_accounts_executable_flag_checks { solana_pubkey::declare_id!("FXs1zh47QbNnhXcnB6YiAQoJ4sGB91tKF3UFHLcKT7PM"); } pub mod disable_account_loader_special_case { solana_pubkey::declare_id!("EQUMpNFr7Nacb1sva56xn1aLfBxppEoSBH8RRVdkcD1x"); } pub mod enable_secp256r1_precompile { solana_pubkey::declare_id!("srremy31J5Y25FrAApwVb9kZcfXbusYMMsvTK9aWv5q"); } pub mod accounts_lt_hash { solana_pubkey::declare_id!("LTHasHQX6661DaDD4S6A2TFi6QBuiwXKv66fB1obfHq"); } pub mod snapshots_lt_hash { solana_pubkey::declare_id!("LTsNAP8h1voEVVToMNBNqoiNQex4aqfUrbFhRH3mSQ2"); } pub mod remove_accounts_delta_hash { solana_pubkey::declare_id!("LTdLt9Ycbyoipz5fLysCi1NnDnASsZfmJLJXts5ZxZz"); } pub mod migrate_stake_program_to_core_bpf { solana_pubkey::declare_id!("6M4oQ6eXneVhtLoiAr4yRYQY43eVLjrKbiDZDJc892yk"); } pub mod deplete_cu_meter_on_vm_failure { solana_pubkey::declare_id!("B7H2caeia4ZFcpE3QcgMqbiWiBtWrdBRBSJ1DY6Ktxbq"); } pub mod reserve_minimal_cus_for_builtin_instructions { solana_pubkey::declare_id!("C9oAhLxDBm3ssWtJx1yBGzPY55r2rArHmN1pbQn6HogH"); } pub mod raise_block_limits_to_50m { solana_pubkey::declare_id!("5oMCU3JPaFLr8Zr4ct7yFA7jdk6Mw1RmB8K4u9ZbS42z"); } pub mod drop_unchained_merkle_shreds { solana_pubkey::declare_id!("5KLGJSASDVxKPjLCDWNtnABLpZjsQSrYZ8HKwcEdAMC8"); } pub mod relax_intrabatch_account_locks { solana_pubkey::declare_id!("4WeHX6QoXCCwqbSFgi6dxnB6QsPo6YApaNTH7P4MLQ99"); } pub mod disable_partitioned_rent_collection { solana_pubkey::declare_id!("2B2SBNbUcr438LtGXNcJNBP2GBSxjx81F945SdSkUSfC"); } pub mod enable_vote_address_leader_schedule { solana_pubkey::declare_id!("5JsG4NWH8Jbrqdd8uL6BNwnyZK3dQSoieRXG5vmofj9y"); } pub mod require_static_nonce_account { solana_pubkey::declare_id!("7VVhpg5oAjAmnmz1zCcSHb2Z9ecZB2FQqpnEwReka9Zm"); } pub mod raise_block_limits_to_60m { solana_pubkey::declare_id!("6oMCUgfY6BzZ6jwB681J6ju5Bh6CjVXbd7NeWYqiXBSu"); } pub mod mask_out_rent_epoch_in_vm_serialization { solana_pubkey::declare_id!("RENtePQcDLrAbxAsP3k8dwVcnNYQ466hi2uKvALjnXx"); } pub mod enable_extend_program_checked { solana_pubkey::declare_id!("ExtendProgCheckedWi11BeDe1eted11111111111111"); } pub mod formalize_loaded_transaction_data_size { solana_pubkey::declare_id!("DeS7sR48ZcFTUmt5FFEVDr1v1bh73aAbZiZq3SYr8Eh8"); } pub mod alpenglow { solana_pubkey::declare_id!("A1pengvuM6JEcyNuTnMqepBKhwHE3N6PmUrdATGawhJS"); } pub mod disable_zk_elgamal_proof_program { solana_pubkey::declare_id!("zkdoVwnSFnSLtGJG7irJPEYUpmb4i7sGMGcnN6T9rnC"); } pub mod reenable_zk_elgamal_proof_program { solana_pubkey::declare_id!("zkexuyPRdyTVbZqEAREueqL2xvvoBhRgth9xGSc1tMN"); } pub mod raise_block_limits_to_100m { solana_pubkey::declare_id!("P1BCUMpAC7V2GRBRiJCNUgpMyWZhoqt3LKo712ePqsz"); } pub mod raise_account_cu_limit { solana_pubkey::declare_id!("htsptAwi2yRoZH83SKaUXykeZGtZHgxkS2QwW1pssR8"); } pub mod delay_commission_updates { solana_pubkey::declare_id!("76dHtohc2s5dR3ahJyBxs7eJJVipFkaPdih9CLgTTb4B"); } pub mod raise_cpi_nesting_limit_to_8 { solana_pubkey::declare_id!("6TkHkRmP7JZy1fdM6fg5uXn76wChQBWGokHBJzrLB3mj"); } pub mod enforce_fixed_fec_set { solana_pubkey::declare_id!("fixfecLZYMfkGzwq6NJA11Yw6KYztzXiK9QcL3K78in"); } pub mod provide_instruction_data_offset_in_vm_r2 { solana_pubkey::declare_id!("5xXZc66h4UdB6Yq7FzdBxBiRAFMMScMLwHxk2QZDaNZL"); } pub mod create_account_allow_prefund { solana_pubkey::declare_id!("6sPDzwyARRExKH52LECxcGoqziH8G7SZofwuxi8Ja331"); } pub mod static_instruction_limit { solana_pubkey::declare_id!("64ixypL1HPu8WtJhNSMb9mSgfFaJvsANuRkTbHyuLfnx"); } pub mod discard_unexpected_data_complete_shreds { solana_pubkey::declare_id!("disCA4efguFL6Wqa4pGdG7jpjC7C5uiKzKnhEBqchBe"); } pub mod vote_state_v4 { solana_pubkey::declare_id!("Gx4XFcrVMt4HUvPzTpTSVkdDVgcDSjKhDN1RqRS6KDuZ"); pub mod stake_program_buffer { solana_pubkey::declare_id!("BM11F4hqrpinQs28sEZfzQ2fYddivYs4NEAHF6QMjkJF"); } } pub mod switch_to_chacha8_turbine { solana_pubkey::declare_id!("CHaChatUnR3s6cPyPMMGNJa3VdQQ8PNH2JqdD4LpCKnB"); } pub mod increase_cpi_account_info_limit { solana_pubkey::declare_id!("H6iVbVaDZgDphcPbcZwc5LoznMPWQfnJ1AM7L1xzqvt5"); } pub mod deprecate_rent_exemption_threshold { solana_pubkey::declare_id!("rent6iVy6PDoViPBeJ6k5EJQrkj62h7DPyLbWGHwjrC"); } pub mod poseidon_enforce_padding { solana_pubkey::declare_id!("poUdAqRXXsNmfqAZ6UqpjbeYgwBygbfQLEvWSqVhSnb"); } pub mod fix_alt_bn128_pairing_length_check { solana_pubkey::declare_id!("bnYzodLwmybj7e1HAe98yZrdJTd7we69eMMLgCXqKZm"); } pub mod replace_spl_token_with_p_token { use super::Pubkey; solana_pubkey::declare_id!("ptokFjwyJtrwCa9Kgo9xoDS59V4QccBGEaRFnRPnSdP"); pub const SPL_TOKEN_PROGRAM_ID: Pubkey = Pubkey::from_str_const("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA"); pub const PTOKEN_PROGRAM_BUFFER: Pubkey = Pubkey::from_str_const("ptok6rngomXrDbWf5v5Mkmu5CEbB51hzSCPDoj9DrvF"); } pub mod alt_bn128_little_endian { solana_pubkey::declare_id!("bn2oPgpkzQPT3tohMaAsMVGjhDmmDa4jCaVPqCFmtxM"); } pub mod bls_pubkey_management_in_vote_account { solana_pubkey::declare_id!("AnAP9zPV4KL7czAPQbFhpDKV2tx7g4UGNbK9wvXwjaRo"); } pub mod relax_programdata_account_check_migration { solana_pubkey::declare_id!("rexav5eNTUSNT1K2N7cfRjnthwhcP5BC25v2tA4rW4h"); } pub mod enable_alt_bn128_g2_syscalls { solana_pubkey::declare_id!("bn1hKNURMGQaQoEVxahcEAcqiX3NwRs6hgKKNSLeKxH"); } pub mod commission_rate_in_basis_points { solana_pubkey::declare_id!("Eg7tXEwMZzS98xaZ1YHUbdRHsaYZiCsSaR6sKgxreoaj"); } pub mod custom_commission_collector { solana_pubkey::declare_id!("3HcSrCTGXTUnrTueHi4DAwNuMxZSsm5xui2Ax3mgxHqf"); } pub mod enable_bls12_381_syscall { solana_pubkey::declare_id!("b1sgUiJ3qu7hYm3tNDyyqZNQd6gLGJmJppnLNa93PCQ"); } // SIMD-0437 feature gates pub mod set_lamports_per_byte_to_6333 { solana_pubkey::declare_id!("4a6f7o7iTcA8hRDCrPLkSatnt5Ykxiu36wo5p1Tt12wC"); pub const LAMPORTS_PER_BYTE: u64 = 6333; } pub mod set_lamports_per_byte_to_5080 { solana_pubkey::declare_id!("61BtM7BkDEE8Yq5fskEVAQT9mYA8qCejJWoLe5apqg81"); pub const LAMPORTS_PER_BYTE: u64 = 5080; } pub mod set_lamports_per_byte_to_2575 { solana_pubkey::declare_id!("Ftxb3ZKq7aNqgxDBbP7EonvR2RszZk9ctjdsTX38kQaz"); pub const LAMPORTS_PER_BYTE: u64 = 2575; } pub mod set_lamports_per_byte_to_1322 { solana_pubkey::declare_id!("GsUBNYNDPdMLHPD37TToHzrzcNcjpC9w5n1EcJk5iTaM"); pub const LAMPORTS_PER_BYTE: u64 = 1322; } pub mod set_lamports_per_byte_to_696 { solana_pubkey::declare_id!("mZdnRh9T2EbDNvqKjkCR3bvo5c816tJaojtE9Xs7iuY"); pub const LAMPORTS_PER_BYTE: u64 = 696; } pub mod remove_simple_vote_from_cost_model { solana_pubkey::declare_id!("2GCrNXbzmt4xrwdcKS2RdsLzsgu4V5zHAemW57pcHT6a"); } pub mod limit_instruction_accounts { solana_pubkey::declare_id!("6aHuNsUmwSzCEMjrBzBCYaxHAyAcQBjVES92JigHBDuC"); } pub mod block_revenue_sharing { solana_pubkey::declare_id!("B1ockRevenueSharing111111111111111111111111"); } pub mod vote_account_initialize_v2 { solana_pubkey::declare_id!("VoteAccount1nitia1izeV211111111111111111111"); } pub mod validate_chained_block_id { solana_pubkey::declare_id!("vcmrbYbiMVKaq1snKP6eCacNDcr6qZvpCNUjmk6gxvZ"); } pub mod validate_chained_block_id_2 { solana_pubkey::declare_id!("vcmrw431aNM8ngQ46derkZXipoTGQdbHkEygBDh12dA"); } pub mod validator_admission_ticket { solana_pubkey::declare_id!("VAT9huvhPjRN9cyrPytq9rwvEJ3J4ADtjdncgZRyANJ"); } pub mod direct_account_pointers_in_program_input { solana_pubkey::declare_id!("ptr9umikaeAS7ZBBp2fsfRhie16F1V2jCKA2y6gXNAK"); } pub mod loader_v3_minimum_extend_program_size { solana_pubkey::declare_id!("YbbRLkvenrocjGPGyoQE4wjnvYzTgfsk38NFmcYK7a5"); } pub mod upgrade_bpf_stake_program_to_v5 { solana_pubkey::declare_id!("STk5Xj8hdAx3sTzmtJ3QysKkq6X2A3yj73JtxttiRyk"); pub mod buffer { solana_pubkey::declare_id!("4EBQBjw1kqF1dqUBb6fc5Ji4tCEQgNf9ESGGX3smwXwh"); } } pub mod enable_sha512_syscall { solana_pubkey::declare_id!("s512oDwgx8hjMnaQjXfqqrZroVj4HvC6TkN3iSSWXCh"); } pub mod relax_post_exec_min_balance_check { solana_pubkey::declare_id!("BY4JhHLahVzS9ynfDz4exzGPbVXhFmJvEyMWsXbDBqME"); } pub mod enable_tx_v1 { solana_pubkey::declare_id!("txv1aq4pp281K9um3tnPgkfX8UqtFT6wcVW3hNezGLL"); } pub mod define_ltds_fee_only_semantics { solana_pubkey::declare_id!("LTDSzjZKFJMKHYpNycG1FrWwGGTaFFwqEFjB5GGLNVD"); } pub mod set_lamports_per_byte_to_6960 { solana_pubkey::declare_id!("5AqsUgSb6cgLizSaNiFn3o9XB7VUtKDtDZfcKEjEDmni"); pub const LAMPORTS_PER_BYTE: u64 = 6960; } pub mod reduce_slot_time_to_350ms { solana_pubkey::declare_id!("iBRL5RuWhw4yqaAZu96RUULHckHTZAoe2b77qaV38JZ"); } pub mod reduce_slot_time_to_300ms { solana_pubkey::declare_id!("iBRLL3k18HST852F1Mf3Lv83waTNQmmqvKDxvYGwQFL"); } pub mod reduce_slot_time_to_250ms { solana_pubkey::declare_id!("iBRLMc81UjRa8fn8A6eE8bJTnRbgQoPTynM51akENCV"); } pub mod reduce_slot_time_to_200ms { solana_pubkey::declare_id!("iBRLjhJnkmDZgNoZRDMW11d8ZV7HvsL3vAyRjZB5npW"); } pub mod upgrade_bpf_stake_program_to_v5_1 { solana_pubkey::declare_id!("s51VGwCAgebo2745DSUris72RavoLkXGUmVJosESCXr"); } pub mod alpenglow_fast_leader_handover { solana_pubkey::declare_id!("FLHoAWBDjNh6zwmJ5i1NKK4KyD8otAiv7XxvmnFnVnKH"); } pub mod relax_fee_payer_constraint { solana_pubkey::declare_id!("FEEXbxUuKobtrt1qNK5pjtzbPQhsppBTrNNG74xu4mai"); } pub mod double_disinflation_rate { solana_pubkey::declare_id!("55oikhjJ2LUi1xdgJ17ueRyHFURZEw32asT3iAKfh7gg"); /// Taper (yearly disinflation rate) applied from activation onward. pub const TAPER: f64 = 0.30; } pub static FEATURE_NAMES: LazyLock> = LazyLock::new(|| { [ (secp256k1_program_enabled::id(), "secp256k1 program"), ( deprecate_rewards_sysvar::id(), "deprecate unused rewards sysvar", ), (pico_inflation::id(), "pico inflation"), ( full_inflation::devnet_and_testnet::id(), "full inflation on devnet and testnet", ), (spl_token_v2_multisig_fix::id(), "spl-token multisig fix"), ( no_overflow_rent_distribution::id(), "no overflow rent distribution", ), ( filter_stake_delegation_accounts::id(), "filter stake_delegation_accounts #14062", ), ( require_custodian_for_locked_stake_authorize::id(), "require custodian to authorize withdrawer change for locked stake", ), ( spl_token_v2_self_transfer_fix::id(), "spl-token self-transfer fix", ), ( full_inflation::mainnet::certusone::enable::id(), "full inflation enabled by Certus One", ), ( full_inflation::mainnet::certusone::vote::id(), "community vote allowing Certus One to enable full inflation", ), ( warp_timestamp_again::id(), "warp timestamp again, adjust bounding to 25% fast 80% slow #15204", ), (check_init_vote_data::id(), "check initialized Vote data"), ( secp256k1_recover_syscall_enabled::id(), "secp256k1_recover syscall", ), ( system_transfer_zero_check::id(), "perform all checks for transfers of 0 lamports", ), (blake3_syscall_enabled::id(), "blake3 syscall"), ( dedupe_config_program_signers::id(), "dedupe config program signers", ), ( verify_tx_signatures_len::id(), "prohibit extra transaction signatures", ), ( vote_stake_checked_instructions::id(), "vote/state program checked instructions #18345", ), ( rent_for_sysvars::id(), "collect rent from accounts owned by sysvars", ), ( libsecp256k1_0_5_upgrade_enabled::id(), "upgrade libsecp256k1 to v0.5.0", ), (tx_wide_compute_cap::id(), "transaction wide compute cap"), ( spl_token_v2_set_authority_fix::id(), "spl-token set_authority fix", ), ( merge_nonce_error_into_system_error::id(), "merge NonceError into SystemError", ), (disable_fees_sysvar::id(), "disable fees sysvar"), ( stake_merge_with_unmatched_credits_observed::id(), "allow merging active stakes with unmatched credits_observed #18985", ), ( zk_token_sdk_enabled::id(), "enable Zk Token proof program and syscalls", ), ( curve25519_syscall_enabled::id(), "enable curve25519 syscalls", ), ( versioned_tx_message_enabled::id(), "enable versioned transaction message processing", ), ( libsecp256k1_fail_on_bad_count::id(), "fail libsecp256k1_verify if count appears wrong", ), ( libsecp256k1_fail_on_bad_count2::id(), "fail libsecp256k1_verify if count appears wrong", ), ( instructions_sysvar_owned_by_sysvar::id(), "fix owner for instructions sysvar", ), ( stake_program_advance_activating_credits_observed::id(), "Enable advancing credits observed for activation epoch #19309", ), ( credits_auto_rewind::id(), "Auto rewind stake's credits_observed if (accidental) vote recreation is detected \ #22546", ), ( demote_program_write_locks::id(), "demote program write locks to readonly, except when upgradeable loader present \ #19593 #20265", ), ( ed25519_program_enabled::id(), "enable builtin ed25519 signature verify program", ), ( return_data_syscall_enabled::id(), "enable sol_{set,get}_return_data syscall", ), ( 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", ), ( do_support_realloc::id(), "support account data reallocation", ), ( prevent_calling_precompiles_as_programs::id(), "prevent calling precompiles as programs", ), ( optimize_epoch_boundary_updates::id(), "optimize epoch boundary updates", ), ( remove_native_loader::id(), "remove support for the native loader", ), ( send_to_tpu_vote_port::id(), "send votes to the tpu vote port", ), (requestable_heap_size::id(), "Requestable heap frame size"), (disable_fee_calculator::id(), "deprecate fee calculator"), ( add_compute_budget_program::id(), "Add compute_budget_program", ), (nonce_must_be_writable::id(), "nonce must be writable"), (spl_token_v3_3_0_release::id(), "spl-token v3.3.0 release"), (leave_nonce_on_success::id(), "leave nonce as is on success"), ( reject_empty_instruction_without_program::id(), "fail instructions which have native_loader as program_id directly", ), ( fixed_memcpy_nonoverlapping_check::id(), "use correct check for nonoverlapping regions in memcpy syscall", ), ( reject_non_rent_exempt_vote_withdraws::id(), "fail vote withdraw instructions which leave the account non-rent-exempt", ), ( evict_invalid_stakes_cache_entries::id(), "evict invalid stakes cache entries on epoch boundaries", ), ( allow_votes_to_directly_update_vote_state::id(), "enable direct vote state update", ), ( 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", ), (update_syscall_base_costs::id(), "update syscall base costs"), ( stake_deactivate_delinquent_instruction::id(), "enable the deactivate delinquent stake instruction #23932", ), ( vote_withdraw_authority_may_change_authorized_voter::id(), "vote account withdraw authority may change the authorized voter #22521", ), ( spl_associated_token_account_v1_0_4::id(), "SPL Associated Token Account Program release version 1.0.4, tied to token 3.3.0 \ #22648", ), ( reject_vote_account_close_unless_zero_credit_epoch::id(), "fail vote account withdraw to 0 unless account earned 0 credits in last completed \ epoch", ), ( add_get_processed_sibling_instruction_syscall::id(), "add add_get_processed_sibling_instruction_syscall", ), ( bank_transaction_count_fix::id(), "fixes Bank::transaction_count to include all committed transactions, not just \ successful ones", ), ( disable_bpf_deprecated_load_instructions::id(), "disable ldabs* and ldind* SBF instructions", ), ( disable_bpf_unresolved_symbols_at_runtime::id(), "disable reporting of unresolved SBF symbols at runtime", ), ( record_instruction_in_transaction_context_push::id(), "move the CPI stack overflow check to the end of push", ), (syscall_saturated_math::id(), "syscalls use saturated math"), ( 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", ), ( stake_split_uses_rent_sysvar::id(), "stake split instruction uses rent sysvar", ), ( add_get_minimum_delegation_instruction_to_stake_program::id(), "add GetMinimumDelegation instruction to stake program", ), ( error_on_syscall_bpf_function_hash_collisions::id(), "error on bpf function hash collisions", ), (reject_callx_r10::id(), "Reject bpf callx r10 instructions"), ( drop_redundant_turbine_path::id(), "drop redundant turbine path", ), ( executables_incur_cpi_data_cost::id(), "Executables incur CPI data costs", ), ( fix_recent_blockhashes::id(), "stop adding hashes for skipped slots to recent blockhashes", ), ( update_rewards_from_cached_accounts::id(), "update rewards from cached accounts", ), ( spl_token_v3_4_0::id(), "SPL Token Program version 3.4.0 release #24740", ), ( spl_associated_token_account_v1_1_0::id(), "SPL Associated Token Account Program version 1.1.0 release #24741", ), ( default_units_per_instruction::id(), "Default max tx-wide compute units calculated per instruction", ), ( stake_allow_zero_undelegated_amount::id(), "Allow zero-lamport undelegated amount for initialized stakes #24670", ), ( require_static_program_ids_in_transaction::id(), "require static program ids in versioned transactions", ), ( stake_raise_minimum_delegation_to_1_sol::id(), "Raise minimum stake delegation to 1.0 SOL #24357", ), ( add_set_compute_unit_price_ix::id(), "add compute budget ix for setting a compute unit price", ), ( disable_deploy_of_alloc_free_syscall::id(), "disable new deployments of deprecated sol_alloc_free_ syscall", ), ( include_account_index_in_rent_error::id(), "include account index in rent tx error #25190", ), ( add_shred_type_to_shred_seed::id(), "add shred-type to shred seed #25556", ), ( warp_timestamp_with_a_vengeance::id(), "warp timestamp again, adjust bounding to 150% slow #25666", ), ( separate_nonce_from_blockhash::id(), "separate durable nonce and blockhash domains #25744", ), (enable_durable_nonce::id(), "enable durable nonce #25744"), ( vote_state_update_credit_per_dequeue::id(), "Calculate vote credits for VoteStateUpdate per vote dequeue to match credit awards \ for Vote instruction", ), (quick_bail_on_panic::id(), "quick bail on panic"), (nonce_must_be_authorized::id(), "nonce must be authorized"), ( nonce_must_be_advanceable::id(), "durable nonces must be advanceable", ), ( vote_authorize_with_seed::id(), "An instruction you can use to change a vote accounts authority when the current \ authority is a derived key #25860", ), ( preserve_rent_epoch_for_rent_exempt_accounts::id(), "preserve rent epoch for rent exempt accounts #26479", ), ( enable_bpf_loader_extend_program_ix::id(), "enable bpf upgradeable loader ExtendProgram instruction #25234", ), (skip_rent_rewrites::id(), "SIMD-0183: Skip rent rewrites"), ( enable_early_verification_of_account_modifications::id(), "enable early verification of account modifications #25899", ), ( disable_rehash_for_rent_epoch::id(), "on accounts hash calculation, do not try to rehash accounts #28934", ), ( account_hash_ignore_slot::id(), "ignore slot when calculating an account hash #28420", ), ( set_exempt_rent_epoch_max::id(), "set rent epoch to Epoch::MAX for rent-exempt accounts #28683", ), ( on_load_preserve_rent_epoch_for_rent_exempt_accounts::id(), "on bank load account, do not try to fix up rent_epoch #28541", ), ( prevent_crediting_accounts_that_end_rent_paying::id(), "prevent crediting rent paying accounts #26606", ), ( cap_bpf_program_instruction_accounts::id(), "enforce max number of accounts per bpf program instruction #26628", ), ( loosen_cpi_size_restriction::id(), "loosen cpi size restrictions #26641", ), ( use_default_units_in_fee_calculation::id(), "use default units per instruction in fee calculation #26785", ), ( compact_vote_state_updates::id(), "Compact vote state updates to lower block size", ), ( incremental_snapshot_only_incremental_hash_calculation::id(), "only hash accounts in incremental snapshot during incremental snapshot creation \ #26799", ), ( disable_cpi_setting_executable_and_rent_epoch::id(), "disable setting is_executable and_rent_epoch in CPI #26987", ), ( relax_authority_signer_check_for_lookup_table_creation::id(), "relax authority signer check for lookup table creation #27205", ), ( stop_sibling_instruction_search_at_parent::id(), "stop the search in get_processed_sibling_instruction when the parent instruction is \ reached #27289", ), ( vote_state_update_root_fix::id(), "fix root in vote state updates #27361", ), ( cap_accounts_data_allocations_per_transaction::id(), "cap accounts data allocations per transaction #27375", ), ( epoch_accounts_hash::id(), "enable epoch accounts hash calculation #27539", ), ( remove_deprecated_request_unit_ix::id(), "remove support for RequestUnitsDeprecated instruction #27500", ), ( increase_tx_account_lock_limit::id(), "increase tx account lock limit to 128 #27241", ), ( limit_max_instruction_trace_length::id(), "limit max instruction trace length #27939", ), ( check_syscall_outputs_do_not_overlap::id(), "check syscall outputs do_not overlap #28600", ), ( enable_bpf_loader_set_authority_checked_ix::id(), "enable bpf upgradeable loader SetAuthorityChecked instruction #28424", ), ( enable_alt_bn128_syscall::id(), "add alt_bn128 syscalls #27961", ), ( simplify_alt_bn128_syscall_error_codes::id(), "SIMD-0129: simplify alt_bn128 syscall error codes", ), ( enable_program_redeployment_cooldown::id(), "enable program redeployment cooldown #29135", ), ( commission_updates_only_allowed_in_first_half_of_epoch::id(), "validator commission updates are only allowed in the first half of an epoch #29362", ), ( enable_turbine_fanout_experiments::id(), "enable turbine fanout experiments #29393", ), ( disable_turbine_fanout_experiments::id(), "disable turbine fanout experiments #29393", ), ( move_serialized_len_ptr_in_cpi::id(), "cpi ignore serialized_len_ptr #29592", ), ( update_hashes_per_tick::id(), "Update desired hashes per tick on epoch boundary", ), ( enable_big_mod_exp_syscall::id(), "SIMD-0529: big_integer mod_exp syscall", ), ( disable_builtin_loader_ownership_chains::id(), "disable builtin loader ownership chains #29956", ), ( cap_transaction_accounts_data_size::id(), "cap transaction accounts data size up to a limit #27839", ), ( remove_congestion_multiplier_from_fee_calculation::id(), "Remove congestion multiplier from transaction fee calculation #29881", ), ( enable_request_heap_frame_ix::id(), "Enable transaction to request heap frame using compute budget instruction #30076", ), ( prevent_rent_paying_rent_recipients::id(), "prevent recipients of rent rewards from ending in rent-paying state #30151", ), ( delay_visibility_of_program_deployment::id(), "delay visibility of program upgrades #30085", ), ( apply_cost_tracker_during_replay::id(), "apply cost tracker to blocks during replay #29595", ), ( add_set_tx_loaded_accounts_data_size_instruction::id(), "add compute budget instruction for setting account data size per transaction #30366", ), ( switch_to_new_elf_parser::id(), "switch to new ELF parser #30497", ), ( round_up_heap_size::id(), "round up heap size when calculating heap cost #30679", ), ( remove_bpf_loader_incorrect_program_id::id(), "stop incorrectly throwing IncorrectProgramId in bpf_loader #30747", ), ( include_loaded_accounts_data_size_in_fee_calculation::id(), "include transaction loaded accounts data size in base fee calculation #30657", ), ( native_programs_consume_cu::id(), "Native program should consume compute units #30620", ), ( simplify_writable_program_account_check::id(), "Simplify checks performed for writable upgradeable program accounts #30559", ), ( stop_truncating_strings_in_syscalls::id(), "Stop truncating strings in syscalls #31029", ), ( clean_up_delegation_errors::id(), "Return InsufficientDelegation instead of InsufficientFunds or InsufficientStake \ where applicable #31206", ), ( vote_state_add_vote_latency::id(), "replace Lockout with LandedVote (including vote latency) in vote state #31264", ), ( checked_arithmetic_in_fee_validation::id(), "checked arithmetic in fee validation #31273", ), ( syscall_parameter_address_restrictions::id(), "SIMD-0459: Syscall Parameter Address Restrictions", ), ( virtual_address_space_adjustments::id(), "SIMD-0460: Virtual Address Space Adjustments", ), ( account_data_direct_mapping::id(), "enable account data direct mapping", ), ( last_restart_slot_sysvar::id(), "SIMD-0047: Enable new sysvar last_restart_slot", ), ( reduce_stake_warmup_cooldown::id(), "reduce stake warmup cooldown from 25% to 9%", ), ( revise_turbine_epoch_stakes::id(), "revise turbine epoch stakes", ), (enable_poseidon_syscall::id(), "Enable Poseidon syscall"), ( timely_vote_credits::id(), "use timeliness of votes in determining credits to award", ), ( remaining_compute_units_syscall_enabled::id(), "enable the remaining_compute_units syscall", ), (enable_loader_v4::id(), "SIMD-0167: Enable Loader-v4"), ( require_rent_exempt_split_destination::id(), "Require stake split destination account to be rent exempt", ), ( better_error_codes_for_tx_lamport_check::id(), "better error codes for tx lamport check #33353", ), ( enable_alt_bn128_compression_syscall::id(), "add alt_bn128 compression syscalls", ), ( update_hashes_per_tick2::id(), "Update desired hashes per tick to 2.8M", ), ( update_hashes_per_tick3::id(), "Update desired hashes per tick to 4.4M", ), ( update_hashes_per_tick4::id(), "Update desired hashes per tick to 7.6M", ), ( update_hashes_per_tick5::id(), "Update desired hashes per tick to 9.2M", ), ( update_hashes_per_tick6::id(), "Update desired hashes per tick to 10M", ), ( validate_fee_collector_account::id(), "validate fee collector account #33888", ), ( disable_rent_fees_collection::id(), "SIMD-0084: Disable rent fees collection", ), ( enable_zk_transfer_with_fee::id(), "enable Zk Token proof program transfer with fee", ), (drop_legacy_shreds::id(), "drops legacy shreds #34328"), ( allow_commission_decrease_at_any_time::id(), "Allow commission decrease at any time in epoch #33843", ), ( consume_blockstore_duplicate_proofs::id(), "consume duplicate proofs from blockstore in consensus #34372", ), ( add_new_reserved_account_keys::id(), "SIMD-0105: Maintain Dynamic Set of Reserved Account Keys", ), ( index_erasure_conflict_duplicate_proofs::id(), "generate duplicate proofs for index and erasure conflicts #34360", ), ( merkle_conflict_duplicate_proofs::id(), "generate duplicate proofs for merkle root conflicts #34270", ), ( disable_bpf_loader_instructions::id(), "disable bpf loader management instructions #34194", ), ( enable_zk_proof_from_account::id(), "Enable zk token proof program to read proof from accounts instead of instruction \ data #34750", ), ( curve25519_restrict_msm_length::id(), "restrict curve25519 multiscalar multiplication vector lengths #34763", ), ( cost_model_requested_write_lock_cost::id(), "cost model uses number of requested write locks #34819", ), ( enable_gossip_duplicate_proof_ingestion::id(), "enable gossip duplicate proof ingestion #32963", ), ( enable_chained_merkle_shreds::id(), "Enable chained Merkle shreds #34916", ), ( remove_rounding_in_fee_calculation::id(), "Removing unwanted rounding in fee calculation #34982", ), ( deprecate_unused_legacy_vote_plumbing::id(), "Deprecate unused legacy vote tx plumbing", ), ( enable_tower_sync_ix::id(), "Enable tower sync vote instruction", ), ( chained_merkle_conflict_duplicate_proofs::id(), "generate duplicate proofs for chained merkle root conflicts", ), ( reward_full_priority_fee::id(), "SIMD-0096: Reward full priority fee to validators", ), ( abort_on_invalid_curve::id(), "SIMD-0137: Abort when elliptic curve syscalls invoked on invalid curve id", ), ( get_sysvar_syscall_enabled::id(), "SIMD-0127: Enable syscall for fetching Sysvar bytes", ), ( migrate_feature_gate_program_to_core_bpf::id(), "SIMD-0089: Migrate Feature Gate program to Core BPF (programify)", ), (vote_only_full_fec_sets::id(), "vote only full fec sets"), ( migrate_config_program_to_core_bpf::id(), "SIMD-0140: Migrate Config program to Core BPF", ), ( enable_get_epoch_stake_syscall::id(), "SIMD-0133: Enable syscall: sol_get_epoch_stake", ), ( migrate_address_lookup_table_program_to_core_bpf::id(), "SIMD-0128: Migrate Address Lookup Table program to Core BPF", ), ( zk_elgamal_proof_program_enabled::id(), "SIMD-0153: Enable ZkElGamalProof program", ), ( verify_retransmitter_signature::id(), "Verify retransmitter signature #1840", ), ( move_stake_and_move_lamports_ixs::id(), "Enable MoveStake and MoveLamports stake program instructions #1610", ), ( ed25519_precompile_verify_strict::id(), "SIMD-0152: Use strict verification in ed25519 precompile", ), ( vote_only_retransmitter_signed_fec_sets::id(), "vote only on retransmitter signed fec sets", ), ( move_precompile_verification_to_svm::id(), "SIMD-0159: Move precompile verification into SVM", ), ( enable_transaction_loading_failure_fees::id(), "SIMD-0082: Enable fees for some additional transaction failures", ), ( enable_turbine_extended_fanout_experiments::id(), "enable turbine extended fanout experiments #", ), ( deprecate_legacy_vote_ixs::id(), "Deprecate legacy vote instructions", ), ( partitioned_epoch_rewards_superfeature::id(), "SIMD-0118: replaces enable_partitioned_epoch_reward to enable partitioned rewards at \ epoch boundary", ), ( disable_sbpf_v0_execution::id(), "SIMD-0161: Disables execution of SBPFv0 programs", ), ( reenable_sbpf_v0_execution::id(), "Re-enables execution of SBPFv0 programs", ), ( enable_sbpf_v1_deployment_and_execution::id(), "SIMD-0166: Enable deployment and execution of SBPFv1 programs", ), ( enable_sbpf_v2_deployment_and_execution::id(), "SIMD-0173 and SIMD-0174: Enable deployment and execution of SBPFv2 programs", ), ( enable_sbpf_v3_deployment_and_execution::id(), "SIMD-0178, SIMD-0189 and SIMD-0377: Enable deployment and execution of SBPFv3 \ programs", ), ( disable_sbpf_v0_v1_v2_deployment::id(), "SIMD-0500: Disable deployment of SBPF v0, v1 and v2 programs", ), ( remove_accounts_executable_flag_checks::id(), "SIMD-0162: Remove checks of accounts is_executable flag", ), ( disable_account_loader_special_case::id(), "Disable account loader special case #3513", ), ( accounts_lt_hash::id(), "SIMD-0215: enables lattice-based accounts hash", ), ( snapshots_lt_hash::id(), "SIMD-0220: snapshots use lattice-based accounts hash", ), ( remove_accounts_delta_hash::id(), "SIMD-0223: removes accounts delta hash", ), ( enable_secp256r1_precompile::id(), "SIMD-0075: Enable secp256r1 precompile", ), ( migrate_stake_program_to_core_bpf::id(), "SIMD-0196: Migrate Stake program to Core BPF #3655", ), ( deplete_cu_meter_on_vm_failure::id(), "SIMD-0182: Deplete compute meter for vm errors #3993", ), ( reserve_minimal_cus_for_builtin_instructions::id(), "SIMD-0170: Reserve minimal CUs for builtin instructions #2562", ), ( raise_block_limits_to_50m::id(), "SIMD-0207: Raise block limit to 50M", ), ( fix_alt_bn128_multiplication_input_length::id(), "SIMD-0222: fix alt_bn128 multiplication input length #3686", ), ( drop_unchained_merkle_shreds::id(), "drops unchained Merkle shreds #2149", ), ( relax_intrabatch_account_locks::id(), "SIMD-0083: Allow batched transactions to read/write and write/write the same accounts", ), ( disable_partitioned_rent_collection::id(), "SIMD-0175: Disable partitioned rent collection #4562", ), ( enable_vote_address_leader_schedule::id(), "SIMD-0180: Enable vote address leader schedule #4573", ), ( require_static_nonce_account::id(), "SIMD-0242: Static Nonce Account Only", ), ( raise_block_limits_to_60m::id(), "SIMD-0256: Raise block limit to 60M", ), ( mask_out_rent_epoch_in_vm_serialization::id(), "SIMD-0267: Sets rent_epoch to a constant in the VM", ), ( enable_extend_program_checked::id(), "Enable ExtendProgramChecked instruction", ), ( formalize_loaded_transaction_data_size::id(), "SIMD-0186: Loaded transaction data size specification", ), ( alpenglow::id(), "SIMD-0326: Alpenglow: new consensus algorithm", ), ( reduce_slot_time_to_350ms::id(), "SIMD-0525: Reduce slot time to 350ms", ), ( reduce_slot_time_to_300ms::id(), "SIMD-0525: Reduce slot time to 300ms", ), ( reduce_slot_time_to_250ms::id(), "SIMD-0525: Reduce slot time to 250ms", ), ( reduce_slot_time_to_200ms::id(), "SIMD-0525: Reduce slot time to 200ms", ), ( disable_zk_elgamal_proof_program::id(), "Disables zk-elgamal-proof program", ), ( reenable_zk_elgamal_proof_program::id(), "Re-enables zk-elgamal-proof program", ), ( raise_block_limits_to_100m::id(), "SIMD-0286: Raise block limit to 100M", ), ( raise_account_cu_limit::id(), "SIMD-0306: Raise account CU limit to 40% max", ), ( raise_cpi_nesting_limit_to_8::id(), "SIMD-0268: Raise CPI nesting limit from 4 to 8", ), ( enforce_fixed_fec_set::id(), "SIMD-0317: Enforce 32 data + 32 coding shreds", ), ( provide_instruction_data_offset_in_vm_r2::id(), "SIMD-0321: Provide instruction data offset in VM r2", ), ( create_account_allow_prefund::id(), "SIMD-0312: Enable CreateAccountAllowPrefund system program instruction", ), ( static_instruction_limit::id(), "SIMD-0160: static instruction limit", ), ( discard_unexpected_data_complete_shreds::id(), "SIMD-0337: Markers for Alpenglow Fast Leader Handover, DATA_COMPLETE_SHRED placement \ rules", ), (vote_state_v4::id(), "SIMD-0185: Vote State v4"), ( switch_to_chacha8_turbine::id(), "SIMD-0332: Reduce ChaCha rounds for Turbine from 20 to 8", ), ( delay_commission_updates::id(), "SIMD-0249: Delay Commission Updates", ), ( increase_cpi_account_info_limit::id(), "SIMD-0339: Increase CPI Account Infos Limit", ), ( deprecate_rent_exemption_threshold::id(), "SIMD-0194: Deprecate rent exemption threshold", ), ( poseidon_enforce_padding::id(), "SIMD-0359: Enforce padding in Poseidon hash inputs", ), ( fix_alt_bn128_pairing_length_check::id(), "SIMD-0334: Fix alt_bn128_pairing length check", ), ( replace_spl_token_with_p_token::id(), "SIMD-0266: Efficient Token program", ), ( alt_bn128_little_endian::id(), "SIMD-0284: Add little-endian compatibility for alt_bn128", ), ( bls_pubkey_management_in_vote_account::id(), "SIMD-0387: BLS Pubkey Management in Vote Account", ), ( relax_programdata_account_check_migration::id(), "SIMD-0444: Relax program data account check in migration", ), ( enable_alt_bn128_g2_syscalls::id(), "SIMD-0302: Add alt_bn128 G2 syscalls", ), ( commission_rate_in_basis_points::id(), "SIMD-0291: Commission Rate in Basis Points", ), ( custom_commission_collector::id(), "SIMD-0232: Custom Commission Collector", ), ( enable_bls12_381_syscall::id(), "SIMD-0388: BLS12-381 syscalls", ), ( set_lamports_per_byte_to_6333::id(), "SIMD-0437-1: Set lamports per byte to 6333", ), ( set_lamports_per_byte_to_5080::id(), "SIMD-0437-2: Set lamports per byte to 5080", ), ( set_lamports_per_byte_to_2575::id(), "SIMD-0437-3: Set lamports per byte to 2575", ), ( set_lamports_per_byte_to_1322::id(), "SIMD-0437-4: Set lamports per byte to 1322", ), ( set_lamports_per_byte_to_696::id(), "SIMD-0437-5: Set lamports per byte to 696", ), ( remove_simple_vote_from_cost_model::id(), "stop use static SimpleVote transaction cost, issue #10227", ), ( limit_instruction_accounts::id(), "SIMD-0406: Maximum instruction accounts", ), ( block_revenue_sharing::id(), "SIMD-0123: Block Revenue Sharing", ), ( vote_account_initialize_v2::id(), "SIMD-0464: Vote Account Initialize V2", ), ( validate_chained_block_id::id(), "SIMD-0340: Validate chained block ID", ), ( validator_admission_ticket::id(), "SIMD-0357: Alpenglow VAT implementation", ), ( direct_account_pointers_in_program_input::id(), "SIMD-0449: Direct Account Pointers in Program Input", ), ( upgrade_bpf_stake_program_to_v5::id(), "SIMD-0490: Upgrade BPF Stake Program to v5.0.0", ), ( loader_v3_minimum_extend_program_size::id(), "SIMD-0431: Loader V3 minimum extend program size", ), (enable_sha512_syscall::id(), "SIMD-0512: SHA512 Syscall"), ( relax_post_exec_min_balance_check::id(), "SIMD-0392: Relaxation of post-execution min_balance check", ), (enable_tx_v1::id(), "SIMD-0385: Transaction V1"), ( define_ltds_fee_only_semantics::id(), "SIMD-0186 Amendment: Define fee-only semantics", ), ( set_lamports_per_byte_to_6960::id(), "SIMD-0438: Reset lamports per byte to legacy value of 6960", ), ( validate_chained_block_id_2::id(), "SIMD-340: Encompassing check for validate chained block ID", ), ( upgrade_bpf_stake_program_to_v5_1::id(), "SIMD-0391: Upgrade BPF Stake Program to v5.1.0 (fixed-point warmup/cooldown)", ), ( alpenglow_fast_leader_handover::id(), "SIMD-0326: Alpenglow fast leader handover", ), ( relax_fee_payer_constraint::id(), "SIMD-0290: Relax block constraint requiring valid fee-payer", ), ( double_disinflation_rate::id(), "SIMD-0550: Double disinflation rate", ), /*************** ADD NEW FEATURES HERE ***************/ /***** ADD NEW FEATURE BOOL TO `FeatureSnapshot` *****/ ] .iter() .cloned() .collect() }); /// Unique identifier of the current software's feature set pub static ID: LazyLock = LazyLock::new(|| { let mut hasher = Hasher::default(); let mut feature_ids = FEATURE_NAMES.keys().collect::>(); feature_ids.sort(); for feature in feature_ids { hasher.hash(feature.as_ref()); } hasher.result() }); #[derive(Clone, PartialEq, Eq, Hash)] pub struct FullInflationFeaturePair { pub vote_id: Pubkey, // Feature that grants the candidate the ability to enable full inflation pub enable_id: Pubkey, // Feature to enable full inflation by the candidate } /// Set of feature pairs that once enabled will trigger full inflation pub static FULL_INFLATION_FEATURE_PAIRS: LazyLock> = LazyLock::new(|| { [FullInflationFeaturePair { vote_id: full_inflation::mainnet::certusone::vote::id(), enable_id: full_inflation::mainnet::certusone::enable::id(), }] .iter() .cloned() .collect() }); #[cfg(test)] mod test { use super::*; #[test] fn test_full_inflation_features_enabled_devnet_and_testnet() { let mut feature_set = FeatureSet::default(); assert!(feature_set.full_inflation_features_enabled().is_empty()); feature_set .active .insert(full_inflation::devnet_and_testnet::id(), 42); assert_eq!( feature_set.full_inflation_features_enabled(), [full_inflation::devnet_and_testnet::id()] .iter() .cloned() .collect() ); } #[test] fn test_full_inflation_features_enabled() { // Normal sequence: vote_id then enable_id let mut feature_set = FeatureSet::default(); assert!(feature_set.full_inflation_features_enabled().is_empty()); feature_set .active .insert(full_inflation::mainnet::certusone::vote::id(), 42); assert!(feature_set.full_inflation_features_enabled().is_empty()); feature_set .active .insert(full_inflation::mainnet::certusone::enable::id(), 42); assert_eq!( feature_set.full_inflation_features_enabled(), [full_inflation::mainnet::certusone::enable::id()] .iter() .cloned() .collect() ); // Backwards sequence: enable_id and then vote_id let mut feature_set = FeatureSet::default(); assert!(feature_set.full_inflation_features_enabled().is_empty()); feature_set .active .insert(full_inflation::mainnet::certusone::enable::id(), 42); assert!(feature_set.full_inflation_features_enabled().is_empty()); feature_set .active .insert(full_inflation::mainnet::certusone::vote::id(), 42); assert_eq!( feature_set.full_inflation_features_enabled(), [full_inflation::mainnet::certusone::enable::id()] .iter() .cloned() .collect() ); } }