Skip to main content

agave_feature_set/
lib.rs

1#![cfg(feature = "agave-unstable-api")]
2#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
3
4use {
5    ahash::{AHashMap, AHashSet},
6    solana_epoch_schedule::EpochSchedule,
7    solana_hash::Hash,
8    solana_pubkey::Pubkey,
9    solana_sha256_hasher::Hasher,
10    solana_svm_feature_set::SVMFeatureSet,
11    std::sync::LazyLock,
12};
13
14/// A snapshot of features for faster access without a hash lookup.
15/// It should contain only features that have not been activated on
16/// all clusters.
17/// The order of fields should match the declaration order in
18/// [`FEATURE_NAMES`].
19#[derive(Debug, Clone, Eq, PartialEq)]
20pub struct FeatureSnapshot {
21    pub blake3_syscall_enabled: bool,
22    pub disable_fees_sysvar: bool,
23    pub curve25519_syscall_enabled: bool,
24    pub stake_raise_minimum_delegation_to_1_sol: bool,
25    pub disable_deploy_of_alloc_free_syscall: bool,
26    pub increase_tx_account_lock_limit: bool,
27    pub enable_bpf_loader_set_authority_checked_ix: bool,
28    pub enable_alt_bn128_syscall: bool,
29    pub simplify_alt_bn128_syscall_error_codes: bool,
30    pub enable_big_mod_exp_syscall: bool,
31    pub remove_bpf_loader_incorrect_program_id: bool,
32    pub syscall_parameter_address_restrictions: bool,
33    pub virtual_address_space_adjustments: bool,
34    pub account_data_direct_mapping: bool,
35    pub last_restart_slot_sysvar: bool,
36    pub enable_poseidon_syscall: bool,
37    pub remaining_compute_units_syscall_enabled: bool,
38    pub enable_alt_bn128_compression_syscall: bool,
39    pub abort_on_invalid_curve: bool,
40    pub get_sysvar_syscall_enabled: bool,
41    pub enable_get_epoch_stake_syscall: bool,
42    pub move_stake_and_move_lamports_ixs: bool,
43    pub move_precompile_verification_to_svm: bool,
44    pub deprecate_legacy_vote_ixs: bool,
45    pub disable_sbpf_v0_execution: bool,
46    pub reenable_sbpf_v0_execution: bool,
47    pub enable_sbpf_v1_deployment_and_execution: bool,
48    pub enable_sbpf_v2_deployment_and_execution: bool,
49    pub enable_sbpf_v3_deployment_and_execution: bool,
50    pub disable_sbpf_v0_v1_v2_deployment: bool,
51    pub deplete_cu_meter_on_vm_failure: bool,
52    pub fix_alt_bn128_multiplication_input_length: bool,
53    pub formalize_loaded_transaction_data_size: bool,
54    pub alpenglow: bool,
55    pub alpenglow_fast_leader_handover: bool,
56    pub disable_zk_elgamal_proof_program: bool,
57    pub reenable_zk_elgamal_proof_program: bool,
58    pub raise_block_limits_to_100m: bool,
59    pub raise_cpi_nesting_limit_to_8: bool,
60    pub provide_instruction_data_offset_in_vm_r2: bool,
61    pub create_account_allow_prefund: bool,
62    pub delay_commission_updates: bool,
63    pub increase_cpi_account_info_limit: bool,
64    pub deprecate_rent_exemption_threshold: bool,
65    pub poseidon_enforce_padding: bool,
66    pub fix_alt_bn128_pairing_length_check: bool,
67    pub alt_bn128_little_endian: bool,
68    pub bls_pubkey_management_in_vote_account: bool,
69    pub relax_programdata_account_check_migration: bool,
70    pub enable_alt_bn128_g2_syscalls: bool,
71    pub commission_rate_in_basis_points: bool,
72    pub custom_commission_collector: bool,
73    pub enable_bls12_381_syscall: bool,
74    pub set_lamports_per_byte_to_6333: bool,
75    pub set_lamports_per_byte_to_5080: bool,
76    pub set_lamports_per_byte_to_2575: bool,
77    pub set_lamports_per_byte_to_1322: bool,
78    pub limit_instruction_accounts: bool,
79    pub block_revenue_sharing: bool,
80    pub vote_account_initialize_v2: bool,
81    pub validate_chained_block_id: bool,
82    pub validator_admission_ticket: bool,
83    pub direct_account_pointers_in_program_input: bool,
84    pub upgrade_bpf_stake_program_to_v5: bool,
85    pub loader_v3_minimum_extend_program_size: bool,
86    pub enable_sha512_syscall: bool,
87    pub relax_post_exec_min_balance_check: bool,
88    pub enable_tx_v1: bool,
89    pub define_ltds_fee_only_semantics: bool,
90    pub validate_chained_block_id_2: bool,
91    pub upgrade_bpf_stake_program_to_v5_1: bool,
92}
93
94impl From<&AHashMap<Pubkey, u64>> for FeatureSnapshot {
95    fn from(active: &AHashMap<Pubkey, u64>) -> Self {
96        let is_active = |feature_id: &Pubkey| active.contains_key(feature_id);
97        Self {
98            blake3_syscall_enabled: is_active(&blake3_syscall_enabled::ID),
99            disable_fees_sysvar: is_active(&disable_fees_sysvar::ID),
100            curve25519_syscall_enabled: is_active(&curve25519_syscall_enabled::ID),
101            stake_raise_minimum_delegation_to_1_sol: is_active(
102                &stake_raise_minimum_delegation_to_1_sol::ID,
103            ),
104            disable_deploy_of_alloc_free_syscall: is_active(
105                &disable_deploy_of_alloc_free_syscall::ID,
106            ),
107            increase_tx_account_lock_limit: is_active(&increase_tx_account_lock_limit::ID),
108            enable_bpf_loader_set_authority_checked_ix: is_active(
109                &enable_bpf_loader_set_authority_checked_ix::ID,
110            ),
111            enable_alt_bn128_syscall: is_active(&enable_alt_bn128_syscall::ID),
112            simplify_alt_bn128_syscall_error_codes: is_active(
113                &simplify_alt_bn128_syscall_error_codes::ID,
114            ),
115            enable_big_mod_exp_syscall: is_active(&enable_big_mod_exp_syscall::ID),
116            remove_bpf_loader_incorrect_program_id: is_active(
117                &remove_bpf_loader_incorrect_program_id::ID,
118            ),
119            syscall_parameter_address_restrictions: is_active(
120                &syscall_parameter_address_restrictions::ID,
121            ),
122            virtual_address_space_adjustments: is_active(&virtual_address_space_adjustments::ID),
123            account_data_direct_mapping: is_active(&account_data_direct_mapping::ID),
124            last_restart_slot_sysvar: is_active(&last_restart_slot_sysvar::ID),
125            enable_poseidon_syscall: is_active(&enable_poseidon_syscall::ID),
126            remaining_compute_units_syscall_enabled: is_active(
127                &remaining_compute_units_syscall_enabled::ID,
128            ),
129            enable_alt_bn128_compression_syscall: is_active(
130                &enable_alt_bn128_compression_syscall::ID,
131            ),
132            abort_on_invalid_curve: is_active(&abort_on_invalid_curve::ID),
133            get_sysvar_syscall_enabled: is_active(&get_sysvar_syscall_enabled::ID),
134            enable_get_epoch_stake_syscall: is_active(&enable_get_epoch_stake_syscall::ID),
135            move_stake_and_move_lamports_ixs: is_active(&move_stake_and_move_lamports_ixs::ID),
136            move_precompile_verification_to_svm: is_active(
137                &move_precompile_verification_to_svm::ID,
138            ),
139            deprecate_legacy_vote_ixs: is_active(&deprecate_legacy_vote_ixs::ID),
140            disable_sbpf_v0_execution: is_active(&disable_sbpf_v0_execution::ID),
141            reenable_sbpf_v0_execution: is_active(&reenable_sbpf_v0_execution::ID),
142            enable_sbpf_v1_deployment_and_execution: is_active(
143                &enable_sbpf_v1_deployment_and_execution::ID,
144            ),
145            enable_sbpf_v2_deployment_and_execution: is_active(
146                &enable_sbpf_v2_deployment_and_execution::ID,
147            ),
148            enable_sbpf_v3_deployment_and_execution: is_active(
149                &enable_sbpf_v3_deployment_and_execution::ID,
150            ),
151            disable_sbpf_v0_v1_v2_deployment: is_active(&disable_sbpf_v0_v1_v2_deployment::ID),
152            deplete_cu_meter_on_vm_failure: is_active(&deplete_cu_meter_on_vm_failure::ID),
153            fix_alt_bn128_multiplication_input_length: is_active(
154                &fix_alt_bn128_multiplication_input_length::ID,
155            ),
156            formalize_loaded_transaction_data_size: is_active(
157                &formalize_loaded_transaction_data_size::ID,
158            ),
159            alpenglow: is_active(&alpenglow::ID),
160            alpenglow_fast_leader_handover: is_active(&alpenglow_fast_leader_handover::ID),
161            disable_zk_elgamal_proof_program: is_active(&disable_zk_elgamal_proof_program::ID),
162            reenable_zk_elgamal_proof_program: is_active(&reenable_zk_elgamal_proof_program::ID),
163            raise_block_limits_to_100m: is_active(&raise_block_limits_to_100m::ID),
164            raise_cpi_nesting_limit_to_8: is_active(&raise_cpi_nesting_limit_to_8::ID),
165            provide_instruction_data_offset_in_vm_r2: is_active(
166                &provide_instruction_data_offset_in_vm_r2::ID,
167            ),
168            create_account_allow_prefund: is_active(&create_account_allow_prefund::ID),
169            delay_commission_updates: is_active(&delay_commission_updates::ID),
170            increase_cpi_account_info_limit: is_active(&increase_cpi_account_info_limit::ID),
171            deprecate_rent_exemption_threshold: is_active(&deprecate_rent_exemption_threshold::ID),
172            poseidon_enforce_padding: is_active(&poseidon_enforce_padding::ID),
173            fix_alt_bn128_pairing_length_check: is_active(&fix_alt_bn128_pairing_length_check::ID),
174            alt_bn128_little_endian: is_active(&alt_bn128_little_endian::ID),
175            bls_pubkey_management_in_vote_account: is_active(
176                &bls_pubkey_management_in_vote_account::ID,
177            ),
178            relax_programdata_account_check_migration: is_active(
179                &relax_programdata_account_check_migration::ID,
180            ),
181            enable_alt_bn128_g2_syscalls: is_active(&enable_alt_bn128_g2_syscalls::ID),
182            commission_rate_in_basis_points: is_active(&commission_rate_in_basis_points::ID),
183            custom_commission_collector: is_active(&custom_commission_collector::ID),
184            enable_bls12_381_syscall: is_active(&enable_bls12_381_syscall::ID),
185            set_lamports_per_byte_to_6333: is_active(&set_lamports_per_byte_to_6333::ID),
186            set_lamports_per_byte_to_5080: is_active(&set_lamports_per_byte_to_5080::ID),
187            set_lamports_per_byte_to_2575: is_active(&set_lamports_per_byte_to_2575::ID),
188            set_lamports_per_byte_to_1322: is_active(&set_lamports_per_byte_to_1322::ID),
189            limit_instruction_accounts: is_active(&limit_instruction_accounts::ID),
190            block_revenue_sharing: is_active(&block_revenue_sharing::ID),
191            vote_account_initialize_v2: is_active(&vote_account_initialize_v2::ID),
192            validate_chained_block_id: is_active(&validate_chained_block_id::ID),
193            validator_admission_ticket: is_active(&validator_admission_ticket::ID),
194            direct_account_pointers_in_program_input: is_active(
195                &direct_account_pointers_in_program_input::ID,
196            ),
197            upgrade_bpf_stake_program_to_v5: is_active(&upgrade_bpf_stake_program_to_v5::ID),
198            loader_v3_minimum_extend_program_size: is_active(
199                &loader_v3_minimum_extend_program_size::ID,
200            ),
201            enable_sha512_syscall: is_active(&enable_sha512_syscall::ID),
202            relax_post_exec_min_balance_check: is_active(&relax_post_exec_min_balance_check::ID),
203            enable_tx_v1: is_active(&enable_tx_v1::ID),
204            define_ltds_fee_only_semantics: is_active(&define_ltds_fee_only_semantics::ID),
205            validate_chained_block_id_2: is_active(&validate_chained_block_id_2::ID),
206            upgrade_bpf_stake_program_to_v5_1: is_active(&upgrade_bpf_stake_program_to_v5_1::ID),
207        }
208    }
209}
210
211#[cfg_attr(feature = "frozen-abi", derive(solana_frozen_abi_macro::AbiExample))]
212#[derive(Debug, Clone, Eq, PartialEq)]
213pub struct FeatureSet {
214    active: AHashMap<Pubkey, u64>,
215    inactive: AHashSet<Pubkey>,
216    snapshot: FeatureSnapshot,
217}
218
219impl Default for FeatureSet {
220    fn default() -> Self {
221        // All features disabled
222        let active = AHashMap::new();
223        let snapshot = FeatureSnapshot::from(&active);
224        Self {
225            active,
226            inactive: AHashSet::from_iter((*FEATURE_NAMES).keys().cloned()),
227            snapshot,
228        }
229    }
230}
231
232impl FeatureSet {
233    pub fn new(active: AHashMap<Pubkey, u64>, inactive: AHashSet<Pubkey>) -> Self {
234        let feature_snapshot = FeatureSnapshot::from(&active);
235        Self {
236            active,
237            inactive,
238            snapshot: feature_snapshot,
239        }
240    }
241
242    pub fn active(&self) -> &AHashMap<Pubkey, u64> {
243        &self.active
244    }
245
246    pub fn inactive(&self) -> &AHashSet<Pubkey> {
247        &self.inactive
248    }
249
250    pub fn is_active(&self, feature_id: &Pubkey) -> bool {
251        self.active.contains_key(feature_id)
252    }
253
254    pub fn activated_slot(&self, feature_id: &Pubkey) -> Option<u64> {
255        self.active.get(feature_id).copied()
256    }
257
258    /// Activate a feature
259    pub fn activate(&mut self, feature_id: &Pubkey, slot: u64) {
260        self.inactive.remove(feature_id);
261        self.active.insert(*feature_id, slot);
262        self.snapshot = FeatureSnapshot::from(&self.active);
263    }
264
265    /// Deactivate a feature
266    pub fn deactivate(&mut self, feature_id: &Pubkey) {
267        self.active.remove(feature_id);
268        self.inactive.insert(*feature_id);
269        self.snapshot = FeatureSnapshot::from(&self.active);
270    }
271
272    /// List of enabled features that trigger full inflation
273    pub fn full_inflation_features_enabled(&self) -> AHashSet<Pubkey> {
274        let mut hash_set = FULL_INFLATION_FEATURE_PAIRS
275            .iter()
276            .filter_map(|pair| {
277                if self.is_active(&pair.vote_id) && self.is_active(&pair.enable_id) {
278                    Some(pair.enable_id)
279                } else {
280                    None
281                }
282            })
283            .collect::<AHashSet<_>>();
284
285        if self.is_active(&full_inflation::devnet_and_testnet::id()) {
286            hash_set.insert(full_inflation::devnet_and_testnet::id());
287        }
288        hash_set
289    }
290
291    /// All features enabled, useful for testing
292    pub fn all_enabled() -> Self {
293        let active = AHashMap::from_iter((*FEATURE_NAMES).keys().cloned().map(|key| (key, 0)));
294        let feature_snapshot = FeatureSnapshot::from(&active);
295        Self {
296            active,
297            inactive: AHashSet::new(),
298            snapshot: feature_snapshot,
299        }
300    }
301
302    pub fn new_warmup_cooldown_rate_epoch(&self, epoch_schedule: &EpochSchedule) -> Option<u64> {
303        self.activated_slot(&reduce_stake_warmup_cooldown::id())
304            .map(|slot| epoch_schedule.get_epoch(slot))
305    }
306
307    pub fn snapshot(&self) -> &FeatureSnapshot {
308        &self.snapshot
309    }
310
311    pub fn runtime_features(&self) -> SVMFeatureSet {
312        let snapshot = &self.snapshot;
313        SVMFeatureSet {
314            move_precompile_verification_to_svm: snapshot.move_precompile_verification_to_svm,
315            syscall_parameter_address_restrictions: snapshot.syscall_parameter_address_restrictions,
316            virtual_address_space_adjustments: snapshot.virtual_address_space_adjustments,
317            account_data_direct_mapping: snapshot.account_data_direct_mapping,
318            enable_bpf_loader_set_authority_checked_ix: snapshot
319                .enable_bpf_loader_set_authority_checked_ix,
320            deplete_cu_meter_on_vm_failure: snapshot.deplete_cu_meter_on_vm_failure,
321            abort_on_invalid_curve: snapshot.abort_on_invalid_curve,
322            blake3_syscall_enabled: snapshot.blake3_syscall_enabled,
323            curve25519_syscall_enabled: snapshot.curve25519_syscall_enabled,
324            disable_fees_sysvar: snapshot.disable_fees_sysvar,
325            enable_alt_bn128_compression_syscall: snapshot.enable_alt_bn128_compression_syscall,
326            enable_alt_bn128_syscall: snapshot.enable_alt_bn128_syscall,
327            enable_big_mod_exp_syscall: snapshot.enable_big_mod_exp_syscall,
328            enable_get_epoch_stake_syscall: snapshot.enable_get_epoch_stake_syscall,
329            enable_poseidon_syscall: snapshot.enable_poseidon_syscall,
330            disable_sbpf_v0_execution: snapshot.disable_sbpf_v0_execution,
331            reenable_sbpf_v0_execution: snapshot.reenable_sbpf_v0_execution,
332            enable_sbpf_v1_deployment_and_execution: snapshot
333                .enable_sbpf_v1_deployment_and_execution,
334            enable_sbpf_v2_deployment_and_execution: snapshot
335                .enable_sbpf_v2_deployment_and_execution,
336            enable_sbpf_v3_deployment_and_execution: snapshot
337                .enable_sbpf_v3_deployment_and_execution,
338            disable_sbpf_v0_v1_v2_deployment: snapshot.disable_sbpf_v0_v1_v2_deployment,
339            get_sysvar_syscall_enabled: snapshot.get_sysvar_syscall_enabled,
340            last_restart_slot_sysvar: snapshot.last_restart_slot_sysvar,
341            remaining_compute_units_syscall_enabled: snapshot
342                .remaining_compute_units_syscall_enabled,
343            remove_bpf_loader_incorrect_program_id: snapshot.remove_bpf_loader_incorrect_program_id,
344            move_stake_and_move_lamports_ixs: snapshot.move_stake_and_move_lamports_ixs,
345            deprecate_legacy_vote_ixs: snapshot.deprecate_legacy_vote_ixs,
346            simplify_alt_bn128_syscall_error_codes: snapshot.simplify_alt_bn128_syscall_error_codes,
347            fix_alt_bn128_multiplication_input_length: snapshot
348                .fix_alt_bn128_multiplication_input_length,
349            increase_tx_account_lock_limit: snapshot.increase_tx_account_lock_limit,
350            formalize_loaded_transaction_data_size: snapshot.formalize_loaded_transaction_data_size,
351            disable_zk_elgamal_proof_program: snapshot.disable_zk_elgamal_proof_program,
352            reenable_zk_elgamal_proof_program: snapshot.reenable_zk_elgamal_proof_program,
353            delay_commission_updates: snapshot.delay_commission_updates,
354            raise_cpi_nesting_limit_to_8: snapshot.raise_cpi_nesting_limit_to_8,
355            increase_cpi_account_info_limit: snapshot.increase_cpi_account_info_limit,
356            poseidon_enforce_padding: snapshot.poseidon_enforce_padding,
357            fix_alt_bn128_pairing_length_check: snapshot.fix_alt_bn128_pairing_length_check,
358            alt_bn128_little_endian: snapshot.alt_bn128_little_endian,
359            create_account_allow_prefund: snapshot.create_account_allow_prefund,
360            bls_pubkey_management_in_vote_account: snapshot.bls_pubkey_management_in_vote_account,
361            enable_alt_bn128_g2_syscalls: snapshot.enable_alt_bn128_g2_syscalls,
362            commission_rate_in_basis_points: snapshot.commission_rate_in_basis_points,
363            custom_commission_collector: snapshot.custom_commission_collector,
364            enable_bls12_381_syscall: snapshot.enable_bls12_381_syscall,
365            block_revenue_sharing: snapshot.block_revenue_sharing,
366            vote_account_initialize_v2: snapshot.vote_account_initialize_v2,
367            direct_account_pointers_in_program_input: snapshot
368                .direct_account_pointers_in_program_input,
369            loader_v3_minimum_extend_program_size: snapshot.loader_v3_minimum_extend_program_size,
370            enable_sha512_syscall: snapshot.enable_sha512_syscall,
371            relax_post_exec_min_balance_check: snapshot.relax_post_exec_min_balance_check,
372            define_ltds_fee_only_semantics: snapshot.define_ltds_fee_only_semantics,
373        }
374    }
375}
376
377pub mod deprecate_rewards_sysvar {
378    solana_pubkey::declare_id!("GaBtBJvmS4Arjj5W1NmFcyvPjsHN38UGYDq2MDwbs9Qu");
379}
380
381pub mod pico_inflation {
382    solana_pubkey::declare_id!("4RWNif6C2WCNiKVW7otP4G7dkmkHGyKQWRpuZ1pxKU5m");
383}
384
385pub mod full_inflation {
386    pub mod devnet_and_testnet {
387        solana_pubkey::declare_id!("DT4n6ABDqs6w4bnfwrXT9rsprcPf6cdDga1egctaPkLC");
388    }
389
390    pub mod mainnet {
391        pub mod certusone {
392            pub mod vote {
393                solana_pubkey::declare_id!("BzBBveUDymEYoYzcMWNQCx3cd4jQs7puaVFHLtsbB6fm");
394            }
395            pub mod enable {
396                solana_pubkey::declare_id!("7XRJcS5Ud5vxGB54JbK9N2vBZVwnwdBNeJW1ibRgD9gx");
397            }
398        }
399    }
400}
401
402pub mod secp256k1_program_enabled {
403    solana_pubkey::declare_id!("E3PHP7w8kB7np3CTQ1qQ2tW3KCtjRSXBQgW9vM2mWv2Y");
404}
405
406pub mod spl_token_v2_multisig_fix {
407    solana_pubkey::declare_id!("E5JiFDQCwyC6QfT9REFyMpfK2mHcmv1GUDySU1Ue7TYv");
408}
409
410pub mod no_overflow_rent_distribution {
411    solana_pubkey::declare_id!("4kpdyrcj5jS47CZb2oJGfVxjYbsMm2Kx97gFyZrxxwXz");
412}
413
414pub mod filter_stake_delegation_accounts {
415    solana_pubkey::declare_id!("GE7fRxmW46K6EmCD9AMZSbnaJ2e3LfqCZzdHi9hmYAgi");
416}
417
418pub mod require_custodian_for_locked_stake_authorize {
419    solana_pubkey::declare_id!("D4jsDcXaqdW8tDAWn8H4R25Cdns2YwLneujSL1zvjW6R");
420}
421
422pub mod spl_token_v2_self_transfer_fix {
423    solana_pubkey::declare_id!("BL99GYhdjjcv6ys22C9wPgn2aTVERDbPHHo4NbS3hgp7");
424}
425
426pub mod warp_timestamp_again {
427    solana_pubkey::declare_id!("GvDsGDkH5gyzwpDhxNixx8vtx1kwYHH13RiNAPw27zXb");
428}
429
430pub mod check_init_vote_data {
431    solana_pubkey::declare_id!("3ccR6QpxGYsAbWyfevEtBNGfWV4xBffxRj2tD6A9i39F");
432}
433
434pub mod secp256k1_recover_syscall_enabled {
435    solana_pubkey::declare_id!("6RvdSWHh8oh72Dp7wMTS2DBkf3fRPtChfNrAo3cZZoXJ");
436}
437
438pub mod system_transfer_zero_check {
439    solana_pubkey::declare_id!("BrTR9hzw4WBGFP65AJMbpAo64DcA3U6jdPSga9fMV5cS");
440}
441
442pub mod blake3_syscall_enabled {
443    solana_pubkey::declare_id!("HTW2pSyErTj4BV6KBM9NZ9VBUJVxt7sacNWcf76wtzb3");
444}
445
446pub mod dedupe_config_program_signers {
447    solana_pubkey::declare_id!("8kEuAshXLsgkUEdcFVLqrjCGGHVWFW99ZZpxvAzzMtBp");
448}
449
450pub mod verify_tx_signatures_len {
451    solana_pubkey::declare_id!("EVW9B5xD9FFK7vw1SBARwMA4s5eRo5eKJdKpsBikzKBz");
452}
453
454pub mod vote_stake_checked_instructions {
455    solana_pubkey::declare_id!("BcWknVcgvonN8sL4HE4XFuEVgfcee5MwxWPAgP6ZV89X");
456}
457
458pub mod rent_for_sysvars {
459    solana_pubkey::declare_id!("BKCPBQQBZqggVnFso5nQ8rQ4RwwogYwjuUt9biBjxwNF");
460}
461
462pub mod libsecp256k1_0_5_upgrade_enabled {
463    solana_pubkey::declare_id!("DhsYfRjxfnh2g7HKJYSzT79r74Afa1wbHkAgHndrA1oy");
464}
465
466pub mod tx_wide_compute_cap {
467    solana_pubkey::declare_id!("5ekBxc8itEnPv4NzGJtr8BVVQLNMQuLMNQQj7pHoLNZ9");
468}
469
470pub mod spl_token_v2_set_authority_fix {
471    solana_pubkey::declare_id!("FToKNBYyiF4ky9s8WsmLBXHCht17Ek7RXaLZGHzzQhJ1");
472}
473
474pub mod merge_nonce_error_into_system_error {
475    solana_pubkey::declare_id!("21AWDosvp3pBamFW91KB35pNoaoZVTM7ess8nr2nt53B");
476}
477
478pub mod disable_fees_sysvar {
479    solana_pubkey::declare_id!("JAN1trEUEtZjgXYzNBYHU9DYd7GnThhXfFP7SzPXkPsG");
480}
481
482pub mod stake_merge_with_unmatched_credits_observed {
483    solana_pubkey::declare_id!("meRgp4ArRPhD3KtCY9c5yAf2med7mBLsjKTPeVUHqBL");
484}
485
486pub mod zk_token_sdk_enabled {
487    solana_pubkey::declare_id!("zk1snxsc6Fh3wsGNbbHAJNHiJoYgF29mMnTSusGx5EJ");
488}
489
490pub mod curve25519_syscall_enabled {
491    solana_pubkey::declare_id!("7rcw5UtqgDTBBv2EcynNfYckgdAaH1MAsCjKgXMkN7Ri");
492}
493
494pub mod curve25519_restrict_msm_length {
495    solana_pubkey::declare_id!("eca6zf6JJRjQsYYPkBHF3N32MTzur4n2WL4QiiacPCL");
496}
497
498pub mod versioned_tx_message_enabled {
499    solana_pubkey::declare_id!("3KZZ6Ks1885aGBQ45fwRcPXVBCtzUvxhUTkwKMR41Tca");
500}
501
502pub mod libsecp256k1_fail_on_bad_count {
503    solana_pubkey::declare_id!("8aXvSuopd1PUj7UhehfXJRg6619RHp8ZvwTyyJHdUYsj");
504}
505
506pub mod libsecp256k1_fail_on_bad_count2 {
507    solana_pubkey::declare_id!("54KAoNiUERNoWWUhTWWwXgym94gzoXFVnHyQwPA18V9A");
508}
509
510pub mod instructions_sysvar_owned_by_sysvar {
511    solana_pubkey::declare_id!("H3kBSaKdeiUsyHmeHqjJYNc27jesXZ6zWj3zWkowQbkV");
512}
513
514pub mod stake_program_advance_activating_credits_observed {
515    solana_pubkey::declare_id!("SAdVFw3RZvzbo6DvySbSdBnHN4gkzSTH9dSxesyKKPj");
516}
517
518pub mod credits_auto_rewind {
519    solana_pubkey::declare_id!("BUS12ciZ5gCoFafUHWW8qaFMMtwFQGVxjsDheWLdqBE2");
520}
521
522pub mod demote_program_write_locks {
523    solana_pubkey::declare_id!("3E3jV7v9VcdJL8iYZUMax9DiDno8j7EWUVbhm9RtShj2");
524}
525
526pub mod ed25519_program_enabled {
527    solana_pubkey::declare_id!("6ppMXNYLhVd7GcsZ5uV11wQEW7spppiMVfqQv5SXhDpX");
528}
529
530pub mod return_data_syscall_enabled {
531    solana_pubkey::declare_id!("DwScAzPUjuv65TMbDnFY7AgwmotzWy3xpEJMXM3hZFaB");
532}
533
534pub mod reduce_required_deploy_balance {
535    solana_pubkey::declare_id!("EBeznQDjcPG8491sFsKZYBi5S5jTVXMpAKNDJMQPS2kq");
536}
537
538pub mod sol_log_data_syscall_enabled {
539    solana_pubkey::declare_id!("6uaHcKPGUy4J7emLBgUTeufhJdiwhngW6a1R9B7c2ob9");
540}
541
542pub mod stakes_remove_delegation_if_inactive {
543    solana_pubkey::declare_id!("HFpdDDNQjvcXnXKec697HDDsyk6tFoWS2o8fkxuhQZpL");
544}
545
546pub mod do_support_realloc {
547    solana_pubkey::declare_id!("75m6ysz33AfLA5DDEzWM1obBrnPQRSsdVQ2nRmc8Vuu1");
548}
549
550pub mod prevent_calling_precompiles_as_programs {
551    solana_pubkey::declare_id!("4ApgRX3ud6p7LNMJmsuaAcZY5HWctGPr5obAsjB3A54d");
552}
553
554pub mod optimize_epoch_boundary_updates {
555    solana_pubkey::declare_id!("265hPS8k8xJ37ot82KEgjRunsUp5w4n4Q4VwwiN9i9ps");
556}
557
558pub mod remove_native_loader {
559    solana_pubkey::declare_id!("HTTgmruMYRZEntyL3EdCDdnS6e4D5wRq1FA7kQsb66qq");
560}
561
562pub mod send_to_tpu_vote_port {
563    solana_pubkey::declare_id!("C5fh68nJ7uyKAuYZg2x9sEQ5YrVf3dkW6oojNBSc3Jvo");
564}
565
566pub mod requestable_heap_size {
567    solana_pubkey::declare_id!("CCu4boMmfLuqcmfTLPHQiUo22ZdUsXjgzPAURYaWt1Bw");
568}
569
570pub mod disable_fee_calculator {
571    solana_pubkey::declare_id!("2jXx2yDmGysmBKfKYNgLj2DQyAQv6mMk2BPh4eSbyB4H");
572}
573
574pub mod add_compute_budget_program {
575    solana_pubkey::declare_id!("4d5AKtxoh93Dwm1vHXUU3iRATuMndx1c431KgT2td52r");
576}
577
578pub mod nonce_must_be_writable {
579    solana_pubkey::declare_id!("BiCU7M5w8ZCMykVSyhZ7Q3m2SWoR2qrEQ86ERcDX77ME");
580}
581
582pub mod spl_token_v3_3_0_release {
583    solana_pubkey::declare_id!("Ftok2jhqAqxUWEiCVRrfRs9DPppWP8cgTB7NQNKL88mS");
584}
585
586pub mod leave_nonce_on_success {
587    solana_pubkey::declare_id!("E8MkiWZNNPGU6n55jkGzyj8ghUmjCHRmDFdYYFYHxWhQ");
588}
589
590pub mod reject_empty_instruction_without_program {
591    solana_pubkey::declare_id!("9kdtFSrXHQg3hKkbXkQ6trJ3Ja1xpJ22CTFSNAciEwmL");
592}
593
594pub mod fixed_memcpy_nonoverlapping_check {
595    solana_pubkey::declare_id!("36PRUK2Dz6HWYdG9SpjeAsF5F3KxnFCakA2BZMbtMhSb");
596}
597
598pub mod reject_non_rent_exempt_vote_withdraws {
599    solana_pubkey::declare_id!("7txXZZD6Um59YoLMF7XUNimbMjsqsWhc7g2EniiTrmp1");
600}
601
602pub mod evict_invalid_stakes_cache_entries {
603    solana_pubkey::declare_id!("EMX9Q7TVFAmQ9V1CggAkhMzhXSg8ECp7fHrWQX2G1chf");
604}
605
606pub mod allow_votes_to_directly_update_vote_state {
607    solana_pubkey::declare_id!("Ff8b1fBeB86q8cjq47ZhsQLgv5EkHu3G1C99zjUfAzrq");
608}
609
610pub mod max_tx_account_locks {
611    solana_pubkey::declare_id!("CBkDroRDqm8HwHe6ak9cguPjUomrASEkfmxEaZ5CNNxz");
612}
613
614pub mod require_rent_exempt_accounts {
615    solana_pubkey::declare_id!("BkFDxiJQWZXGTZaJQxH7wVEHkAmwCgSEVkrvswFfRJPD");
616}
617
618pub mod filter_votes_outside_slot_hashes {
619    solana_pubkey::declare_id!("3gtZPqvPpsbXZVCx6hceMfWxtsmrjMzmg8C7PLKSxS2d");
620}
621
622pub mod update_syscall_base_costs {
623    solana_pubkey::declare_id!("2h63t332mGCCsWK2nqqqHhN4U9ayyqhLVFvczznHDoTZ");
624}
625
626pub mod stake_deactivate_delinquent_instruction {
627    solana_pubkey::declare_id!("437r62HoAdUb63amq3D7ENnBLDhHT2xY8eFkLJYVKK4x");
628}
629
630pub mod vote_withdraw_authority_may_change_authorized_voter {
631    solana_pubkey::declare_id!("AVZS3ZsN4gi6Rkx2QUibYuSJG3S6QHib7xCYhG6vGJxU");
632}
633
634pub mod spl_associated_token_account_v1_0_4 {
635    solana_pubkey::declare_id!("FaTa4SpiaSNH44PGC4z8bnGVTkSRYaWvrBs3KTu8XQQq");
636}
637
638pub mod reject_vote_account_close_unless_zero_credit_epoch {
639    solana_pubkey::declare_id!("ALBk3EWdeAg2WAGf6GPDUf1nynyNqCdEVmgouG7rpuCj");
640}
641
642pub mod add_get_processed_sibling_instruction_syscall {
643    solana_pubkey::declare_id!("CFK1hRCNy8JJuAAY8Pb2GjLFNdCThS2qwZNe3izzBMgn");
644}
645
646pub mod bank_transaction_count_fix {
647    solana_pubkey::declare_id!("Vo5siZ442SaZBKPXNocthiXysNviW4UYPwRFggmbgAp");
648}
649
650pub mod disable_bpf_deprecated_load_instructions {
651    solana_pubkey::declare_id!("3XgNukcZWf9o3HdA3fpJbm94XFc4qpvTXc8h1wxYwiPi");
652}
653
654pub mod disable_bpf_unresolved_symbols_at_runtime {
655    solana_pubkey::declare_id!("4yuaYAj2jGMGTh1sSmi4G2eFscsDq8qjugJXZoBN6YEa");
656}
657
658pub mod record_instruction_in_transaction_context_push {
659    solana_pubkey::declare_id!("3aJdcZqxoLpSBxgeYGjPwaYS1zzcByxUDqJkbzWAH1Zb");
660}
661
662pub mod syscall_saturated_math {
663    solana_pubkey::declare_id!("HyrbKftCdJ5CrUfEti6x26Cj7rZLNe32weugk7tLcWb8");
664}
665
666pub mod check_physical_overlapping {
667    solana_pubkey::declare_id!("nWBqjr3gpETbiaVj3CBJ3HFC5TMdnJDGt21hnvSTvVZ");
668}
669
670pub mod limit_secp256k1_recovery_id {
671    solana_pubkey::declare_id!("7g9EUwj4j7CS21Yx1wvgWLjSZeh5aPq8x9kpoPwXM8n8");
672}
673
674pub mod disable_deprecated_loader {
675    solana_pubkey::declare_id!("GTUMCZ8LTNxVfxdrw7ZsDFTxXb7TutYkzJnFwinpE6dg");
676}
677
678pub mod check_slice_translation_size {
679    solana_pubkey::declare_id!("GmC19j9qLn2RFk5NduX6QXaDhVpGncVVBzyM8e9WMz2F");
680}
681
682pub mod stake_split_uses_rent_sysvar {
683    solana_pubkey::declare_id!("FQnc7U4koHqWgRvFaBJjZnV8VPg6L6wWK33yJeDp4yvV");
684}
685
686pub mod add_get_minimum_delegation_instruction_to_stake_program {
687    solana_pubkey::declare_id!("St8k9dVXP97xT6faW24YmRSYConLbhsMJA4TJTBLmMT");
688}
689
690pub mod error_on_syscall_bpf_function_hash_collisions {
691    solana_pubkey::declare_id!("8199Q2gMD2kwgfopK5qqVWuDbegLgpuFUFHCcUJQDN8b");
692}
693
694pub mod reject_callx_r10 {
695    solana_pubkey::declare_id!("3NKRSwpySNwD3TvP5pHnRmkAQRsdkXWRr1WaQh8p4PWX");
696}
697
698pub mod drop_redundant_turbine_path {
699    solana_pubkey::declare_id!("4Di3y24QFLt5QEUPZtbnjyfQKfm6ZMTfa6Dw1psfoMKU");
700}
701
702pub mod executables_incur_cpi_data_cost {
703    solana_pubkey::declare_id!("7GUcYgq4tVtaqNCKT3dho9r4665Qp5TxCZ27Qgjx3829");
704}
705
706pub mod fix_recent_blockhashes {
707    solana_pubkey::declare_id!("6iyggb5MTcsvdcugX7bEKbHV8c6jdLbpHwkncrgLMhfo");
708}
709
710pub mod update_rewards_from_cached_accounts {
711    solana_pubkey::declare_id!("28s7i3htzhahXQKqmS2ExzbEoUypg9krwvtK2M9UWXh9");
712}
713
714pub mod partitioned_epoch_rewards_superfeature {
715    solana_pubkey::declare_id!("PERzQrt5gBD1XEe2c9XdFWqwgHY3mr7cYWbm5V772V8");
716}
717
718pub mod spl_token_v3_4_0 {
719    solana_pubkey::declare_id!("Ftok4njE8b7tDffYkC5bAbCaQv5sL6jispYrprzatUwN");
720}
721
722pub mod spl_associated_token_account_v1_1_0 {
723    solana_pubkey::declare_id!("FaTa17gVKoqbh38HcfiQonPsAaQViyDCCSg71AubYZw8");
724}
725
726pub mod default_units_per_instruction {
727    solana_pubkey::declare_id!("J2QdYx8crLbTVK8nur1jeLsmc3krDbfjoxoea2V1Uy5Q");
728}
729
730pub mod stake_allow_zero_undelegated_amount {
731    solana_pubkey::declare_id!("sTKz343FM8mqtyGvYWvbLpTThw3ixRM4Xk8QvZ985mw");
732}
733
734pub mod require_static_program_ids_in_transaction {
735    solana_pubkey::declare_id!("8FdwgyHFEjhAdjWfV2vfqk7wA1g9X3fQpKH7SBpEv3kC");
736}
737
738pub mod stake_raise_minimum_delegation_to_1_sol {
739    // This is a feature-proposal *feature id*.  The feature keypair address is `GQXzC7YiSNkje6FFUk6sc2p53XRvKoaZ9VMktYzUMnpL`.
740    solana_pubkey::declare_id!("9onWzzvCzNC2jfhxxeqRgs5q7nFAAKpCUvkj6T6GJK9i");
741}
742
743pub mod add_set_compute_unit_price_ix {
744    solana_pubkey::declare_id!("98std1NSHqXi9WYvFShfVepRdCoq1qvsp8fsR2XZtG8g");
745}
746
747pub mod disable_deploy_of_alloc_free_syscall {
748    solana_pubkey::declare_id!("79HWsX9rpnnJBPcdNURVqygpMAfxdrAirzAGAVmf92im");
749}
750
751pub mod include_account_index_in_rent_error {
752    solana_pubkey::declare_id!("2R72wpcQ7qV7aTJWUumdn8u5wmmTyXbK7qzEy7YSAgyY");
753}
754
755pub mod add_shred_type_to_shred_seed {
756    solana_pubkey::declare_id!("Ds87KVeqhbv7Jw8W6avsS1mqz3Mw5J3pRTpPoDQ2QdiJ");
757}
758
759pub mod warp_timestamp_with_a_vengeance {
760    solana_pubkey::declare_id!("3BX6SBeEBibHaVQXywdkcgyUk6evfYZkHdztXiDtEpFS");
761}
762
763pub mod separate_nonce_from_blockhash {
764    solana_pubkey::declare_id!("Gea3ZkK2N4pHuVZVxWcnAtS6UEDdyumdYt4pFcKjA3ar");
765}
766
767pub mod enable_durable_nonce {
768    solana_pubkey::declare_id!("4EJQtF2pkRyawwcTVfQutzq4Sa5hRhibF6QAK1QXhtEX");
769}
770
771pub mod vote_state_update_credit_per_dequeue {
772    solana_pubkey::declare_id!("CveezY6FDLVBToHDcvJRmtMouqzsmj4UXYh5ths5G5Uv");
773}
774
775pub mod quick_bail_on_panic {
776    solana_pubkey::declare_id!("DpJREPyuMZ5nDfU6H3WTqSqUFSXAfw8u7xqmWtEwJDcP");
777}
778
779pub mod nonce_must_be_authorized {
780    solana_pubkey::declare_id!("HxrEu1gXuH7iD3Puua1ohd5n4iUKJyFNtNxk9DVJkvgr");
781}
782
783pub mod nonce_must_be_advanceable {
784    solana_pubkey::declare_id!("3u3Er5Vc2jVcwz4xr2GJeSAXT3fAj6ADHZ4BJMZiScFd");
785}
786
787pub mod vote_authorize_with_seed {
788    solana_pubkey::declare_id!("6tRxEYKuy2L5nnv5bgn7iT28MxUbYxp5h7F3Ncf1exrT");
789}
790
791pub mod preserve_rent_epoch_for_rent_exempt_accounts {
792    solana_pubkey::declare_id!("HH3MUYReL2BvqqA3oEcAa7txju5GY6G4nxJ51zvsEjEZ");
793}
794
795pub mod enable_bpf_loader_extend_program_ix {
796    solana_pubkey::declare_id!("8Zs9W7D9MpSEtUWSQdGniZk2cNmV22y6FLJwCx53asme");
797}
798
799pub mod enable_early_verification_of_account_modifications {
800    solana_pubkey::declare_id!("7Vced912WrRnfjaiKRiNBcbuFw7RrnLv3E3z95Y4GTNc");
801}
802
803pub mod skip_rent_rewrites {
804    solana_pubkey::declare_id!("CGB2jM8pwZkeeiXQ66kBMyBR6Np61mggL7XUsmLjVcrw");
805}
806
807pub mod prevent_crediting_accounts_that_end_rent_paying {
808    solana_pubkey::declare_id!("812kqX67odAp5NFwM8D2N24cku7WTm9CHUTFUXaDkWPn");
809}
810
811pub mod cap_bpf_program_instruction_accounts {
812    solana_pubkey::declare_id!("9k5ijzTbYPtjzu8wj2ErH9v45xecHzQ1x4PMYMMxFgdM");
813}
814
815pub mod loosen_cpi_size_restriction {
816    solana_pubkey::declare_id!("GDH5TVdbTPUpRnXaRyQqiKUa7uZAbZ28Q2N9bhbKoMLm");
817}
818
819pub mod use_default_units_in_fee_calculation {
820    solana_pubkey::declare_id!("8sKQrMQoUHtQSUP83SPG4ta2JDjSAiWs7t5aJ9uEd6To");
821}
822
823pub mod compact_vote_state_updates {
824    solana_pubkey::declare_id!("86HpNqzutEZwLcPxS6EHDcMNYWk6ikhteg9un7Y2PBKE");
825}
826
827pub mod incremental_snapshot_only_incremental_hash_calculation {
828    solana_pubkey::declare_id!("25vqsfjk7Nv1prsQJmA4Xu1bN61s8LXCBGUPp8Rfy1UF");
829}
830
831pub mod disable_cpi_setting_executable_and_rent_epoch {
832    solana_pubkey::declare_id!("B9cdB55u4jQsDNsdTK525yE9dmSc5Ga7YBaBrDFvEhM9");
833}
834
835pub mod on_load_preserve_rent_epoch_for_rent_exempt_accounts {
836    solana_pubkey::declare_id!("CpkdQmspsaZZ8FVAouQTtTWZkc8eeQ7V3uj7dWz543rZ");
837}
838
839pub mod account_hash_ignore_slot {
840    solana_pubkey::declare_id!("SVn36yVApPLYsa8koK3qUcy14zXDnqkNYWyUh1f4oK1");
841}
842
843pub mod set_exempt_rent_epoch_max {
844    solana_pubkey::declare_id!("5wAGiy15X1Jb2hkHnPDCM8oB9V42VNA9ftNVFK84dEgv");
845}
846
847pub mod relax_authority_signer_check_for_lookup_table_creation {
848    solana_pubkey::declare_id!("FKAcEvNgSY79RpqsPNUV5gDyumopH4cEHqUxyfm8b8Ap");
849}
850
851pub mod stop_sibling_instruction_search_at_parent {
852    solana_pubkey::declare_id!("EYVpEP7uzH1CoXzbD6PubGhYmnxRXPeq3PPsm1ba3gpo");
853}
854
855pub mod vote_state_update_root_fix {
856    solana_pubkey::declare_id!("G74BkWBzmsByZ1kxHy44H3wjwp5hp7JbrGRuDpco22tY");
857}
858
859pub mod cap_accounts_data_allocations_per_transaction {
860    solana_pubkey::declare_id!("9gxu85LYRAcZL38We8MYJ4A9AwgBBPtVBAqebMcT1241");
861}
862
863pub mod epoch_accounts_hash {
864    solana_pubkey::declare_id!("5GpmAKxaGsWWbPp4bNXFLJxZVvG92ctxf7jQnzTQjF3n");
865}
866
867pub mod remove_deprecated_request_unit_ix {
868    solana_pubkey::declare_id!("EfhYd3SafzGT472tYQDUc4dPd2xdEfKs5fwkowUgVt4W");
869}
870
871pub mod disable_rehash_for_rent_epoch {
872    solana_pubkey::declare_id!("DTVTkmw3JSofd8CJVJte8PXEbxNQ2yZijvVr3pe2APPj");
873}
874
875pub mod increase_tx_account_lock_limit {
876    solana_pubkey::declare_id!("9LZdXeKGeBV6hRLdxS1rHbHoEUsKqesCC2ZAPTPKJAbK");
877}
878
879pub mod limit_max_instruction_trace_length {
880    solana_pubkey::declare_id!("GQALDaC48fEhZGWRj9iL5Q889emJKcj3aCvHF7VCbbF4");
881}
882
883pub mod check_syscall_outputs_do_not_overlap {
884    solana_pubkey::declare_id!("3uRVPBpyEJRo1emLCrq38eLRFGcu6uKSpUXqGvU8T7SZ");
885}
886
887pub mod enable_bpf_loader_set_authority_checked_ix {
888    solana_pubkey::declare_id!("5x3825XS7M2A3Ekbn5VGGkvFoAg5qrRWkTrY4bARP1GL");
889}
890
891pub mod enable_alt_bn128_syscall {
892    solana_pubkey::declare_id!("A16q37opZdQMCbe5qJ6xpBB9usykfv8jZaMkxvZQi4GJ");
893}
894
895pub mod simplify_alt_bn128_syscall_error_codes {
896    solana_pubkey::declare_id!("JDn5q3GBeqzvUa7z67BbmVHVdE3EbUAjvFep3weR3jxX");
897}
898
899pub mod enable_alt_bn128_compression_syscall {
900    solana_pubkey::declare_id!("EJJewYSddEEtSZHiqugnvhQHiWyZKjkFDQASd7oKSagn");
901}
902
903pub mod fix_alt_bn128_multiplication_input_length {
904    solana_pubkey::declare_id!("bn2puAyxUx6JUabAxYdKdJ5QHbNNmKw8dCGuGCyRrFN");
905}
906
907pub mod enable_program_redeployment_cooldown {
908    solana_pubkey::declare_id!("J4HFT8usBxpcF63y46t1upYobJgChmKyZPm5uTBRg25Z");
909}
910
911pub mod commission_updates_only_allowed_in_first_half_of_epoch {
912    solana_pubkey::declare_id!("noRuG2kzACwgaY7TVmLRnUNPLKNVQE1fb7X55YWBehp");
913}
914
915pub mod enable_turbine_fanout_experiments {
916    solana_pubkey::declare_id!("D31EFnLgdiysi84Woo3of4JMu7VmasUS3Z7j9HYXCeLY");
917}
918
919pub mod disable_turbine_fanout_experiments {
920    solana_pubkey::declare_id!("turbnbNRp22nwZCmgVVXFSshz7H7V23zMzQgA46YpmQ");
921}
922
923pub mod move_serialized_len_ptr_in_cpi {
924    solana_pubkey::declare_id!("74CoWuBmt3rUVUrCb2JiSTvh6nXyBWUsK4SaMj3CtE3T");
925}
926
927pub mod update_hashes_per_tick {
928    solana_pubkey::declare_id!("3uFHb9oKdGfgZGJK9EHaAXN4USvnQtAFC13Fh5gGFS5B");
929}
930
931pub mod enable_big_mod_exp_syscall {
932    solana_pubkey::declare_id!("EBq48m8irRKuE7ZnMTLvLg2UuGSqhe8s8oMqnmja1fJw");
933}
934
935pub mod disable_builtin_loader_ownership_chains {
936    solana_pubkey::declare_id!("4UDcAfQ6EcA6bdcadkeHpkarkhZGJ7Bpq7wTAiRMjkoi");
937}
938
939pub mod cap_transaction_accounts_data_size {
940    solana_pubkey::declare_id!("DdLwVYuvDz26JohmgSbA7mjpJFgX5zP2dkp8qsF2C33V");
941}
942
943pub mod remove_congestion_multiplier_from_fee_calculation {
944    solana_pubkey::declare_id!("A8xyMHZovGXFkorFqEmVH2PKGLiBip5JD7jt4zsUWo4H");
945}
946
947pub mod enable_request_heap_frame_ix {
948    solana_pubkey::declare_id!("Hr1nUA9b7NJ6eChS26o7Vi8gYYDDwWD3YeBfzJkTbU86");
949}
950
951pub mod prevent_rent_paying_rent_recipients {
952    solana_pubkey::declare_id!("Fab5oP3DmsLYCiQZXdjyqT3ukFFPrsmqhXU4WU1AWVVF");
953}
954
955pub mod delay_visibility_of_program_deployment {
956    solana_pubkey::declare_id!("GmuBvtFb2aHfSfMXpuFeWZGHyDeCLPS79s48fmCWCfM5");
957}
958
959pub mod apply_cost_tracker_during_replay {
960    solana_pubkey::declare_id!("2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj");
961}
962
963pub mod syscall_parameter_address_restrictions {
964    solana_pubkey::declare_id!("EDGMC5kxFxGk4ixsNkGt8bW7QL5hDMXnbwaZvYMwNfzF");
965}
966
967pub mod virtual_address_space_adjustments {
968    solana_pubkey::declare_id!("7VgiehxNxu53KdxgLspGQY8myE6f7UokaWa4jsGcaSz");
969}
970
971pub mod account_data_direct_mapping {
972    solana_pubkey::declare_id!("CR3dVN2Yoo95Y96kLSTaziWDAQT2MNEpiWh5cqVq2pNE");
973}
974
975pub mod add_set_tx_loaded_accounts_data_size_instruction {
976    solana_pubkey::declare_id!("G6vbf1UBok8MWb8m25ex86aoQHeKTzDKzuZADHkShqm6");
977}
978
979pub mod switch_to_new_elf_parser {
980    solana_pubkey::declare_id!("Cdkc8PPTeTNUPoZEfCY5AyetUrEdkZtNPMgz58nqyaHD");
981}
982
983pub mod round_up_heap_size {
984    solana_pubkey::declare_id!("CE2et8pqgyQMP2mQRg3CgvX8nJBKUArMu3wfiQiQKY1y");
985}
986
987pub mod remove_bpf_loader_incorrect_program_id {
988    solana_pubkey::declare_id!("2HmTkCj9tXuPE4ueHzdD7jPeMf9JGCoZh5AsyoATiWEe");
989}
990
991pub mod include_loaded_accounts_data_size_in_fee_calculation {
992    solana_pubkey::declare_id!("EaQpmC6GtRssaZ3PCUM5YksGqUdMLeZ46BQXYtHYakDS");
993}
994
995pub mod native_programs_consume_cu {
996    solana_pubkey::declare_id!("8pgXCMNXC8qyEFypuwpXyRxLXZdpM4Qo72gJ6k87A6wL");
997}
998
999pub mod simplify_writable_program_account_check {
1000    solana_pubkey::declare_id!("5ZCcFAzJ1zsFKe1KSZa9K92jhx7gkcKj97ci2DBo1vwj");
1001}
1002
1003pub mod stop_truncating_strings_in_syscalls {
1004    solana_pubkey::declare_id!("16FMCmgLzCNNz6eTwGanbyN2ZxvTBSLuQ6DZhgeMshg");
1005}
1006
1007pub mod clean_up_delegation_errors {
1008    solana_pubkey::declare_id!("Bj2jmUsM2iRhfdLLDSTkhM5UQRQvQHm57HSmPibPtEyu");
1009}
1010
1011pub mod vote_state_add_vote_latency {
1012    solana_pubkey::declare_id!("7axKe5BTYBDD87ftzWbk5DfzWMGyRvqmWTduuo22Yaqy");
1013}
1014
1015pub mod checked_arithmetic_in_fee_validation {
1016    solana_pubkey::declare_id!("5Pecy6ie6XGm22pc9d4P9W5c31BugcFBuy6hsP2zkETv");
1017}
1018
1019pub mod last_restart_slot_sysvar {
1020    solana_pubkey::declare_id!("HooKD5NC9QNxk25QuzCssB8ecrEzGt6eXEPBUxWp1LaR");
1021}
1022
1023pub mod reduce_stake_warmup_cooldown {
1024    solana_pubkey::declare_id!("GwtDQBghCTBgmX2cpEGNPxTEBUTQRaDMGTr5qychdGMj");
1025}
1026
1027pub mod revise_turbine_epoch_stakes {
1028    solana_pubkey::declare_id!("BTWmtJC8U5ZLMbBUUA1k6As62sYjPEjAiNAT55xYGdJU");
1029}
1030
1031pub mod enable_poseidon_syscall {
1032    solana_pubkey::declare_id!("FL9RsQA6TVUoh5xJQ9d936RHSebA1NLQqe3Zv9sXZRpr");
1033}
1034
1035pub mod timely_vote_credits {
1036    solana_pubkey::declare_id!("tvcF6b1TRz353zKuhBjinZkKzjmihXmBAHJdjNYw1sQ");
1037}
1038
1039pub mod remaining_compute_units_syscall_enabled {
1040    solana_pubkey::declare_id!("5TuppMutoyzhUSfuYdhgzD47F92GL1g89KpCZQKqedxP");
1041}
1042
1043pub mod enable_loader_v4 {
1044    solana_pubkey::declare_id!("LoaderV4WasAbandoned11111111111111111111111");
1045}
1046
1047pub mod require_rent_exempt_split_destination {
1048    solana_pubkey::declare_id!("D2aip4BBr8NPWtU9vLrwrBvbuaQ8w1zV38zFLxx4pfBV");
1049}
1050
1051pub mod better_error_codes_for_tx_lamport_check {
1052    solana_pubkey::declare_id!("Ffswd3egL3tccB6Rv3XY6oqfdzn913vUcjCSnpvCKpfx");
1053}
1054
1055pub mod update_hashes_per_tick2 {
1056    solana_pubkey::declare_id!("EWme9uFqfy1ikK1jhJs8fM5hxWnK336QJpbscNtizkTU");
1057}
1058
1059pub mod update_hashes_per_tick3 {
1060    solana_pubkey::declare_id!("8C8MCtsab5SsfammbzvYz65HHauuUYdbY2DZ4sznH6h5");
1061}
1062
1063pub mod update_hashes_per_tick4 {
1064    solana_pubkey::declare_id!("8We4E7DPwF2WfAN8tRTtWQNhi98B99Qpuj7JoZ3Aikgg");
1065}
1066
1067pub mod update_hashes_per_tick5 {
1068    solana_pubkey::declare_id!("BsKLKAn1WM4HVhPRDsjosmqSg2J8Tq5xP2s2daDS6Ni4");
1069}
1070
1071pub mod update_hashes_per_tick6 {
1072    solana_pubkey::declare_id!("FKu1qYwLQSiehz644H6Si65U5ZQ2cp9GxsyFUfYcuADv");
1073}
1074
1075pub mod validate_fee_collector_account {
1076    solana_pubkey::declare_id!("prpFrMtgNmzaNzkPJg9o753fVvbHKqNrNTm76foJ2wm");
1077}
1078
1079pub mod disable_rent_fees_collection {
1080    solana_pubkey::declare_id!("CJzY83ggJHqPGDq8VisV3U91jDJLuEaALZooBrXtnnLU");
1081}
1082
1083pub mod enable_zk_transfer_with_fee {
1084    solana_pubkey::declare_id!("zkNLP7EQALfC1TYeB3biDU7akDckj8iPkvh9y2Mt2K3");
1085}
1086
1087pub mod drop_legacy_shreds {
1088    solana_pubkey::declare_id!("GV49KKQdBNaiv2pgqhS2Dy3GWYJGXMTVYbYkdk91orRy");
1089}
1090
1091pub mod allow_commission_decrease_at_any_time {
1092    solana_pubkey::declare_id!("decoMktMcnmiq6t3u7g5BfgcQu91nKZr6RvMYf9z1Jb");
1093}
1094
1095pub mod add_new_reserved_account_keys {
1096    solana_pubkey::declare_id!("8U4skmMVnF6k2kMvrWbQuRUT3qQSiTYpSjqmhmgfthZu");
1097}
1098
1099pub mod consume_blockstore_duplicate_proofs {
1100    solana_pubkey::declare_id!("6YsBCejwK96GZCkJ6mkZ4b68oP63z2PLoQmWjC7ggTqZ");
1101}
1102
1103pub mod index_erasure_conflict_duplicate_proofs {
1104    solana_pubkey::declare_id!("dupPajaLy2SSn8ko42aZz4mHANDNrLe8Nw8VQgFecLa");
1105}
1106
1107pub mod merkle_conflict_duplicate_proofs {
1108    solana_pubkey::declare_id!("mrkPjRg79B2oK2ZLgd7S3AfEJaX9B6gAF3H9aEykRUS");
1109}
1110
1111pub mod disable_bpf_loader_instructions {
1112    solana_pubkey::declare_id!("7WeS1vfPRgeeoXArLh7879YcB9mgE9ktjPDtajXeWfXn");
1113}
1114
1115pub mod enable_zk_proof_from_account {
1116    solana_pubkey::declare_id!("zkiTNuzBKxrCLMKehzuQeKZyLtX2yvFcEKMML8nExU8");
1117}
1118
1119pub mod cost_model_requested_write_lock_cost {
1120    solana_pubkey::declare_id!("wLckV1a64ngtcKPRGU4S4grVTestXjmNjxBjaKZrAcn");
1121}
1122
1123pub mod enable_gossip_duplicate_proof_ingestion {
1124    solana_pubkey::declare_id!("FNKCMBzYUdjhHyPdsKG2LSmdzH8TCHXn3ytj8RNBS4nG");
1125}
1126
1127pub mod chained_merkle_conflict_duplicate_proofs {
1128    solana_pubkey::declare_id!("chaie9S2zVfuxJKNRGkyTDokLwWxx6kD2ZLsqQHaDD8");
1129}
1130
1131pub mod enable_chained_merkle_shreds {
1132    solana_pubkey::declare_id!("7uZBkJXJ1HkuP6R3MJfZs7mLwymBcDbKdqbF51ZWLier");
1133}
1134
1135pub mod remove_rounding_in_fee_calculation {
1136    solana_pubkey::declare_id!("BtVN7YjDzNE6Dk7kTT7YTDgMNUZTNgiSJgsdzAeTg2jF");
1137}
1138
1139pub mod enable_tower_sync_ix {
1140    solana_pubkey::declare_id!("tSynMCspg4xFiCj1v3TDb4c7crMR5tSBhLz4sF7rrNA");
1141}
1142
1143pub mod deprecate_unused_legacy_vote_plumbing {
1144    solana_pubkey::declare_id!("6Uf8S75PVh91MYgPQSHnjRAPQq6an5BDv9vomrCwDqLe");
1145}
1146
1147pub mod reward_full_priority_fee {
1148    solana_pubkey::declare_id!("3opE3EzAKnUftUDURkzMgwpNgimBAypW1mNDYH4x4Zg7");
1149}
1150
1151pub mod get_sysvar_syscall_enabled {
1152    solana_pubkey::declare_id!("CLCoTADvV64PSrnR6QXty6Fwrt9Xc6EdxSJE4wLRePjq");
1153}
1154
1155pub mod abort_on_invalid_curve {
1156    solana_pubkey::declare_id!("FuS3FPfJDKSNot99ECLXtp3rueq36hMNStJkPJwWodLh");
1157}
1158
1159pub mod migrate_feature_gate_program_to_core_bpf {
1160    solana_pubkey::declare_id!("4eohviozzEeivk1y9UbrnekbAFMDQyJz5JjA9Y6gyvky");
1161}
1162
1163pub mod vote_only_full_fec_sets {
1164    solana_pubkey::declare_id!("ffecLRhhakKSGhMuc6Fz2Lnfq4uT9q3iu9ZsNaPLxPc");
1165}
1166
1167pub mod migrate_config_program_to_core_bpf {
1168    solana_pubkey::declare_id!("2Fr57nzzkLYXW695UdDxDeR5fhnZWSttZeZYemrnpGFV");
1169}
1170
1171pub mod enable_get_epoch_stake_syscall {
1172    solana_pubkey::declare_id!("FKe75t4LXxGaQnVHdUKM6DSFifVVraGZ8LyNo7oPwy1Z");
1173}
1174
1175pub mod migrate_address_lookup_table_program_to_core_bpf {
1176    solana_pubkey::declare_id!("C97eKZygrkU4JxJsZdjgbUY7iQR7rKTr4NyDWo2E5pRm");
1177}
1178
1179pub mod zk_elgamal_proof_program_enabled {
1180    solana_pubkey::declare_id!("zkhiy5oLowR7HY4zogXjCjeMXyruLqBwSWH21qcFtnv");
1181}
1182
1183pub mod verify_retransmitter_signature {
1184    solana_pubkey::declare_id!("51VCKU5eV6mcTc9q9ArfWELU2CqDoi13hdAjr6fHMdtv");
1185}
1186
1187pub mod move_stake_and_move_lamports_ixs {
1188    solana_pubkey::declare_id!("7bTK6Jis8Xpfrs8ZoUfiMDPazTcdPcTWheZFJTA5Z6X4");
1189}
1190
1191pub mod ed25519_precompile_verify_strict {
1192    solana_pubkey::declare_id!("ed9tNscbWLYBooxWA7FE2B5KHWs8A6sxfY8EzezEcoo");
1193}
1194
1195pub mod vote_only_retransmitter_signed_fec_sets {
1196    solana_pubkey::declare_id!("RfEcA95xnhuwooVAhUUksEJLZBF7xKCLuqrJoqk4Zph");
1197}
1198
1199pub mod move_precompile_verification_to_svm {
1200    solana_pubkey::declare_id!("9ypxGLzkMxi89eDerRKXWDXe44UY2z4hBig4mDhNq5Dp");
1201}
1202
1203pub mod enable_transaction_loading_failure_fees {
1204    solana_pubkey::declare_id!("PaymEPK2oqwT9TXAVfadjztH2H6KfLEB9Hhd5Q5frvP");
1205}
1206
1207pub mod enable_turbine_extended_fanout_experiments {
1208    solana_pubkey::declare_id!("turbRpTzBzDU6PJmWvRTbcJXXGxUs19CvQamUrRD9bN");
1209}
1210
1211pub mod deprecate_legacy_vote_ixs {
1212    solana_pubkey::declare_id!("depVvnQ2UysGrhwdiwU42tCadZL8GcBb1i2GYhMopQv");
1213}
1214
1215pub mod disable_sbpf_v0_execution {
1216    solana_pubkey::declare_id!("TestFeature11111111111111111111111111111111");
1217}
1218
1219pub mod reenable_sbpf_v0_execution {
1220    solana_pubkey::declare_id!("TestFeature21111111111111111111111111111111");
1221}
1222
1223pub mod enable_sbpf_v1_deployment_and_execution {
1224    solana_pubkey::declare_id!("JE86WkYvTrzW8HgNmrHY7dFYpCmSptUpKupbo2AdQ9cG");
1225}
1226
1227pub mod enable_sbpf_v2_deployment_and_execution {
1228    solana_pubkey::declare_id!("F6UVKh1ujTEFK3en2SyAL3cdVnqko1FVEXWhmdLRu6WP");
1229}
1230
1231pub mod enable_sbpf_v3_deployment_and_execution {
1232    solana_pubkey::declare_id!("5cC3foj77CWun58pC51ebHFUWavHWKarWyR5UUik7dnC");
1233}
1234
1235pub mod disable_sbpf_v0_v1_v2_deployment {
1236    solana_pubkey::declare_id!("B8JJXCy5amZyWG9r7EnUYLwzXSXTxG7GZ1qZ1qggo83g");
1237}
1238
1239pub mod remove_accounts_executable_flag_checks {
1240    solana_pubkey::declare_id!("FXs1zh47QbNnhXcnB6YiAQoJ4sGB91tKF3UFHLcKT7PM");
1241}
1242
1243pub mod disable_account_loader_special_case {
1244    solana_pubkey::declare_id!("EQUMpNFr7Nacb1sva56xn1aLfBxppEoSBH8RRVdkcD1x");
1245}
1246
1247pub mod enable_secp256r1_precompile {
1248    solana_pubkey::declare_id!("srremy31J5Y25FrAApwVb9kZcfXbusYMMsvTK9aWv5q");
1249}
1250
1251pub mod accounts_lt_hash {
1252    solana_pubkey::declare_id!("LTHasHQX6661DaDD4S6A2TFi6QBuiwXKv66fB1obfHq");
1253}
1254
1255pub mod snapshots_lt_hash {
1256    solana_pubkey::declare_id!("LTsNAP8h1voEVVToMNBNqoiNQex4aqfUrbFhRH3mSQ2");
1257}
1258
1259pub mod remove_accounts_delta_hash {
1260    solana_pubkey::declare_id!("LTdLt9Ycbyoipz5fLysCi1NnDnASsZfmJLJXts5ZxZz");
1261}
1262
1263pub mod migrate_stake_program_to_core_bpf {
1264    solana_pubkey::declare_id!("6M4oQ6eXneVhtLoiAr4yRYQY43eVLjrKbiDZDJc892yk");
1265}
1266
1267pub mod deplete_cu_meter_on_vm_failure {
1268    solana_pubkey::declare_id!("B7H2caeia4ZFcpE3QcgMqbiWiBtWrdBRBSJ1DY6Ktxbq");
1269}
1270
1271pub mod reserve_minimal_cus_for_builtin_instructions {
1272    solana_pubkey::declare_id!("C9oAhLxDBm3ssWtJx1yBGzPY55r2rArHmN1pbQn6HogH");
1273}
1274
1275pub mod raise_block_limits_to_50m {
1276    solana_pubkey::declare_id!("5oMCU3JPaFLr8Zr4ct7yFA7jdk6Mw1RmB8K4u9ZbS42z");
1277}
1278
1279pub mod drop_unchained_merkle_shreds {
1280    solana_pubkey::declare_id!("5KLGJSASDVxKPjLCDWNtnABLpZjsQSrYZ8HKwcEdAMC8");
1281}
1282
1283pub mod relax_intrabatch_account_locks {
1284    solana_pubkey::declare_id!("4WeHX6QoXCCwqbSFgi6dxnB6QsPo6YApaNTH7P4MLQ99");
1285}
1286
1287pub mod disable_partitioned_rent_collection {
1288    solana_pubkey::declare_id!("2B2SBNbUcr438LtGXNcJNBP2GBSxjx81F945SdSkUSfC");
1289}
1290
1291pub mod enable_vote_address_leader_schedule {
1292    solana_pubkey::declare_id!("5JsG4NWH8Jbrqdd8uL6BNwnyZK3dQSoieRXG5vmofj9y");
1293}
1294
1295pub mod require_static_nonce_account {
1296    solana_pubkey::declare_id!("7VVhpg5oAjAmnmz1zCcSHb2Z9ecZB2FQqpnEwReka9Zm");
1297}
1298
1299pub mod raise_block_limits_to_60m {
1300    solana_pubkey::declare_id!("6oMCUgfY6BzZ6jwB681J6ju5Bh6CjVXbd7NeWYqiXBSu");
1301}
1302
1303pub mod mask_out_rent_epoch_in_vm_serialization {
1304    solana_pubkey::declare_id!("RENtePQcDLrAbxAsP3k8dwVcnNYQ466hi2uKvALjnXx");
1305}
1306
1307pub mod enable_extend_program_checked {
1308    solana_pubkey::declare_id!("ExtendProgCheckedWi11BeDe1eted11111111111111");
1309}
1310
1311pub mod formalize_loaded_transaction_data_size {
1312    solana_pubkey::declare_id!("DeS7sR48ZcFTUmt5FFEVDr1v1bh73aAbZiZq3SYr8Eh8");
1313}
1314
1315pub mod alpenglow {
1316    solana_pubkey::declare_id!("a1penGLz8Vm2QHYB3JPefBiU4BY3Z6JkW2k3Scw5GWP");
1317}
1318
1319pub mod disable_zk_elgamal_proof_program {
1320    solana_pubkey::declare_id!("zkdoVwnSFnSLtGJG7irJPEYUpmb4i7sGMGcnN6T9rnC");
1321}
1322
1323pub mod reenable_zk_elgamal_proof_program {
1324    solana_pubkey::declare_id!("zkexuyPRdyTVbZqEAREueqL2xvvoBhRgth9xGSc1tMN");
1325}
1326
1327pub mod raise_block_limits_to_100m {
1328    solana_pubkey::declare_id!("P1BCUMpAC7V2GRBRiJCNUgpMyWZhoqt3LKo712ePqsz");
1329}
1330
1331pub mod raise_account_cu_limit {
1332    solana_pubkey::declare_id!("htsptAwi2yRoZH83SKaUXykeZGtZHgxkS2QwW1pssR8");
1333}
1334
1335pub mod delay_commission_updates {
1336    solana_pubkey::declare_id!("76dHtohc2s5dR3ahJyBxs7eJJVipFkaPdih9CLgTTb4B");
1337}
1338
1339pub mod raise_cpi_nesting_limit_to_8 {
1340    solana_pubkey::declare_id!("6TkHkRmP7JZy1fdM6fg5uXn76wChQBWGokHBJzrLB3mj");
1341}
1342
1343pub mod enforce_fixed_fec_set {
1344    solana_pubkey::declare_id!("fixfecLZYMfkGzwq6NJA11Yw6KYztzXiK9QcL3K78in");
1345}
1346
1347pub mod provide_instruction_data_offset_in_vm_r2 {
1348    solana_pubkey::declare_id!("5xXZc66h4UdB6Yq7FzdBxBiRAFMMScMLwHxk2QZDaNZL");
1349}
1350
1351pub mod create_account_allow_prefund {
1352    solana_pubkey::declare_id!("6sPDzwyARRExKH52LECxcGoqziH8G7SZofwuxi8Ja331");
1353}
1354
1355pub mod static_instruction_limit {
1356    solana_pubkey::declare_id!("64ixypL1HPu8WtJhNSMb9mSgfFaJvsANuRkTbHyuLfnx");
1357}
1358
1359pub mod discard_unexpected_data_complete_shreds {
1360    solana_pubkey::declare_id!("disCA4efguFL6Wqa4pGdG7jpjC7C5uiKzKnhEBqchBe");
1361}
1362
1363pub mod vote_state_v4 {
1364    solana_pubkey::declare_id!("Gx4XFcrVMt4HUvPzTpTSVkdDVgcDSjKhDN1RqRS6KDuZ");
1365
1366    pub mod stake_program_buffer {
1367        solana_pubkey::declare_id!("BM11F4hqrpinQs28sEZfzQ2fYddivYs4NEAHF6QMjkJF");
1368    }
1369}
1370
1371pub mod switch_to_chacha8_turbine {
1372    solana_pubkey::declare_id!("CHaChatUnR3s6cPyPMMGNJa3VdQQ8PNH2JqdD4LpCKnB");
1373}
1374
1375pub mod increase_cpi_account_info_limit {
1376    solana_pubkey::declare_id!("H6iVbVaDZgDphcPbcZwc5LoznMPWQfnJ1AM7L1xzqvt5");
1377}
1378
1379pub mod deprecate_rent_exemption_threshold {
1380    solana_pubkey::declare_id!("rent6iVy6PDoViPBeJ6k5EJQrkj62h7DPyLbWGHwjrC");
1381}
1382
1383pub mod poseidon_enforce_padding {
1384    solana_pubkey::declare_id!("poUdAqRXXsNmfqAZ6UqpjbeYgwBygbfQLEvWSqVhSnb");
1385}
1386
1387pub mod fix_alt_bn128_pairing_length_check {
1388    solana_pubkey::declare_id!("bnYzodLwmybj7e1HAe98yZrdJTd7we69eMMLgCXqKZm");
1389}
1390
1391pub mod replace_spl_token_with_p_token {
1392    use super::Pubkey;
1393
1394    solana_pubkey::declare_id!("ptokFjwyJtrwCa9Kgo9xoDS59V4QccBGEaRFnRPnSdP");
1395
1396    pub const SPL_TOKEN_PROGRAM_ID: Pubkey =
1397        Pubkey::from_str_const("TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA");
1398
1399    pub const PTOKEN_PROGRAM_BUFFER: Pubkey =
1400        Pubkey::from_str_const("ptok6rngomXrDbWf5v5Mkmu5CEbB51hzSCPDoj9DrvF");
1401}
1402
1403pub mod alt_bn128_little_endian {
1404    solana_pubkey::declare_id!("bn2oPgpkzQPT3tohMaAsMVGjhDmmDa4jCaVPqCFmtxM");
1405}
1406
1407pub mod bls_pubkey_management_in_vote_account {
1408    solana_pubkey::declare_id!("AnAP9zPV4KL7czAPQbFhpDKV2tx7g4UGNbK9wvXwjaRo");
1409}
1410
1411pub mod relax_programdata_account_check_migration {
1412    solana_pubkey::declare_id!("rexav5eNTUSNT1K2N7cfRjnthwhcP5BC25v2tA4rW4h");
1413}
1414
1415pub mod enable_alt_bn128_g2_syscalls {
1416    solana_pubkey::declare_id!("bn1hKNURMGQaQoEVxahcEAcqiX3NwRs6hgKKNSLeKxH");
1417}
1418
1419pub mod commission_rate_in_basis_points {
1420    solana_pubkey::declare_id!("Eg7tXEwMZzS98xaZ1YHUbdRHsaYZiCsSaR6sKgxreoaj");
1421}
1422
1423pub mod custom_commission_collector {
1424    solana_pubkey::declare_id!("3HcSrCTGXTUnrTueHi4DAwNuMxZSsm5xui2Ax3mgxHqf");
1425}
1426
1427pub mod enable_bls12_381_syscall {
1428    solana_pubkey::declare_id!("b1sgUiJ3qu7hYm3tNDyyqZNQd6gLGJmJppnLNa93PCQ");
1429}
1430
1431// SIMD-0437 feature gates
1432pub mod set_lamports_per_byte_to_6333 {
1433    solana_pubkey::declare_id!("4a6f7o7iTcA8hRDCrPLkSatnt5Ykxiu36wo5p1Tt12wC");
1434
1435    pub const LAMPORTS_PER_BYTE: u64 = 6333;
1436}
1437
1438pub mod set_lamports_per_byte_to_5080 {
1439    solana_pubkey::declare_id!("61BtM7BkDEE8Yq5fskEVAQT9mYA8qCejJWoLe5apqg81");
1440
1441    pub const LAMPORTS_PER_BYTE: u64 = 5080;
1442}
1443
1444pub mod set_lamports_per_byte_to_2575 {
1445    solana_pubkey::declare_id!("Ftxb3ZKq7aNqgxDBbP7EonvR2RszZk9ctjdsTX38kQaz");
1446
1447    pub const LAMPORTS_PER_BYTE: u64 = 2575;
1448}
1449
1450pub mod set_lamports_per_byte_to_1322 {
1451    solana_pubkey::declare_id!("GsUBNYNDPdMLHPD37TToHzrzcNcjpC9w5n1EcJk5iTaM");
1452
1453    pub const LAMPORTS_PER_BYTE: u64 = 1322;
1454}
1455
1456pub mod set_lamports_per_byte_to_696 {
1457    solana_pubkey::declare_id!("mZdnRh9T2EbDNvqKjkCR3bvo5c816tJaojtE9Xs7iuY");
1458
1459    pub const LAMPORTS_PER_BYTE: u64 = 696;
1460}
1461
1462pub mod remove_simple_vote_from_cost_model {
1463    solana_pubkey::declare_id!("2GCrNXbzmt4xrwdcKS2RdsLzsgu4V5zHAemW57pcHT6a");
1464}
1465
1466pub mod limit_instruction_accounts {
1467    solana_pubkey::declare_id!("6aHuNsUmwSzCEMjrBzBCYaxHAyAcQBjVES92JigHBDuC");
1468}
1469
1470pub mod block_revenue_sharing {
1471    solana_pubkey::declare_id!("B1ockRevenueSharing111111111111111111111111");
1472}
1473
1474pub mod vote_account_initialize_v2 {
1475    solana_pubkey::declare_id!("VoteAccount1nitia1izeV211111111111111111111");
1476}
1477
1478pub mod validate_chained_block_id {
1479    solana_pubkey::declare_id!("vcmrbYbiMVKaq1snKP6eCacNDcr6qZvpCNUjmk6gxvZ");
1480}
1481
1482pub mod validate_chained_block_id_2 {
1483    solana_pubkey::declare_id!("vcmrw431aNM8ngQ46derkZXipoTGQdbHkEygBDh12dA");
1484}
1485
1486pub mod validator_admission_ticket {
1487    solana_pubkey::declare_id!("VAT9huvhPjRN9cyrPytq9rwvEJ3J4ADtjdncgZRyANJ");
1488}
1489
1490pub mod direct_account_pointers_in_program_input {
1491    solana_pubkey::declare_id!("ptr9umikaeAS7ZBBp2fsfRhie16F1V2jCKA2y6gXNAK");
1492}
1493
1494pub mod loader_v3_minimum_extend_program_size {
1495    solana_pubkey::declare_id!("YbbRLkvenrocjGPGyoQE4wjnvYzTgfsk38NFmcYK7a5");
1496}
1497
1498pub mod upgrade_bpf_stake_program_to_v5 {
1499    solana_pubkey::declare_id!("STk5Xj8hdAx3sTzmtJ3QysKkq6X2A3yj73JtxttiRyk");
1500
1501    pub mod buffer {
1502        solana_pubkey::declare_id!("4EBQBjw1kqF1dqUBb6fc5Ji4tCEQgNf9ESGGX3smwXwh");
1503    }
1504}
1505
1506pub mod enable_sha512_syscall {
1507    solana_pubkey::declare_id!("s512oDwgx8hjMnaQjXfqqrZroVj4HvC6TkN3iSSWXCh");
1508}
1509
1510pub mod relax_post_exec_min_balance_check {
1511    solana_pubkey::declare_id!("BY4JhHLahVzS9ynfDz4exzGPbVXhFmJvEyMWsXbDBqME");
1512}
1513
1514pub mod enable_tx_v1 {
1515    solana_pubkey::declare_id!("txv1aq4pp281K9um3tnPgkfX8UqtFT6wcVW3hNezGLL");
1516}
1517
1518pub mod define_ltds_fee_only_semantics {
1519    solana_pubkey::declare_id!("LTDSzjZKFJMKHYpNycG1FrWwGGTaFFwqEFjB5GGLNVD");
1520}
1521
1522pub mod set_lamports_per_byte_to_6960 {
1523    solana_pubkey::declare_id!("5AqsUgSb6cgLizSaNiFn3o9XB7VUtKDtDZfcKEjEDmni");
1524
1525    pub const LAMPORTS_PER_BYTE: u64 = 6960;
1526}
1527
1528pub mod reduce_slot_time_to_350ms {
1529    solana_pubkey::declare_id!("iBRL5RuWhw4yqaAZu96RUULHckHTZAoe2b77qaV38JZ");
1530}
1531
1532pub mod reduce_slot_time_to_300ms {
1533    solana_pubkey::declare_id!("iBRLL3k18HST852F1Mf3Lv83waTNQmmqvKDxvYGwQFL");
1534}
1535
1536pub mod reduce_slot_time_to_250ms {
1537    solana_pubkey::declare_id!("iBRLMc81UjRa8fn8A6eE8bJTnRbgQoPTynM51akENCV");
1538}
1539
1540pub mod reduce_slot_time_to_200ms {
1541    solana_pubkey::declare_id!("iBRLjhJnkmDZgNoZRDMW11d8ZV7HvsL3vAyRjZB5npW");
1542}
1543
1544pub mod upgrade_bpf_stake_program_to_v5_1 {
1545    solana_pubkey::declare_id!("s51VGwCAgebo2745DSUris72RavoLkXGUmVJosESCXr");
1546
1547    pub mod buffer {
1548        solana_pubkey::declare_id!("p51x11QCYMHwuVS1MBcLHKb3MezWyqGS5BEB41CA1dk");
1549    }
1550}
1551
1552pub mod alpenglow_fast_leader_handover {
1553    solana_pubkey::declare_id!("FLHoAWBDjNh6zwmJ5i1NKK4KyD8otAiv7XxvmnFnVnKH");
1554}
1555
1556pub static FEATURE_NAMES: LazyLock<AHashMap<Pubkey, &'static str>> = LazyLock::new(|| {
1557    [
1558        (secp256k1_program_enabled::id(), "secp256k1 program"),
1559        (
1560            deprecate_rewards_sysvar::id(),
1561            "deprecate unused rewards sysvar",
1562        ),
1563        (pico_inflation::id(), "pico inflation"),
1564        (
1565            full_inflation::devnet_and_testnet::id(),
1566            "full inflation on devnet and testnet",
1567        ),
1568        (spl_token_v2_multisig_fix::id(), "spl-token multisig fix"),
1569        (
1570            no_overflow_rent_distribution::id(),
1571            "no overflow rent distribution",
1572        ),
1573        (
1574            filter_stake_delegation_accounts::id(),
1575            "filter stake_delegation_accounts #14062",
1576        ),
1577        (
1578            require_custodian_for_locked_stake_authorize::id(),
1579            "require custodian to authorize withdrawer change for locked stake",
1580        ),
1581        (
1582            spl_token_v2_self_transfer_fix::id(),
1583            "spl-token self-transfer fix",
1584        ),
1585        (
1586            full_inflation::mainnet::certusone::enable::id(),
1587            "full inflation enabled by Certus One",
1588        ),
1589        (
1590            full_inflation::mainnet::certusone::vote::id(),
1591            "community vote allowing Certus One to enable full inflation",
1592        ),
1593        (
1594            warp_timestamp_again::id(),
1595            "warp timestamp again, adjust bounding to 25% fast 80% slow #15204",
1596        ),
1597        (check_init_vote_data::id(), "check initialized Vote data"),
1598        (
1599            secp256k1_recover_syscall_enabled::id(),
1600            "secp256k1_recover syscall",
1601        ),
1602        (
1603            system_transfer_zero_check::id(),
1604            "perform all checks for transfers of 0 lamports",
1605        ),
1606        (blake3_syscall_enabled::id(), "blake3 syscall"),
1607        (
1608            dedupe_config_program_signers::id(),
1609            "dedupe config program signers",
1610        ),
1611        (
1612            verify_tx_signatures_len::id(),
1613            "prohibit extra transaction signatures",
1614        ),
1615        (
1616            vote_stake_checked_instructions::id(),
1617            "vote/state program checked instructions #18345",
1618        ),
1619        (
1620            rent_for_sysvars::id(),
1621            "collect rent from accounts owned by sysvars",
1622        ),
1623        (
1624            libsecp256k1_0_5_upgrade_enabled::id(),
1625            "upgrade libsecp256k1 to v0.5.0",
1626        ),
1627        (tx_wide_compute_cap::id(), "transaction wide compute cap"),
1628        (
1629            spl_token_v2_set_authority_fix::id(),
1630            "spl-token set_authority fix",
1631        ),
1632        (
1633            merge_nonce_error_into_system_error::id(),
1634            "merge NonceError into SystemError",
1635        ),
1636        (disable_fees_sysvar::id(), "disable fees sysvar"),
1637        (
1638            stake_merge_with_unmatched_credits_observed::id(),
1639            "allow merging active stakes with unmatched credits_observed #18985",
1640        ),
1641        (
1642            zk_token_sdk_enabled::id(),
1643            "enable Zk Token proof program and syscalls",
1644        ),
1645        (
1646            curve25519_syscall_enabled::id(),
1647            "enable curve25519 syscalls",
1648        ),
1649        (
1650            versioned_tx_message_enabled::id(),
1651            "enable versioned transaction message processing",
1652        ),
1653        (
1654            libsecp256k1_fail_on_bad_count::id(),
1655            "fail libsecp256k1_verify if count appears wrong",
1656        ),
1657        (
1658            libsecp256k1_fail_on_bad_count2::id(),
1659            "fail libsecp256k1_verify if count appears wrong",
1660        ),
1661        (
1662            instructions_sysvar_owned_by_sysvar::id(),
1663            "fix owner for instructions sysvar",
1664        ),
1665        (
1666            stake_program_advance_activating_credits_observed::id(),
1667            "Enable advancing credits observed for activation epoch #19309",
1668        ),
1669        (
1670            credits_auto_rewind::id(),
1671            "Auto rewind stake's credits_observed if (accidental) vote recreation is detected \
1672             #22546",
1673        ),
1674        (
1675            demote_program_write_locks::id(),
1676            "demote program write locks to readonly, except when upgradeable loader present \
1677             #19593 #20265",
1678        ),
1679        (
1680            ed25519_program_enabled::id(),
1681            "enable builtin ed25519 signature verify program",
1682        ),
1683        (
1684            return_data_syscall_enabled::id(),
1685            "enable sol_{set,get}_return_data syscall",
1686        ),
1687        (
1688            reduce_required_deploy_balance::id(),
1689            "reduce required payer balance for program deploys",
1690        ),
1691        (
1692            sol_log_data_syscall_enabled::id(),
1693            "enable sol_log_data syscall",
1694        ),
1695        (
1696            stakes_remove_delegation_if_inactive::id(),
1697            "remove delegations from stakes cache when inactive",
1698        ),
1699        (
1700            do_support_realloc::id(),
1701            "support account data reallocation",
1702        ),
1703        (
1704            prevent_calling_precompiles_as_programs::id(),
1705            "prevent calling precompiles as programs",
1706        ),
1707        (
1708            optimize_epoch_boundary_updates::id(),
1709            "optimize epoch boundary updates",
1710        ),
1711        (
1712            remove_native_loader::id(),
1713            "remove support for the native loader",
1714        ),
1715        (
1716            send_to_tpu_vote_port::id(),
1717            "send votes to the tpu vote port",
1718        ),
1719        (requestable_heap_size::id(), "Requestable heap frame size"),
1720        (disable_fee_calculator::id(), "deprecate fee calculator"),
1721        (
1722            add_compute_budget_program::id(),
1723            "Add compute_budget_program",
1724        ),
1725        (nonce_must_be_writable::id(), "nonce must be writable"),
1726        (spl_token_v3_3_0_release::id(), "spl-token v3.3.0 release"),
1727        (leave_nonce_on_success::id(), "leave nonce as is on success"),
1728        (
1729            reject_empty_instruction_without_program::id(),
1730            "fail instructions which have native_loader as program_id directly",
1731        ),
1732        (
1733            fixed_memcpy_nonoverlapping_check::id(),
1734            "use correct check for nonoverlapping regions in memcpy syscall",
1735        ),
1736        (
1737            reject_non_rent_exempt_vote_withdraws::id(),
1738            "fail vote withdraw instructions which leave the account non-rent-exempt",
1739        ),
1740        (
1741            evict_invalid_stakes_cache_entries::id(),
1742            "evict invalid stakes cache entries on epoch boundaries",
1743        ),
1744        (
1745            allow_votes_to_directly_update_vote_state::id(),
1746            "enable direct vote state update",
1747        ),
1748        (
1749            max_tx_account_locks::id(),
1750            "enforce max number of locked accounts per transaction",
1751        ),
1752        (
1753            require_rent_exempt_accounts::id(),
1754            "require all new transaction accounts with data to be rent-exempt",
1755        ),
1756        (
1757            filter_votes_outside_slot_hashes::id(),
1758            "filter vote slots older than the slot hashes history",
1759        ),
1760        (update_syscall_base_costs::id(), "update syscall base costs"),
1761        (
1762            stake_deactivate_delinquent_instruction::id(),
1763            "enable the deactivate delinquent stake instruction #23932",
1764        ),
1765        (
1766            vote_withdraw_authority_may_change_authorized_voter::id(),
1767            "vote account withdraw authority may change the authorized voter #22521",
1768        ),
1769        (
1770            spl_associated_token_account_v1_0_4::id(),
1771            "SPL Associated Token Account Program release version 1.0.4, tied to token 3.3.0 \
1772             #22648",
1773        ),
1774        (
1775            reject_vote_account_close_unless_zero_credit_epoch::id(),
1776            "fail vote account withdraw to 0 unless account earned 0 credits in last completed \
1777             epoch",
1778        ),
1779        (
1780            add_get_processed_sibling_instruction_syscall::id(),
1781            "add add_get_processed_sibling_instruction_syscall",
1782        ),
1783        (
1784            bank_transaction_count_fix::id(),
1785            "fixes Bank::transaction_count to include all committed transactions, not just \
1786             successful ones",
1787        ),
1788        (
1789            disable_bpf_deprecated_load_instructions::id(),
1790            "disable ldabs* and ldind* SBF instructions",
1791        ),
1792        (
1793            disable_bpf_unresolved_symbols_at_runtime::id(),
1794            "disable reporting of unresolved SBF symbols at runtime",
1795        ),
1796        (
1797            record_instruction_in_transaction_context_push::id(),
1798            "move the CPI stack overflow check to the end of push",
1799        ),
1800        (syscall_saturated_math::id(), "syscalls use saturated math"),
1801        (
1802            check_physical_overlapping::id(),
1803            "check physical overlapping regions",
1804        ),
1805        (
1806            limit_secp256k1_recovery_id::id(),
1807            "limit secp256k1 recovery id",
1808        ),
1809        (
1810            disable_deprecated_loader::id(),
1811            "disable the deprecated BPF loader",
1812        ),
1813        (
1814            check_slice_translation_size::id(),
1815            "check size when translating slices",
1816        ),
1817        (
1818            stake_split_uses_rent_sysvar::id(),
1819            "stake split instruction uses rent sysvar",
1820        ),
1821        (
1822            add_get_minimum_delegation_instruction_to_stake_program::id(),
1823            "add GetMinimumDelegation instruction to stake program",
1824        ),
1825        (
1826            error_on_syscall_bpf_function_hash_collisions::id(),
1827            "error on bpf function hash collisions",
1828        ),
1829        (reject_callx_r10::id(), "Reject bpf callx r10 instructions"),
1830        (
1831            drop_redundant_turbine_path::id(),
1832            "drop redundant turbine path",
1833        ),
1834        (
1835            executables_incur_cpi_data_cost::id(),
1836            "Executables incur CPI data costs",
1837        ),
1838        (
1839            fix_recent_blockhashes::id(),
1840            "stop adding hashes for skipped slots to recent blockhashes",
1841        ),
1842        (
1843            update_rewards_from_cached_accounts::id(),
1844            "update rewards from cached accounts",
1845        ),
1846        (
1847            spl_token_v3_4_0::id(),
1848            "SPL Token Program version 3.4.0 release #24740",
1849        ),
1850        (
1851            spl_associated_token_account_v1_1_0::id(),
1852            "SPL Associated Token Account Program version 1.1.0 release #24741",
1853        ),
1854        (
1855            default_units_per_instruction::id(),
1856            "Default max tx-wide compute units calculated per instruction",
1857        ),
1858        (
1859            stake_allow_zero_undelegated_amount::id(),
1860            "Allow zero-lamport undelegated amount for initialized stakes #24670",
1861        ),
1862        (
1863            require_static_program_ids_in_transaction::id(),
1864            "require static program ids in versioned transactions",
1865        ),
1866        (
1867            stake_raise_minimum_delegation_to_1_sol::id(),
1868            "Raise minimum stake delegation to 1.0 SOL #24357",
1869        ),
1870        (
1871            add_set_compute_unit_price_ix::id(),
1872            "add compute budget ix for setting a compute unit price",
1873        ),
1874        (
1875            disable_deploy_of_alloc_free_syscall::id(),
1876            "disable new deployments of deprecated sol_alloc_free_ syscall",
1877        ),
1878        (
1879            include_account_index_in_rent_error::id(),
1880            "include account index in rent tx error #25190",
1881        ),
1882        (
1883            add_shred_type_to_shred_seed::id(),
1884            "add shred-type to shred seed #25556",
1885        ),
1886        (
1887            warp_timestamp_with_a_vengeance::id(),
1888            "warp timestamp again, adjust bounding to 150% slow #25666",
1889        ),
1890        (
1891            separate_nonce_from_blockhash::id(),
1892            "separate durable nonce and blockhash domains #25744",
1893        ),
1894        (enable_durable_nonce::id(), "enable durable nonce #25744"),
1895        (
1896            vote_state_update_credit_per_dequeue::id(),
1897            "Calculate vote credits for VoteStateUpdate per vote dequeue to match credit awards \
1898             for Vote instruction",
1899        ),
1900        (quick_bail_on_panic::id(), "quick bail on panic"),
1901        (nonce_must_be_authorized::id(), "nonce must be authorized"),
1902        (
1903            nonce_must_be_advanceable::id(),
1904            "durable nonces must be advanceable",
1905        ),
1906        (
1907            vote_authorize_with_seed::id(),
1908            "An instruction you can use to change a vote accounts authority when the current \
1909             authority is a derived key #25860",
1910        ),
1911        (
1912            preserve_rent_epoch_for_rent_exempt_accounts::id(),
1913            "preserve rent epoch for rent exempt accounts #26479",
1914        ),
1915        (
1916            enable_bpf_loader_extend_program_ix::id(),
1917            "enable bpf upgradeable loader ExtendProgram instruction #25234",
1918        ),
1919        (skip_rent_rewrites::id(), "SIMD-0183: Skip rent rewrites"),
1920        (
1921            enable_early_verification_of_account_modifications::id(),
1922            "enable early verification of account modifications #25899",
1923        ),
1924        (
1925            disable_rehash_for_rent_epoch::id(),
1926            "on accounts hash calculation, do not try to rehash accounts #28934",
1927        ),
1928        (
1929            account_hash_ignore_slot::id(),
1930            "ignore slot when calculating an account hash #28420",
1931        ),
1932        (
1933            set_exempt_rent_epoch_max::id(),
1934            "set rent epoch to Epoch::MAX for rent-exempt accounts #28683",
1935        ),
1936        (
1937            on_load_preserve_rent_epoch_for_rent_exempt_accounts::id(),
1938            "on bank load account, do not try to fix up rent_epoch #28541",
1939        ),
1940        (
1941            prevent_crediting_accounts_that_end_rent_paying::id(),
1942            "prevent crediting rent paying accounts #26606",
1943        ),
1944        (
1945            cap_bpf_program_instruction_accounts::id(),
1946            "enforce max number of accounts per bpf program instruction #26628",
1947        ),
1948        (
1949            loosen_cpi_size_restriction::id(),
1950            "loosen cpi size restrictions #26641",
1951        ),
1952        (
1953            use_default_units_in_fee_calculation::id(),
1954            "use default units per instruction in fee calculation #26785",
1955        ),
1956        (
1957            compact_vote_state_updates::id(),
1958            "Compact vote state updates to lower block size",
1959        ),
1960        (
1961            incremental_snapshot_only_incremental_hash_calculation::id(),
1962            "only hash accounts in incremental snapshot during incremental snapshot creation \
1963             #26799",
1964        ),
1965        (
1966            disable_cpi_setting_executable_and_rent_epoch::id(),
1967            "disable setting is_executable and_rent_epoch in CPI #26987",
1968        ),
1969        (
1970            relax_authority_signer_check_for_lookup_table_creation::id(),
1971            "relax authority signer check for lookup table creation #27205",
1972        ),
1973        (
1974            stop_sibling_instruction_search_at_parent::id(),
1975            "stop the search in get_processed_sibling_instruction when the parent instruction is \
1976             reached #27289",
1977        ),
1978        (
1979            vote_state_update_root_fix::id(),
1980            "fix root in vote state updates #27361",
1981        ),
1982        (
1983            cap_accounts_data_allocations_per_transaction::id(),
1984            "cap accounts data allocations per transaction #27375",
1985        ),
1986        (
1987            epoch_accounts_hash::id(),
1988            "enable epoch accounts hash calculation #27539",
1989        ),
1990        (
1991            remove_deprecated_request_unit_ix::id(),
1992            "remove support for RequestUnitsDeprecated instruction #27500",
1993        ),
1994        (
1995            increase_tx_account_lock_limit::id(),
1996            "increase tx account lock limit to 128 #27241",
1997        ),
1998        (
1999            limit_max_instruction_trace_length::id(),
2000            "limit max instruction trace length #27939",
2001        ),
2002        (
2003            check_syscall_outputs_do_not_overlap::id(),
2004            "check syscall outputs do_not overlap #28600",
2005        ),
2006        (
2007            enable_bpf_loader_set_authority_checked_ix::id(),
2008            "enable bpf upgradeable loader SetAuthorityChecked instruction #28424",
2009        ),
2010        (
2011            enable_alt_bn128_syscall::id(),
2012            "add alt_bn128 syscalls #27961",
2013        ),
2014        (
2015            simplify_alt_bn128_syscall_error_codes::id(),
2016            "SIMD-0129: simplify alt_bn128 syscall error codes",
2017        ),
2018        (
2019            enable_program_redeployment_cooldown::id(),
2020            "enable program redeployment cooldown #29135",
2021        ),
2022        (
2023            commission_updates_only_allowed_in_first_half_of_epoch::id(),
2024            "validator commission updates are only allowed in the first half of an epoch #29362",
2025        ),
2026        (
2027            enable_turbine_fanout_experiments::id(),
2028            "enable turbine fanout experiments #29393",
2029        ),
2030        (
2031            disable_turbine_fanout_experiments::id(),
2032            "disable turbine fanout experiments #29393",
2033        ),
2034        (
2035            move_serialized_len_ptr_in_cpi::id(),
2036            "cpi ignore serialized_len_ptr #29592",
2037        ),
2038        (
2039            update_hashes_per_tick::id(),
2040            "Update desired hashes per tick on epoch boundary",
2041        ),
2042        (
2043            enable_big_mod_exp_syscall::id(),
2044            "add big_mod_exp syscall #28503",
2045        ),
2046        (
2047            disable_builtin_loader_ownership_chains::id(),
2048            "disable builtin loader ownership chains #29956",
2049        ),
2050        (
2051            cap_transaction_accounts_data_size::id(),
2052            "cap transaction accounts data size up to a limit #27839",
2053        ),
2054        (
2055            remove_congestion_multiplier_from_fee_calculation::id(),
2056            "Remove congestion multiplier from transaction fee calculation #29881",
2057        ),
2058        (
2059            enable_request_heap_frame_ix::id(),
2060            "Enable transaction to request heap frame using compute budget instruction #30076",
2061        ),
2062        (
2063            prevent_rent_paying_rent_recipients::id(),
2064            "prevent recipients of rent rewards from ending in rent-paying state #30151",
2065        ),
2066        (
2067            delay_visibility_of_program_deployment::id(),
2068            "delay visibility of program upgrades #30085",
2069        ),
2070        (
2071            apply_cost_tracker_during_replay::id(),
2072            "apply cost tracker to blocks during replay #29595",
2073        ),
2074        (
2075            add_set_tx_loaded_accounts_data_size_instruction::id(),
2076            "add compute budget instruction for setting account data size per transaction #30366",
2077        ),
2078        (
2079            switch_to_new_elf_parser::id(),
2080            "switch to new ELF parser #30497",
2081        ),
2082        (
2083            round_up_heap_size::id(),
2084            "round up heap size when calculating heap cost #30679",
2085        ),
2086        (
2087            remove_bpf_loader_incorrect_program_id::id(),
2088            "stop incorrectly throwing IncorrectProgramId in bpf_loader #30747",
2089        ),
2090        (
2091            include_loaded_accounts_data_size_in_fee_calculation::id(),
2092            "include transaction loaded accounts data size in base fee calculation #30657",
2093        ),
2094        (
2095            native_programs_consume_cu::id(),
2096            "Native program should consume compute units #30620",
2097        ),
2098        (
2099            simplify_writable_program_account_check::id(),
2100            "Simplify checks performed for writable upgradeable program accounts #30559",
2101        ),
2102        (
2103            stop_truncating_strings_in_syscalls::id(),
2104            "Stop truncating strings in syscalls #31029",
2105        ),
2106        (
2107            clean_up_delegation_errors::id(),
2108            "Return InsufficientDelegation instead of InsufficientFunds or InsufficientStake \
2109             where applicable #31206",
2110        ),
2111        (
2112            vote_state_add_vote_latency::id(),
2113            "replace Lockout with LandedVote (including vote latency) in vote state #31264",
2114        ),
2115        (
2116            checked_arithmetic_in_fee_validation::id(),
2117            "checked arithmetic in fee validation #31273",
2118        ),
2119        (
2120            syscall_parameter_address_restrictions::id(),
2121            "SIMD-0459: Syscall Parameter Address Restrictions",
2122        ),
2123        (
2124            virtual_address_space_adjustments::id(),
2125            "SIMD-0460: Virtual Address Space Adjustments",
2126        ),
2127        (
2128            account_data_direct_mapping::id(),
2129            "enable account data direct mapping",
2130        ),
2131        (
2132            last_restart_slot_sysvar::id(),
2133            "SIMD-0047: Enable new sysvar last_restart_slot",
2134        ),
2135        (
2136            reduce_stake_warmup_cooldown::id(),
2137            "reduce stake warmup cooldown from 25% to 9%",
2138        ),
2139        (
2140            revise_turbine_epoch_stakes::id(),
2141            "revise turbine epoch stakes",
2142        ),
2143        (enable_poseidon_syscall::id(), "Enable Poseidon syscall"),
2144        (
2145            timely_vote_credits::id(),
2146            "use timeliness of votes in determining credits to award",
2147        ),
2148        (
2149            remaining_compute_units_syscall_enabled::id(),
2150            "enable the remaining_compute_units syscall",
2151        ),
2152        (enable_loader_v4::id(), "SIMD-0167: Enable Loader-v4"),
2153        (
2154            require_rent_exempt_split_destination::id(),
2155            "Require stake split destination account to be rent exempt",
2156        ),
2157        (
2158            better_error_codes_for_tx_lamport_check::id(),
2159            "better error codes for tx lamport check #33353",
2160        ),
2161        (
2162            enable_alt_bn128_compression_syscall::id(),
2163            "add alt_bn128 compression syscalls",
2164        ),
2165        (
2166            update_hashes_per_tick2::id(),
2167            "Update desired hashes per tick to 2.8M",
2168        ),
2169        (
2170            update_hashes_per_tick3::id(),
2171            "Update desired hashes per tick to 4.4M",
2172        ),
2173        (
2174            update_hashes_per_tick4::id(),
2175            "Update desired hashes per tick to 7.6M",
2176        ),
2177        (
2178            update_hashes_per_tick5::id(),
2179            "Update desired hashes per tick to 9.2M",
2180        ),
2181        (
2182            update_hashes_per_tick6::id(),
2183            "Update desired hashes per tick to 10M",
2184        ),
2185        (
2186            validate_fee_collector_account::id(),
2187            "validate fee collector account #33888",
2188        ),
2189        (
2190            disable_rent_fees_collection::id(),
2191            "SIMD-0084: Disable rent fees collection",
2192        ),
2193        (
2194            enable_zk_transfer_with_fee::id(),
2195            "enable Zk Token proof program transfer with fee",
2196        ),
2197        (drop_legacy_shreds::id(), "drops legacy shreds #34328"),
2198        (
2199            allow_commission_decrease_at_any_time::id(),
2200            "Allow commission decrease at any time in epoch #33843",
2201        ),
2202        (
2203            consume_blockstore_duplicate_proofs::id(),
2204            "consume duplicate proofs from blockstore in consensus #34372",
2205        ),
2206        (
2207            add_new_reserved_account_keys::id(),
2208            "SIMD-0105: Maintain Dynamic Set of Reserved Account Keys",
2209        ),
2210        (
2211            index_erasure_conflict_duplicate_proofs::id(),
2212            "generate duplicate proofs for index and erasure conflicts #34360",
2213        ),
2214        (
2215            merkle_conflict_duplicate_proofs::id(),
2216            "generate duplicate proofs for merkle root conflicts #34270",
2217        ),
2218        (
2219            disable_bpf_loader_instructions::id(),
2220            "disable bpf loader management instructions #34194",
2221        ),
2222        (
2223            enable_zk_proof_from_account::id(),
2224            "Enable zk token proof program to read proof from accounts instead of instruction \
2225             data #34750",
2226        ),
2227        (
2228            curve25519_restrict_msm_length::id(),
2229            "restrict curve25519 multiscalar multiplication vector lengths #34763",
2230        ),
2231        (
2232            cost_model_requested_write_lock_cost::id(),
2233            "cost model uses number of requested write locks #34819",
2234        ),
2235        (
2236            enable_gossip_duplicate_proof_ingestion::id(),
2237            "enable gossip duplicate proof ingestion #32963",
2238        ),
2239        (
2240            enable_chained_merkle_shreds::id(),
2241            "Enable chained Merkle shreds #34916",
2242        ),
2243        (
2244            remove_rounding_in_fee_calculation::id(),
2245            "Removing unwanted rounding in fee calculation #34982",
2246        ),
2247        (
2248            deprecate_unused_legacy_vote_plumbing::id(),
2249            "Deprecate unused legacy vote tx plumbing",
2250        ),
2251        (
2252            enable_tower_sync_ix::id(),
2253            "Enable tower sync vote instruction",
2254        ),
2255        (
2256            chained_merkle_conflict_duplicate_proofs::id(),
2257            "generate duplicate proofs for chained merkle root conflicts",
2258        ),
2259        (
2260            reward_full_priority_fee::id(),
2261            "SIMD-0096: Reward full priority fee to validators",
2262        ),
2263        (
2264            abort_on_invalid_curve::id(),
2265            "SIMD-0137: Abort when elliptic curve syscalls invoked on invalid curve id",
2266        ),
2267        (
2268            get_sysvar_syscall_enabled::id(),
2269            "SIMD-0127: Enable syscall for fetching Sysvar bytes",
2270        ),
2271        (
2272            migrate_feature_gate_program_to_core_bpf::id(),
2273            "SIMD-0089: Migrate Feature Gate program to Core BPF (programify)",
2274        ),
2275        (vote_only_full_fec_sets::id(), "vote only full fec sets"),
2276        (
2277            migrate_config_program_to_core_bpf::id(),
2278            "SIMD-0140: Migrate Config program to Core BPF",
2279        ),
2280        (
2281            enable_get_epoch_stake_syscall::id(),
2282            "SIMD-0133: Enable syscall: sol_get_epoch_stake",
2283        ),
2284        (
2285            migrate_address_lookup_table_program_to_core_bpf::id(),
2286            "SIMD-0128: Migrate Address Lookup Table program to Core BPF",
2287        ),
2288        (
2289            zk_elgamal_proof_program_enabled::id(),
2290            "SIMD-0153: Enable ZkElGamalProof program",
2291        ),
2292        (
2293            verify_retransmitter_signature::id(),
2294            "Verify retransmitter signature #1840",
2295        ),
2296        (
2297            move_stake_and_move_lamports_ixs::id(),
2298            "Enable MoveStake and MoveLamports stake program instructions #1610",
2299        ),
2300        (
2301            ed25519_precompile_verify_strict::id(),
2302            "SIMD-0152: Use strict verification in ed25519 precompile",
2303        ),
2304        (
2305            vote_only_retransmitter_signed_fec_sets::id(),
2306            "vote only on retransmitter signed fec sets",
2307        ),
2308        (
2309            move_precompile_verification_to_svm::id(),
2310            "SIMD-0159: Move precompile verification into SVM",
2311        ),
2312        (
2313            enable_transaction_loading_failure_fees::id(),
2314            "SIMD-0082: Enable fees for some additional transaction failures",
2315        ),
2316        (
2317            enable_turbine_extended_fanout_experiments::id(),
2318            "enable turbine extended fanout experiments #",
2319        ),
2320        (
2321            deprecate_legacy_vote_ixs::id(),
2322            "Deprecate legacy vote instructions",
2323        ),
2324        (
2325            partitioned_epoch_rewards_superfeature::id(),
2326            "SIMD-0118: replaces enable_partitioned_epoch_reward to enable partitioned rewards at \
2327             epoch boundary",
2328        ),
2329        (
2330            disable_sbpf_v0_execution::id(),
2331            "SIMD-0161: Disables execution of SBPFv0 programs",
2332        ),
2333        (
2334            reenable_sbpf_v0_execution::id(),
2335            "Re-enables execution of SBPFv0 programs",
2336        ),
2337        (
2338            enable_sbpf_v1_deployment_and_execution::id(),
2339            "SIMD-0166: Enable deployment and execution of SBPFv1 programs",
2340        ),
2341        (
2342            enable_sbpf_v2_deployment_and_execution::id(),
2343            "SIMD-0173 and SIMD-0174: Enable deployment and execution of SBPFv2 programs",
2344        ),
2345        (
2346            enable_sbpf_v3_deployment_and_execution::id(),
2347            "SIMD-0178, SIMD-0189 and SIMD-0377: Enable deployment and execution of SBPFv3 \
2348             programs",
2349        ),
2350        (
2351            disable_sbpf_v0_v1_v2_deployment::id(),
2352            "SIMD-0500: Disable deployment of SBPF v0, v1 and v2 programs",
2353        ),
2354        (
2355            remove_accounts_executable_flag_checks::id(),
2356            "SIMD-0162: Remove checks of accounts is_executable flag",
2357        ),
2358        (
2359            disable_account_loader_special_case::id(),
2360            "Disable account loader special case #3513",
2361        ),
2362        (
2363            accounts_lt_hash::id(),
2364            "SIMD-0215: enables lattice-based accounts hash",
2365        ),
2366        (
2367            snapshots_lt_hash::id(),
2368            "SIMD-0220: snapshots use lattice-based accounts hash",
2369        ),
2370        (
2371            remove_accounts_delta_hash::id(),
2372            "SIMD-0223: removes accounts delta hash",
2373        ),
2374        (
2375            enable_secp256r1_precompile::id(),
2376            "SIMD-0075: Enable secp256r1 precompile",
2377        ),
2378        (
2379            migrate_stake_program_to_core_bpf::id(),
2380            "SIMD-0196: Migrate Stake program to Core BPF #3655",
2381        ),
2382        (
2383            deplete_cu_meter_on_vm_failure::id(),
2384            "SIMD-0182: Deplete compute meter for vm errors #3993",
2385        ),
2386        (
2387            reserve_minimal_cus_for_builtin_instructions::id(),
2388            "SIMD-0170: Reserve minimal CUs for builtin instructions #2562",
2389        ),
2390        (
2391            raise_block_limits_to_50m::id(),
2392            "SIMD-0207: Raise block limit to 50M",
2393        ),
2394        (
2395            fix_alt_bn128_multiplication_input_length::id(),
2396            "SIMD-0222: fix alt_bn128 multiplication input length #3686",
2397        ),
2398        (
2399            drop_unchained_merkle_shreds::id(),
2400            "drops unchained Merkle shreds #2149",
2401        ),
2402        (
2403            relax_intrabatch_account_locks::id(),
2404            "SIMD-0083: Allow batched transactions to read/write and write/write the same accounts",
2405        ),
2406        (
2407            disable_partitioned_rent_collection::id(),
2408            "SIMD-0175: Disable partitioned rent collection #4562",
2409        ),
2410        (
2411            enable_vote_address_leader_schedule::id(),
2412            "SIMD-0180: Enable vote address leader schedule #4573",
2413        ),
2414        (
2415            require_static_nonce_account::id(),
2416            "SIMD-0242: Static Nonce Account Only",
2417        ),
2418        (
2419            raise_block_limits_to_60m::id(),
2420            "SIMD-0256: Raise block limit to 60M",
2421        ),
2422        (
2423            mask_out_rent_epoch_in_vm_serialization::id(),
2424            "SIMD-0267: Sets rent_epoch to a constant in the VM",
2425        ),
2426        (
2427            enable_extend_program_checked::id(),
2428            "Enable ExtendProgramChecked instruction",
2429        ),
2430        (
2431            formalize_loaded_transaction_data_size::id(),
2432            "SIMD-0186: Loaded transaction data size specification",
2433        ),
2434        (
2435            alpenglow::id(),
2436            "SIMD-0326: Alpenglow: new consensus algorithm",
2437        ),
2438        (
2439            reduce_slot_time_to_350ms::id(),
2440            "SIMD-0525: Reduce slot time to 350ms",
2441        ),
2442        (
2443            reduce_slot_time_to_300ms::id(),
2444            "SIMD-0525: Reduce slot time to 300ms",
2445        ),
2446        (
2447            reduce_slot_time_to_250ms::id(),
2448            "SIMD-0525: Reduce slot time to 250ms",
2449        ),
2450        (
2451            reduce_slot_time_to_200ms::id(),
2452            "SIMD-0525: Reduce slot time to 200ms",
2453        ),
2454        (
2455            disable_zk_elgamal_proof_program::id(),
2456            "Disables zk-elgamal-proof program",
2457        ),
2458        (
2459            reenable_zk_elgamal_proof_program::id(),
2460            "Re-enables zk-elgamal-proof program",
2461        ),
2462        (
2463            raise_block_limits_to_100m::id(),
2464            "SIMD-0286: Raise block limit to 100M",
2465        ),
2466        (
2467            raise_account_cu_limit::id(),
2468            "SIMD-0306: Raise account CU limit to 40% max",
2469        ),
2470        (
2471            raise_cpi_nesting_limit_to_8::id(),
2472            "SIMD-0268: Raise CPI nesting limit from 4 to 8",
2473        ),
2474        (
2475            enforce_fixed_fec_set::id(),
2476            "SIMD-0317: Enforce 32 data + 32 coding shreds",
2477        ),
2478        (
2479            provide_instruction_data_offset_in_vm_r2::id(),
2480            "SIMD-0321: Provide instruction data offset in VM r2",
2481        ),
2482        (
2483            create_account_allow_prefund::id(),
2484            "SIMD-0312: Enable CreateAccountAllowPrefund system program instruction",
2485        ),
2486        (
2487            static_instruction_limit::id(),
2488            "SIMD-0160: static instruction limit",
2489        ),
2490        (
2491            discard_unexpected_data_complete_shreds::id(),
2492            "SIMD-0337: Markers for Alpenglow Fast Leader Handover, DATA_COMPLETE_SHRED placement \
2493             rules",
2494        ),
2495        (vote_state_v4::id(), "SIMD-0185: Vote State v4"),
2496        (
2497            switch_to_chacha8_turbine::id(),
2498            "SIMD-0332: Reduce ChaCha rounds for Turbine from 20 to 8",
2499        ),
2500        (
2501            delay_commission_updates::id(),
2502            "SIMD-0249: Delay Commission Updates",
2503        ),
2504        (
2505            increase_cpi_account_info_limit::id(),
2506            "SIMD-0339: Increase CPI Account Infos Limit",
2507        ),
2508        (
2509            deprecate_rent_exemption_threshold::id(),
2510            "SIMD-0194: Deprecate rent exemption threshold",
2511        ),
2512        (
2513            poseidon_enforce_padding::id(),
2514            "SIMD-0359: Enforce padding in Poseidon hash inputs",
2515        ),
2516        (
2517            fix_alt_bn128_pairing_length_check::id(),
2518            "SIMD-0334: Fix alt_bn128_pairing length check",
2519        ),
2520        (
2521            replace_spl_token_with_p_token::id(),
2522            "SIMD-0266: Efficient Token program",
2523        ),
2524        (
2525            alt_bn128_little_endian::id(),
2526            "SIMD-0284: Add little-endian compatibility for alt_bn128",
2527        ),
2528        (
2529            bls_pubkey_management_in_vote_account::id(),
2530            "SIMD-0387: BLS Pubkey Management in Vote Account",
2531        ),
2532        (
2533            relax_programdata_account_check_migration::id(),
2534            "SIMD-0444: Relax program data account check in migration",
2535        ),
2536        (
2537            enable_alt_bn128_g2_syscalls::id(),
2538            "SIMD-0302: Add alt_bn128 G2 syscalls",
2539        ),
2540        (
2541            commission_rate_in_basis_points::id(),
2542            "SIMD-0291: Commission Rate in Basis Points",
2543        ),
2544        (
2545            custom_commission_collector::id(),
2546            "SIMD-0232: Custom Commission Collector",
2547        ),
2548        (
2549            enable_bls12_381_syscall::id(),
2550            "SIMD-0388: BLS12-381 syscalls",
2551        ),
2552        (
2553            set_lamports_per_byte_to_6333::id(),
2554            "SIMD-0437-1: Set lamports per byte to 6333",
2555        ),
2556        (
2557            set_lamports_per_byte_to_5080::id(),
2558            "SIMD-0437-2: Set lamports per byte to 5080",
2559        ),
2560        (
2561            set_lamports_per_byte_to_2575::id(),
2562            "SIMD-0437-3: Set lamports per byte to 2575",
2563        ),
2564        (
2565            set_lamports_per_byte_to_1322::id(),
2566            "SIMD-0437-4: Set lamports per byte to 1322",
2567        ),
2568        (
2569            set_lamports_per_byte_to_696::id(),
2570            "SIMD-0437-5: Set lamports per byte to 696",
2571        ),
2572        (
2573            remove_simple_vote_from_cost_model::id(),
2574            "stop use static SimpleVote transaction cost, issue #10227",
2575        ),
2576        (
2577            limit_instruction_accounts::id(),
2578            "SIMD-0406: Maximum instruction accounts",
2579        ),
2580        (
2581            block_revenue_sharing::id(),
2582            "SIMD-0123: Block Revenue Sharing",
2583        ),
2584        (
2585            vote_account_initialize_v2::id(),
2586            "SIMD-0464: Vote Account Initialize V2",
2587        ),
2588        (
2589            validate_chained_block_id::id(),
2590            "SIMD-0340: Validate chained block ID",
2591        ),
2592        (
2593            validator_admission_ticket::id(),
2594            "SIMD-0357: Alpenglow VAT implementation",
2595        ),
2596        (
2597            direct_account_pointers_in_program_input::id(),
2598            "SIMD-0449: Direct Account Pointers in Program Input",
2599        ),
2600        (
2601            upgrade_bpf_stake_program_to_v5::id(),
2602            "SIMD-0490: Upgrade BPF Stake Program to v5.0.0",
2603        ),
2604        (
2605            loader_v3_minimum_extend_program_size::id(),
2606            "SIMD-0431: Loader V3 minimum extend program size",
2607        ),
2608        (enable_sha512_syscall::id(), "SIMD-0512: SHA512 Syscall"),
2609        (
2610            relax_post_exec_min_balance_check::id(),
2611            "SIMD-0392: Relaxation of post-execution min_balance check",
2612        ),
2613        (enable_tx_v1::id(), "SIMD-0385: Transaction V1"),
2614        (
2615            define_ltds_fee_only_semantics::id(),
2616            "SIMD-0186 Amendment: Define fee-only semantics",
2617        ),
2618        (
2619            set_lamports_per_byte_to_6960::id(),
2620            "SIMD-0438: Reset lamports per byte to legacy value of 6960",
2621        ),
2622        (
2623            validate_chained_block_id_2::id(),
2624            "SIMD-340: Encompassing check for validate chained block ID",
2625        ),
2626        (
2627            upgrade_bpf_stake_program_to_v5_1::id(),
2628            "SIMD-0391: Upgrade BPF Stake Program to v5.1.0 (fixed-point warmup/cooldown)",
2629        ),
2630        (
2631            alpenglow_fast_leader_handover::id(),
2632            "SIMD-0326: Alpenglow fast leader handover",
2633        ),
2634        /*************** ADD NEW FEATURES HERE ***************/
2635        /***** ADD NEW FEATURE BOOL TO `FeatureSnapshot` *****/
2636    ]
2637    .iter()
2638    .cloned()
2639    .collect()
2640});
2641
2642/// Unique identifier of the current software's feature set
2643pub static ID: LazyLock<Hash> = LazyLock::new(|| {
2644    let mut hasher = Hasher::default();
2645    let mut feature_ids = FEATURE_NAMES.keys().collect::<Vec<_>>();
2646    feature_ids.sort();
2647    for feature in feature_ids {
2648        hasher.hash(feature.as_ref());
2649    }
2650    hasher.result()
2651});
2652
2653#[derive(Clone, PartialEq, Eq, Hash)]
2654pub struct FullInflationFeaturePair {
2655    pub vote_id: Pubkey, // Feature that grants the candidate the ability to enable full inflation
2656    pub enable_id: Pubkey, // Feature to enable full inflation by the candidate
2657}
2658
2659/// Set of feature pairs that once enabled will trigger full inflation
2660pub static FULL_INFLATION_FEATURE_PAIRS: LazyLock<AHashSet<FullInflationFeaturePair>> =
2661    LazyLock::new(|| {
2662        [FullInflationFeaturePair {
2663            vote_id: full_inflation::mainnet::certusone::vote::id(),
2664            enable_id: full_inflation::mainnet::certusone::enable::id(),
2665        }]
2666        .iter()
2667        .cloned()
2668        .collect()
2669    });
2670
2671#[cfg(test)]
2672mod test {
2673    use super::*;
2674
2675    #[test]
2676    fn test_full_inflation_features_enabled_devnet_and_testnet() {
2677        let mut feature_set = FeatureSet::default();
2678        assert!(feature_set.full_inflation_features_enabled().is_empty());
2679        feature_set
2680            .active
2681            .insert(full_inflation::devnet_and_testnet::id(), 42);
2682        assert_eq!(
2683            feature_set.full_inflation_features_enabled(),
2684            [full_inflation::devnet_and_testnet::id()]
2685                .iter()
2686                .cloned()
2687                .collect()
2688        );
2689    }
2690
2691    #[test]
2692    fn test_full_inflation_features_enabled() {
2693        // Normal sequence: vote_id then enable_id
2694        let mut feature_set = FeatureSet::default();
2695        assert!(feature_set.full_inflation_features_enabled().is_empty());
2696        feature_set
2697            .active
2698            .insert(full_inflation::mainnet::certusone::vote::id(), 42);
2699        assert!(feature_set.full_inflation_features_enabled().is_empty());
2700        feature_set
2701            .active
2702            .insert(full_inflation::mainnet::certusone::enable::id(), 42);
2703        assert_eq!(
2704            feature_set.full_inflation_features_enabled(),
2705            [full_inflation::mainnet::certusone::enable::id()]
2706                .iter()
2707                .cloned()
2708                .collect()
2709        );
2710
2711        // Backwards sequence: enable_id and then vote_id
2712        let mut feature_set = FeatureSet::default();
2713        assert!(feature_set.full_inflation_features_enabled().is_empty());
2714        feature_set
2715            .active
2716            .insert(full_inflation::mainnet::certusone::enable::id(), 42);
2717        assert!(feature_set.full_inflation_features_enabled().is_empty());
2718        feature_set
2719            .active
2720            .insert(full_inflation::mainnet::certusone::vote::id(), 42);
2721        assert_eq!(
2722            feature_set.full_inflation_features_enabled(),
2723            [full_inflation::mainnet::certusone::enable::id()]
2724                .iter()
2725                .cloned()
2726                .collect()
2727        );
2728    }
2729}