Skip to main content

agave_feature_set/
lib.rs

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