agave_feature_set/
lib.rs

1#![cfg_attr(feature = "frozen-abi", feature(min_specialization))]
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#[cfg_attr(feature = "frozen-abi", derive(solana_frozen_abi_macro::AbiExample))]
14#[derive(Debug, Clone, Eq, PartialEq)]
15pub struct FeatureSet {
16    active: AHashMap<Pubkey, u64>,
17    inactive: AHashSet<Pubkey>,
18}
19
20impl Default for FeatureSet {
21    fn default() -> Self {
22        Self {
23            // All features disabled
24            active: AHashMap::new(),
25            inactive: AHashSet::from_iter((*FEATURE_NAMES).keys().cloned()),
26        }
27    }
28}
29
30impl FeatureSet {
31    pub fn new(active: AHashMap<Pubkey, u64>, inactive: AHashSet<Pubkey>) -> Self {
32        Self { active, inactive }
33    }
34
35    pub fn active(&self) -> &AHashMap<Pubkey, u64> {
36        &self.active
37    }
38
39    pub fn active_mut(&mut self) -> &mut AHashMap<Pubkey, u64> {
40        &mut self.active
41    }
42
43    pub fn inactive(&self) -> &AHashSet<Pubkey> {
44        &self.inactive
45    }
46
47    pub fn inactive_mut(&mut self) -> &mut AHashSet<Pubkey> {
48        &mut self.inactive
49    }
50
51    pub fn is_active(&self, feature_id: &Pubkey) -> bool {
52        self.active.contains_key(feature_id)
53    }
54
55    pub fn activated_slot(&self, feature_id: &Pubkey) -> Option<u64> {
56        self.active.get(feature_id).copied()
57    }
58
59    /// Activate a feature
60    pub fn activate(&mut self, feature_id: &Pubkey, slot: u64) {
61        self.inactive.remove(feature_id);
62        self.active.insert(*feature_id, slot);
63    }
64
65    /// Deactivate a feature
66    pub fn deactivate(&mut self, feature_id: &Pubkey) {
67        self.active.remove(feature_id);
68        self.inactive.insert(*feature_id);
69    }
70
71    /// List of enabled features that trigger full inflation
72    pub fn full_inflation_features_enabled(&self) -> AHashSet<Pubkey> {
73        let mut hash_set = FULL_INFLATION_FEATURE_PAIRS
74            .iter()
75            .filter_map(|pair| {
76                if self.is_active(&pair.vote_id) && self.is_active(&pair.enable_id) {
77                    Some(pair.enable_id)
78                } else {
79                    None
80                }
81            })
82            .collect::<AHashSet<_>>();
83
84        if self.is_active(&full_inflation::devnet_and_testnet::id()) {
85            hash_set.insert(full_inflation::devnet_and_testnet::id());
86        }
87        hash_set
88    }
89
90    /// All features enabled, useful for testing
91    pub fn all_enabled() -> Self {
92        Self {
93            active: AHashMap::from_iter((*FEATURE_NAMES).keys().cloned().map(|key| (key, 0))),
94            inactive: AHashSet::new(),
95        }
96    }
97
98    pub fn new_warmup_cooldown_rate_epoch(&self, epoch_schedule: &EpochSchedule) -> Option<u64> {
99        self.activated_slot(&reduce_stake_warmup_cooldown::id())
100            .map(|slot| epoch_schedule.get_epoch(slot))
101    }
102
103    pub fn runtime_features(&self) -> SVMFeatureSet {
104        SVMFeatureSet {
105            move_precompile_verification_to_svm: self
106                .is_active(&move_precompile_verification_to_svm::id()),
107            stricter_abi_and_runtime_constraints: self
108                .is_active(&stricter_abi_and_runtime_constraints::id()),
109            enable_bpf_loader_set_authority_checked_ix: self
110                .is_active(&enable_bpf_loader_set_authority_checked_ix::id()),
111            enable_loader_v4: self.is_active(&enable_loader_v4::id()),
112            deplete_cu_meter_on_vm_failure: self.is_active(&deplete_cu_meter_on_vm_failure::id()),
113            abort_on_invalid_curve: self.is_active(&abort_on_invalid_curve::id()),
114            blake3_syscall_enabled: self.is_active(&blake3_syscall_enabled::id()),
115            curve25519_syscall_enabled: self.is_active(&curve25519_syscall_enabled::id()),
116            disable_deploy_of_alloc_free_syscall: self
117                .is_active(&disable_deploy_of_alloc_free_syscall::id()),
118            disable_fees_sysvar: self.is_active(&disable_fees_sysvar::id()),
119            disable_sbpf_v0_execution: self.is_active(&disable_sbpf_v0_execution::id()),
120            enable_alt_bn128_compression_syscall: self
121                .is_active(&enable_alt_bn128_compression_syscall::id()),
122            enable_alt_bn128_syscall: self.is_active(&enable_alt_bn128_syscall::id()),
123            enable_big_mod_exp_syscall: self.is_active(&enable_big_mod_exp_syscall::id()),
124            enable_get_epoch_stake_syscall: self.is_active(&enable_get_epoch_stake_syscall::id()),
125            enable_poseidon_syscall: self.is_active(&enable_poseidon_syscall::id()),
126            enable_sbpf_v1_deployment_and_execution: self
127                .is_active(&enable_sbpf_v1_deployment_and_execution::id()),
128            enable_sbpf_v2_deployment_and_execution: self
129                .is_active(&enable_sbpf_v2_deployment_and_execution::id()),
130            enable_sbpf_v3_deployment_and_execution: self
131                .is_active(&enable_sbpf_v3_deployment_and_execution::id()),
132            get_sysvar_syscall_enabled: self.is_active(&get_sysvar_syscall_enabled::id()),
133            last_restart_slot_sysvar: self.is_active(&last_restart_slot_sysvar::id()),
134            reenable_sbpf_v0_execution: self.is_active(&reenable_sbpf_v0_execution::id()),
135            remaining_compute_units_syscall_enabled: self
136                .is_active(&remaining_compute_units_syscall_enabled::id()),
137            remove_bpf_loader_incorrect_program_id: self
138                .is_active(&remove_bpf_loader_incorrect_program_id::id()),
139            move_stake_and_move_lamports_ixs: self
140                .is_active(&move_stake_and_move_lamports_ixs::id()),
141            stake_raise_minimum_delegation_to_1_sol: self
142                .is_active(&stake_raise_minimum_delegation_to_1_sol::id()),
143            deprecate_legacy_vote_ixs: self.is_active(&deprecate_legacy_vote_ixs::id()),
144            mask_out_rent_epoch_in_vm_serialization: self
145                .is_active(&mask_out_rent_epoch_in_vm_serialization::id()),
146            simplify_alt_bn128_syscall_error_codes: self
147                .is_active(&simplify_alt_bn128_syscall_error_codes::id()),
148            fix_alt_bn128_multiplication_input_length: self
149                .is_active(&fix_alt_bn128_multiplication_input_length::id()),
150            increase_tx_account_lock_limit: self.is_active(&increase_tx_account_lock_limit::id()),
151            enable_extend_program_checked: self.is_active(&enable_extend_program_checked::id()),
152            formalize_loaded_transaction_data_size: self
153                .is_active(&formalize_loaded_transaction_data_size::id()),
154            disable_zk_elgamal_proof_program: self
155                .is_active(&disable_zk_elgamal_proof_program::id()),
156            reenable_zk_elgamal_proof_program: self
157                .is_active(&reenable_zk_elgamal_proof_program::id()),
158            raise_cpi_nesting_limit_to_8: self.is_active(&raise_cpi_nesting_limit_to_8::id()),
159        }
160    }
161}
162
163pub mod deprecate_rewards_sysvar {
164    solana_pubkey::declare_id!("GaBtBJvmS4Arjj5W1NmFcyvPjsHN38UGYDq2MDwbs9Qu");
165}
166
167pub mod pico_inflation {
168    solana_pubkey::declare_id!("4RWNif6C2WCNiKVW7otP4G7dkmkHGyKQWRpuZ1pxKU5m");
169}
170
171pub mod full_inflation {
172    pub mod devnet_and_testnet {
173        solana_pubkey::declare_id!("DT4n6ABDqs6w4bnfwrXT9rsprcPf6cdDga1egctaPkLC");
174    }
175
176    pub mod mainnet {
177        pub mod certusone {
178            pub mod vote {
179                solana_pubkey::declare_id!("BzBBveUDymEYoYzcMWNQCx3cd4jQs7puaVFHLtsbB6fm");
180            }
181            pub mod enable {
182                solana_pubkey::declare_id!("7XRJcS5Ud5vxGB54JbK9N2vBZVwnwdBNeJW1ibRgD9gx");
183            }
184        }
185    }
186}
187
188pub mod secp256k1_program_enabled {
189    solana_pubkey::declare_id!("E3PHP7w8kB7np3CTQ1qQ2tW3KCtjRSXBQgW9vM2mWv2Y");
190}
191
192pub mod spl_token_v2_multisig_fix {
193    solana_pubkey::declare_id!("E5JiFDQCwyC6QfT9REFyMpfK2mHcmv1GUDySU1Ue7TYv");
194}
195
196pub mod no_overflow_rent_distribution {
197    solana_pubkey::declare_id!("4kpdyrcj5jS47CZb2oJGfVxjYbsMm2Kx97gFyZrxxwXz");
198}
199
200pub mod filter_stake_delegation_accounts {
201    solana_pubkey::declare_id!("GE7fRxmW46K6EmCD9AMZSbnaJ2e3LfqCZzdHi9hmYAgi");
202}
203
204pub mod require_custodian_for_locked_stake_authorize {
205    solana_pubkey::declare_id!("D4jsDcXaqdW8tDAWn8H4R25Cdns2YwLneujSL1zvjW6R");
206}
207
208pub mod spl_token_v2_self_transfer_fix {
209    solana_pubkey::declare_id!("BL99GYhdjjcv6ys22C9wPgn2aTVERDbPHHo4NbS3hgp7");
210}
211
212pub mod warp_timestamp_again {
213    solana_pubkey::declare_id!("GvDsGDkH5gyzwpDhxNixx8vtx1kwYHH13RiNAPw27zXb");
214}
215
216pub mod check_init_vote_data {
217    solana_pubkey::declare_id!("3ccR6QpxGYsAbWyfevEtBNGfWV4xBffxRj2tD6A9i39F");
218}
219
220pub mod secp256k1_recover_syscall_enabled {
221    solana_pubkey::declare_id!("6RvdSWHh8oh72Dp7wMTS2DBkf3fRPtChfNrAo3cZZoXJ");
222}
223
224pub mod system_transfer_zero_check {
225    solana_pubkey::declare_id!("BrTR9hzw4WBGFP65AJMbpAo64DcA3U6jdPSga9fMV5cS");
226}
227
228pub mod blake3_syscall_enabled {
229    solana_pubkey::declare_id!("HTW2pSyErTj4BV6KBM9NZ9VBUJVxt7sacNWcf76wtzb3");
230}
231
232pub mod dedupe_config_program_signers {
233    solana_pubkey::declare_id!("8kEuAshXLsgkUEdcFVLqrjCGGHVWFW99ZZpxvAzzMtBp");
234}
235
236pub mod verify_tx_signatures_len {
237    solana_pubkey::declare_id!("EVW9B5xD9FFK7vw1SBARwMA4s5eRo5eKJdKpsBikzKBz");
238}
239
240pub mod vote_stake_checked_instructions {
241    solana_pubkey::declare_id!("BcWknVcgvonN8sL4HE4XFuEVgfcee5MwxWPAgP6ZV89X");
242}
243
244pub mod rent_for_sysvars {
245    solana_pubkey::declare_id!("BKCPBQQBZqggVnFso5nQ8rQ4RwwogYwjuUt9biBjxwNF");
246}
247
248pub mod libsecp256k1_0_5_upgrade_enabled {
249    solana_pubkey::declare_id!("DhsYfRjxfnh2g7HKJYSzT79r74Afa1wbHkAgHndrA1oy");
250}
251
252pub mod tx_wide_compute_cap {
253    solana_pubkey::declare_id!("5ekBxc8itEnPv4NzGJtr8BVVQLNMQuLMNQQj7pHoLNZ9");
254}
255
256pub mod spl_token_v2_set_authority_fix {
257    solana_pubkey::declare_id!("FToKNBYyiF4ky9s8WsmLBXHCht17Ek7RXaLZGHzzQhJ1");
258}
259
260pub mod merge_nonce_error_into_system_error {
261    solana_pubkey::declare_id!("21AWDosvp3pBamFW91KB35pNoaoZVTM7ess8nr2nt53B");
262}
263
264pub mod disable_fees_sysvar {
265    solana_pubkey::declare_id!("JAN1trEUEtZjgXYzNBYHU9DYd7GnThhXfFP7SzPXkPsG");
266}
267
268pub mod stake_merge_with_unmatched_credits_observed {
269    solana_pubkey::declare_id!("meRgp4ArRPhD3KtCY9c5yAf2med7mBLsjKTPeVUHqBL");
270}
271
272pub mod zk_token_sdk_enabled {
273    solana_pubkey::declare_id!("zk1snxsc6Fh3wsGNbbHAJNHiJoYgF29mMnTSusGx5EJ");
274}
275
276pub mod curve25519_syscall_enabled {
277    solana_pubkey::declare_id!("7rcw5UtqgDTBBv2EcynNfYckgdAaH1MAsCjKgXMkN7Ri");
278}
279
280pub mod curve25519_restrict_msm_length {
281    solana_pubkey::declare_id!("eca6zf6JJRjQsYYPkBHF3N32MTzur4n2WL4QiiacPCL");
282}
283
284pub mod versioned_tx_message_enabled {
285    solana_pubkey::declare_id!("3KZZ6Ks1885aGBQ45fwRcPXVBCtzUvxhUTkwKMR41Tca");
286}
287
288pub mod libsecp256k1_fail_on_bad_count {
289    solana_pubkey::declare_id!("8aXvSuopd1PUj7UhehfXJRg6619RHp8ZvwTyyJHdUYsj");
290}
291
292pub mod libsecp256k1_fail_on_bad_count2 {
293    solana_pubkey::declare_id!("54KAoNiUERNoWWUhTWWwXgym94gzoXFVnHyQwPA18V9A");
294}
295
296pub mod instructions_sysvar_owned_by_sysvar {
297    solana_pubkey::declare_id!("H3kBSaKdeiUsyHmeHqjJYNc27jesXZ6zWj3zWkowQbkV");
298}
299
300pub mod stake_program_advance_activating_credits_observed {
301    solana_pubkey::declare_id!("SAdVFw3RZvzbo6DvySbSdBnHN4gkzSTH9dSxesyKKPj");
302}
303
304pub mod credits_auto_rewind {
305    solana_pubkey::declare_id!("BUS12ciZ5gCoFafUHWW8qaFMMtwFQGVxjsDheWLdqBE2");
306}
307
308pub mod demote_program_write_locks {
309    solana_pubkey::declare_id!("3E3jV7v9VcdJL8iYZUMax9DiDno8j7EWUVbhm9RtShj2");
310}
311
312pub mod ed25519_program_enabled {
313    solana_pubkey::declare_id!("6ppMXNYLhVd7GcsZ5uV11wQEW7spppiMVfqQv5SXhDpX");
314}
315
316pub mod return_data_syscall_enabled {
317    solana_pubkey::declare_id!("DwScAzPUjuv65TMbDnFY7AgwmotzWy3xpEJMXM3hZFaB");
318}
319
320pub mod reduce_required_deploy_balance {
321    solana_pubkey::declare_id!("EBeznQDjcPG8491sFsKZYBi5S5jTVXMpAKNDJMQPS2kq");
322}
323
324pub mod sol_log_data_syscall_enabled {
325    solana_pubkey::declare_id!("6uaHcKPGUy4J7emLBgUTeufhJdiwhngW6a1R9B7c2ob9");
326}
327
328pub mod stakes_remove_delegation_if_inactive {
329    solana_pubkey::declare_id!("HFpdDDNQjvcXnXKec697HDDsyk6tFoWS2o8fkxuhQZpL");
330}
331
332pub mod do_support_realloc {
333    solana_pubkey::declare_id!("75m6ysz33AfLA5DDEzWM1obBrnPQRSsdVQ2nRmc8Vuu1");
334}
335
336pub mod prevent_calling_precompiles_as_programs {
337    solana_pubkey::declare_id!("4ApgRX3ud6p7LNMJmsuaAcZY5HWctGPr5obAsjB3A54d");
338}
339
340pub mod optimize_epoch_boundary_updates {
341    solana_pubkey::declare_id!("265hPS8k8xJ37ot82KEgjRunsUp5w4n4Q4VwwiN9i9ps");
342}
343
344pub mod remove_native_loader {
345    solana_pubkey::declare_id!("HTTgmruMYRZEntyL3EdCDdnS6e4D5wRq1FA7kQsb66qq");
346}
347
348pub mod send_to_tpu_vote_port {
349    solana_pubkey::declare_id!("C5fh68nJ7uyKAuYZg2x9sEQ5YrVf3dkW6oojNBSc3Jvo");
350}
351
352pub mod requestable_heap_size {
353    solana_pubkey::declare_id!("CCu4boMmfLuqcmfTLPHQiUo22ZdUsXjgzPAURYaWt1Bw");
354}
355
356pub mod disable_fee_calculator {
357    solana_pubkey::declare_id!("2jXx2yDmGysmBKfKYNgLj2DQyAQv6mMk2BPh4eSbyB4H");
358}
359
360pub mod add_compute_budget_program {
361    solana_pubkey::declare_id!("4d5AKtxoh93Dwm1vHXUU3iRATuMndx1c431KgT2td52r");
362}
363
364pub mod nonce_must_be_writable {
365    solana_pubkey::declare_id!("BiCU7M5w8ZCMykVSyhZ7Q3m2SWoR2qrEQ86ERcDX77ME");
366}
367
368pub mod spl_token_v3_3_0_release {
369    solana_pubkey::declare_id!("Ftok2jhqAqxUWEiCVRrfRs9DPppWP8cgTB7NQNKL88mS");
370}
371
372pub mod leave_nonce_on_success {
373    solana_pubkey::declare_id!("E8MkiWZNNPGU6n55jkGzyj8ghUmjCHRmDFdYYFYHxWhQ");
374}
375
376pub mod reject_empty_instruction_without_program {
377    solana_pubkey::declare_id!("9kdtFSrXHQg3hKkbXkQ6trJ3Ja1xpJ22CTFSNAciEwmL");
378}
379
380pub mod fixed_memcpy_nonoverlapping_check {
381    solana_pubkey::declare_id!("36PRUK2Dz6HWYdG9SpjeAsF5F3KxnFCakA2BZMbtMhSb");
382}
383
384pub mod reject_non_rent_exempt_vote_withdraws {
385    solana_pubkey::declare_id!("7txXZZD6Um59YoLMF7XUNimbMjsqsWhc7g2EniiTrmp1");
386}
387
388pub mod evict_invalid_stakes_cache_entries {
389    solana_pubkey::declare_id!("EMX9Q7TVFAmQ9V1CggAkhMzhXSg8ECp7fHrWQX2G1chf");
390}
391
392pub mod allow_votes_to_directly_update_vote_state {
393    solana_pubkey::declare_id!("Ff8b1fBeB86q8cjq47ZhsQLgv5EkHu3G1C99zjUfAzrq");
394}
395
396pub mod max_tx_account_locks {
397    solana_pubkey::declare_id!("CBkDroRDqm8HwHe6ak9cguPjUomrASEkfmxEaZ5CNNxz");
398}
399
400pub mod require_rent_exempt_accounts {
401    solana_pubkey::declare_id!("BkFDxiJQWZXGTZaJQxH7wVEHkAmwCgSEVkrvswFfRJPD");
402}
403
404pub mod filter_votes_outside_slot_hashes {
405    solana_pubkey::declare_id!("3gtZPqvPpsbXZVCx6hceMfWxtsmrjMzmg8C7PLKSxS2d");
406}
407
408pub mod update_syscall_base_costs {
409    solana_pubkey::declare_id!("2h63t332mGCCsWK2nqqqHhN4U9ayyqhLVFvczznHDoTZ");
410}
411
412pub mod stake_deactivate_delinquent_instruction {
413    solana_pubkey::declare_id!("437r62HoAdUb63amq3D7ENnBLDhHT2xY8eFkLJYVKK4x");
414}
415
416pub mod vote_withdraw_authority_may_change_authorized_voter {
417    solana_pubkey::declare_id!("AVZS3ZsN4gi6Rkx2QUibYuSJG3S6QHib7xCYhG6vGJxU");
418}
419
420pub mod spl_associated_token_account_v1_0_4 {
421    solana_pubkey::declare_id!("FaTa4SpiaSNH44PGC4z8bnGVTkSRYaWvrBs3KTu8XQQq");
422}
423
424pub mod reject_vote_account_close_unless_zero_credit_epoch {
425    solana_pubkey::declare_id!("ALBk3EWdeAg2WAGf6GPDUf1nynyNqCdEVmgouG7rpuCj");
426}
427
428pub mod add_get_processed_sibling_instruction_syscall {
429    solana_pubkey::declare_id!("CFK1hRCNy8JJuAAY8Pb2GjLFNdCThS2qwZNe3izzBMgn");
430}
431
432pub mod bank_transaction_count_fix {
433    solana_pubkey::declare_id!("Vo5siZ442SaZBKPXNocthiXysNviW4UYPwRFggmbgAp");
434}
435
436pub mod disable_bpf_deprecated_load_instructions {
437    solana_pubkey::declare_id!("3XgNukcZWf9o3HdA3fpJbm94XFc4qpvTXc8h1wxYwiPi");
438}
439
440pub mod disable_bpf_unresolved_symbols_at_runtime {
441    solana_pubkey::declare_id!("4yuaYAj2jGMGTh1sSmi4G2eFscsDq8qjugJXZoBN6YEa");
442}
443
444pub mod record_instruction_in_transaction_context_push {
445    solana_pubkey::declare_id!("3aJdcZqxoLpSBxgeYGjPwaYS1zzcByxUDqJkbzWAH1Zb");
446}
447
448pub mod syscall_saturated_math {
449    solana_pubkey::declare_id!("HyrbKftCdJ5CrUfEti6x26Cj7rZLNe32weugk7tLcWb8");
450}
451
452pub mod check_physical_overlapping {
453    solana_pubkey::declare_id!("nWBqjr3gpETbiaVj3CBJ3HFC5TMdnJDGt21hnvSTvVZ");
454}
455
456pub mod limit_secp256k1_recovery_id {
457    solana_pubkey::declare_id!("7g9EUwj4j7CS21Yx1wvgWLjSZeh5aPq8x9kpoPwXM8n8");
458}
459
460pub mod disable_deprecated_loader {
461    solana_pubkey::declare_id!("GTUMCZ8LTNxVfxdrw7ZsDFTxXb7TutYkzJnFwinpE6dg");
462}
463
464pub mod check_slice_translation_size {
465    solana_pubkey::declare_id!("GmC19j9qLn2RFk5NduX6QXaDhVpGncVVBzyM8e9WMz2F");
466}
467
468pub mod stake_split_uses_rent_sysvar {
469    solana_pubkey::declare_id!("FQnc7U4koHqWgRvFaBJjZnV8VPg6L6wWK33yJeDp4yvV");
470}
471
472pub mod add_get_minimum_delegation_instruction_to_stake_program {
473    solana_pubkey::declare_id!("St8k9dVXP97xT6faW24YmRSYConLbhsMJA4TJTBLmMT");
474}
475
476pub mod error_on_syscall_bpf_function_hash_collisions {
477    solana_pubkey::declare_id!("8199Q2gMD2kwgfopK5qqVWuDbegLgpuFUFHCcUJQDN8b");
478}
479
480pub mod reject_callx_r10 {
481    solana_pubkey::declare_id!("3NKRSwpySNwD3TvP5pHnRmkAQRsdkXWRr1WaQh8p4PWX");
482}
483
484pub mod drop_redundant_turbine_path {
485    solana_pubkey::declare_id!("4Di3y24QFLt5QEUPZtbnjyfQKfm6ZMTfa6Dw1psfoMKU");
486}
487
488pub mod executables_incur_cpi_data_cost {
489    solana_pubkey::declare_id!("7GUcYgq4tVtaqNCKT3dho9r4665Qp5TxCZ27Qgjx3829");
490}
491
492pub mod fix_recent_blockhashes {
493    solana_pubkey::declare_id!("6iyggb5MTcsvdcugX7bEKbHV8c6jdLbpHwkncrgLMhfo");
494}
495
496pub mod update_rewards_from_cached_accounts {
497    solana_pubkey::declare_id!("28s7i3htzhahXQKqmS2ExzbEoUypg9krwvtK2M9UWXh9");
498}
499
500pub mod partitioned_epoch_rewards_superfeature {
501    solana_pubkey::declare_id!("PERzQrt5gBD1XEe2c9XdFWqwgHY3mr7cYWbm5V772V8");
502}
503
504pub mod spl_token_v3_4_0 {
505    solana_pubkey::declare_id!("Ftok4njE8b7tDffYkC5bAbCaQv5sL6jispYrprzatUwN");
506}
507
508pub mod spl_associated_token_account_v1_1_0 {
509    solana_pubkey::declare_id!("FaTa17gVKoqbh38HcfiQonPsAaQViyDCCSg71AubYZw8");
510}
511
512pub mod default_units_per_instruction {
513    solana_pubkey::declare_id!("J2QdYx8crLbTVK8nur1jeLsmc3krDbfjoxoea2V1Uy5Q");
514}
515
516pub mod stake_allow_zero_undelegated_amount {
517    solana_pubkey::declare_id!("sTKz343FM8mqtyGvYWvbLpTThw3ixRM4Xk8QvZ985mw");
518}
519
520pub mod require_static_program_ids_in_transaction {
521    solana_pubkey::declare_id!("8FdwgyHFEjhAdjWfV2vfqk7wA1g9X3fQpKH7SBpEv3kC");
522}
523
524pub mod stake_raise_minimum_delegation_to_1_sol {
525    // This is a feature-proposal *feature id*.  The feature keypair address is `GQXzC7YiSNkje6FFUk6sc2p53XRvKoaZ9VMktYzUMnpL`.
526    solana_pubkey::declare_id!("9onWzzvCzNC2jfhxxeqRgs5q7nFAAKpCUvkj6T6GJK9i");
527}
528
529pub mod stake_minimum_delegation_for_rewards {
530    solana_pubkey::declare_id!("G6ANXD6ptCSyNd9znZm7j4dEczAJCfx7Cy43oBx3rKHJ");
531}
532
533pub mod add_set_compute_unit_price_ix {
534    solana_pubkey::declare_id!("98std1NSHqXi9WYvFShfVepRdCoq1qvsp8fsR2XZtG8g");
535}
536
537pub mod disable_deploy_of_alloc_free_syscall {
538    solana_pubkey::declare_id!("79HWsX9rpnnJBPcdNURVqygpMAfxdrAirzAGAVmf92im");
539}
540
541pub mod include_account_index_in_rent_error {
542    solana_pubkey::declare_id!("2R72wpcQ7qV7aTJWUumdn8u5wmmTyXbK7qzEy7YSAgyY");
543}
544
545pub mod add_shred_type_to_shred_seed {
546    solana_pubkey::declare_id!("Ds87KVeqhbv7Jw8W6avsS1mqz3Mw5J3pRTpPoDQ2QdiJ");
547}
548
549pub mod warp_timestamp_with_a_vengeance {
550    solana_pubkey::declare_id!("3BX6SBeEBibHaVQXywdkcgyUk6evfYZkHdztXiDtEpFS");
551}
552
553pub mod separate_nonce_from_blockhash {
554    solana_pubkey::declare_id!("Gea3ZkK2N4pHuVZVxWcnAtS6UEDdyumdYt4pFcKjA3ar");
555}
556
557pub mod enable_durable_nonce {
558    solana_pubkey::declare_id!("4EJQtF2pkRyawwcTVfQutzq4Sa5hRhibF6QAK1QXhtEX");
559}
560
561pub mod vote_state_update_credit_per_dequeue {
562    solana_pubkey::declare_id!("CveezY6FDLVBToHDcvJRmtMouqzsmj4UXYh5ths5G5Uv");
563}
564
565pub mod quick_bail_on_panic {
566    solana_pubkey::declare_id!("DpJREPyuMZ5nDfU6H3WTqSqUFSXAfw8u7xqmWtEwJDcP");
567}
568
569pub mod nonce_must_be_authorized {
570    solana_pubkey::declare_id!("HxrEu1gXuH7iD3Puua1ohd5n4iUKJyFNtNxk9DVJkvgr");
571}
572
573pub mod nonce_must_be_advanceable {
574    solana_pubkey::declare_id!("3u3Er5Vc2jVcwz4xr2GJeSAXT3fAj6ADHZ4BJMZiScFd");
575}
576
577pub mod vote_authorize_with_seed {
578    solana_pubkey::declare_id!("6tRxEYKuy2L5nnv5bgn7iT28MxUbYxp5h7F3Ncf1exrT");
579}
580
581pub mod preserve_rent_epoch_for_rent_exempt_accounts {
582    solana_pubkey::declare_id!("HH3MUYReL2BvqqA3oEcAa7txju5GY6G4nxJ51zvsEjEZ");
583}
584
585pub mod enable_bpf_loader_extend_program_ix {
586    solana_pubkey::declare_id!("8Zs9W7D9MpSEtUWSQdGniZk2cNmV22y6FLJwCx53asme");
587}
588
589pub mod enable_early_verification_of_account_modifications {
590    solana_pubkey::declare_id!("7Vced912WrRnfjaiKRiNBcbuFw7RrnLv3E3z95Y4GTNc");
591}
592
593pub mod skip_rent_rewrites {
594    solana_pubkey::declare_id!("CGB2jM8pwZkeeiXQ66kBMyBR6Np61mggL7XUsmLjVcrw");
595}
596
597pub mod prevent_crediting_accounts_that_end_rent_paying {
598    solana_pubkey::declare_id!("812kqX67odAp5NFwM8D2N24cku7WTm9CHUTFUXaDkWPn");
599}
600
601pub mod cap_bpf_program_instruction_accounts {
602    solana_pubkey::declare_id!("9k5ijzTbYPtjzu8wj2ErH9v45xecHzQ1x4PMYMMxFgdM");
603}
604
605pub mod loosen_cpi_size_restriction {
606    solana_pubkey::declare_id!("GDH5TVdbTPUpRnXaRyQqiKUa7uZAbZ28Q2N9bhbKoMLm");
607}
608
609pub mod use_default_units_in_fee_calculation {
610    solana_pubkey::declare_id!("8sKQrMQoUHtQSUP83SPG4ta2JDjSAiWs7t5aJ9uEd6To");
611}
612
613pub mod compact_vote_state_updates {
614    solana_pubkey::declare_id!("86HpNqzutEZwLcPxS6EHDcMNYWk6ikhteg9un7Y2PBKE");
615}
616
617pub mod incremental_snapshot_only_incremental_hash_calculation {
618    solana_pubkey::declare_id!("25vqsfjk7Nv1prsQJmA4Xu1bN61s8LXCBGUPp8Rfy1UF");
619}
620
621pub mod disable_cpi_setting_executable_and_rent_epoch {
622    solana_pubkey::declare_id!("B9cdB55u4jQsDNsdTK525yE9dmSc5Ga7YBaBrDFvEhM9");
623}
624
625pub mod on_load_preserve_rent_epoch_for_rent_exempt_accounts {
626    solana_pubkey::declare_id!("CpkdQmspsaZZ8FVAouQTtTWZkc8eeQ7V3uj7dWz543rZ");
627}
628
629pub mod account_hash_ignore_slot {
630    solana_pubkey::declare_id!("SVn36yVApPLYsa8koK3qUcy14zXDnqkNYWyUh1f4oK1");
631}
632
633pub mod set_exempt_rent_epoch_max {
634    solana_pubkey::declare_id!("5wAGiy15X1Jb2hkHnPDCM8oB9V42VNA9ftNVFK84dEgv");
635}
636
637pub mod relax_authority_signer_check_for_lookup_table_creation {
638    solana_pubkey::declare_id!("FKAcEvNgSY79RpqsPNUV5gDyumopH4cEHqUxyfm8b8Ap");
639}
640
641pub mod stop_sibling_instruction_search_at_parent {
642    solana_pubkey::declare_id!("EYVpEP7uzH1CoXzbD6PubGhYmnxRXPeq3PPsm1ba3gpo");
643}
644
645pub mod vote_state_update_root_fix {
646    solana_pubkey::declare_id!("G74BkWBzmsByZ1kxHy44H3wjwp5hp7JbrGRuDpco22tY");
647}
648
649pub mod cap_accounts_data_allocations_per_transaction {
650    solana_pubkey::declare_id!("9gxu85LYRAcZL38We8MYJ4A9AwgBBPtVBAqebMcT1241");
651}
652
653pub mod epoch_accounts_hash {
654    solana_pubkey::declare_id!("5GpmAKxaGsWWbPp4bNXFLJxZVvG92ctxf7jQnzTQjF3n");
655}
656
657pub mod remove_deprecated_request_unit_ix {
658    solana_pubkey::declare_id!("EfhYd3SafzGT472tYQDUc4dPd2xdEfKs5fwkowUgVt4W");
659}
660
661pub mod disable_rehash_for_rent_epoch {
662    solana_pubkey::declare_id!("DTVTkmw3JSofd8CJVJte8PXEbxNQ2yZijvVr3pe2APPj");
663}
664
665pub mod increase_tx_account_lock_limit {
666    solana_pubkey::declare_id!("9LZdXeKGeBV6hRLdxS1rHbHoEUsKqesCC2ZAPTPKJAbK");
667}
668
669pub mod limit_max_instruction_trace_length {
670    solana_pubkey::declare_id!("GQALDaC48fEhZGWRj9iL5Q889emJKcj3aCvHF7VCbbF4");
671}
672
673pub mod check_syscall_outputs_do_not_overlap {
674    solana_pubkey::declare_id!("3uRVPBpyEJRo1emLCrq38eLRFGcu6uKSpUXqGvU8T7SZ");
675}
676
677pub mod enable_bpf_loader_set_authority_checked_ix {
678    solana_pubkey::declare_id!("5x3825XS7M2A3Ekbn5VGGkvFoAg5qrRWkTrY4bARP1GL");
679}
680
681pub mod enable_alt_bn128_syscall {
682    solana_pubkey::declare_id!("A16q37opZdQMCbe5qJ6xpBB9usykfv8jZaMkxvZQi4GJ");
683}
684
685pub mod simplify_alt_bn128_syscall_error_codes {
686    solana_pubkey::declare_id!("JDn5q3GBeqzvUa7z67BbmVHVdE3EbUAjvFep3weR3jxX");
687}
688
689pub mod enable_alt_bn128_compression_syscall {
690    solana_pubkey::declare_id!("EJJewYSddEEtSZHiqugnvhQHiWyZKjkFDQASd7oKSagn");
691}
692
693pub mod fix_alt_bn128_multiplication_input_length {
694    solana_pubkey::declare_id!("bn2puAyxUx6JUabAxYdKdJ5QHbNNmKw8dCGuGCyRrFN");
695}
696
697pub mod enable_program_redeployment_cooldown {
698    solana_pubkey::declare_id!("J4HFT8usBxpcF63y46t1upYobJgChmKyZPm5uTBRg25Z");
699}
700
701pub mod commission_updates_only_allowed_in_first_half_of_epoch {
702    solana_pubkey::declare_id!("noRuG2kzACwgaY7TVmLRnUNPLKNVQE1fb7X55YWBehp");
703}
704
705pub mod enable_turbine_fanout_experiments {
706    solana_pubkey::declare_id!("D31EFnLgdiysi84Woo3of4JMu7VmasUS3Z7j9HYXCeLY");
707}
708
709pub mod disable_turbine_fanout_experiments {
710    solana_pubkey::declare_id!("turbnbNRp22nwZCmgVVXFSshz7H7V23zMzQgA46YpmQ");
711}
712
713pub mod move_serialized_len_ptr_in_cpi {
714    solana_pubkey::declare_id!("74CoWuBmt3rUVUrCb2JiSTvh6nXyBWUsK4SaMj3CtE3T");
715}
716
717pub mod update_hashes_per_tick {
718    solana_pubkey::declare_id!("3uFHb9oKdGfgZGJK9EHaAXN4USvnQtAFC13Fh5gGFS5B");
719}
720
721pub mod enable_big_mod_exp_syscall {
722    solana_pubkey::declare_id!("EBq48m8irRKuE7ZnMTLvLg2UuGSqhe8s8oMqnmja1fJw");
723}
724
725pub mod disable_builtin_loader_ownership_chains {
726    solana_pubkey::declare_id!("4UDcAfQ6EcA6bdcadkeHpkarkhZGJ7Bpq7wTAiRMjkoi");
727}
728
729pub mod cap_transaction_accounts_data_size {
730    solana_pubkey::declare_id!("DdLwVYuvDz26JohmgSbA7mjpJFgX5zP2dkp8qsF2C33V");
731}
732
733pub mod remove_congestion_multiplier_from_fee_calculation {
734    solana_pubkey::declare_id!("A8xyMHZovGXFkorFqEmVH2PKGLiBip5JD7jt4zsUWo4H");
735}
736
737pub mod enable_request_heap_frame_ix {
738    solana_pubkey::declare_id!("Hr1nUA9b7NJ6eChS26o7Vi8gYYDDwWD3YeBfzJkTbU86");
739}
740
741pub mod prevent_rent_paying_rent_recipients {
742    solana_pubkey::declare_id!("Fab5oP3DmsLYCiQZXdjyqT3ukFFPrsmqhXU4WU1AWVVF");
743}
744
745pub mod delay_visibility_of_program_deployment {
746    solana_pubkey::declare_id!("GmuBvtFb2aHfSfMXpuFeWZGHyDeCLPS79s48fmCWCfM5");
747}
748
749pub mod apply_cost_tracker_during_replay {
750    solana_pubkey::declare_id!("2ry7ygxiYURULZCrypHhveanvP5tzZ4toRwVp89oCNSj");
751}
752
753pub mod stricter_abi_and_runtime_constraints {
754    solana_pubkey::declare_id!("C37iaPi6VE4CZDueU1vL8y6pGp5i8amAbEsF31xzz723");
755}
756
757pub mod add_set_tx_loaded_accounts_data_size_instruction {
758    solana_pubkey::declare_id!("G6vbf1UBok8MWb8m25ex86aoQHeKTzDKzuZADHkShqm6");
759}
760
761pub mod switch_to_new_elf_parser {
762    solana_pubkey::declare_id!("Cdkc8PPTeTNUPoZEfCY5AyetUrEdkZtNPMgz58nqyaHD");
763}
764
765pub mod round_up_heap_size {
766    solana_pubkey::declare_id!("CE2et8pqgyQMP2mQRg3CgvX8nJBKUArMu3wfiQiQKY1y");
767}
768
769pub mod remove_bpf_loader_incorrect_program_id {
770    solana_pubkey::declare_id!("2HmTkCj9tXuPE4ueHzdD7jPeMf9JGCoZh5AsyoATiWEe");
771}
772
773pub mod include_loaded_accounts_data_size_in_fee_calculation {
774    solana_pubkey::declare_id!("EaQpmC6GtRssaZ3PCUM5YksGqUdMLeZ46BQXYtHYakDS");
775}
776
777pub mod native_programs_consume_cu {
778    solana_pubkey::declare_id!("8pgXCMNXC8qyEFypuwpXyRxLXZdpM4Qo72gJ6k87A6wL");
779}
780
781pub mod simplify_writable_program_account_check {
782    solana_pubkey::declare_id!("5ZCcFAzJ1zsFKe1KSZa9K92jhx7gkcKj97ci2DBo1vwj");
783}
784
785pub mod stop_truncating_strings_in_syscalls {
786    solana_pubkey::declare_id!("16FMCmgLzCNNz6eTwGanbyN2ZxvTBSLuQ6DZhgeMshg");
787}
788
789pub mod clean_up_delegation_errors {
790    solana_pubkey::declare_id!("Bj2jmUsM2iRhfdLLDSTkhM5UQRQvQHm57HSmPibPtEyu");
791}
792
793pub mod vote_state_add_vote_latency {
794    solana_pubkey::declare_id!("7axKe5BTYBDD87ftzWbk5DfzWMGyRvqmWTduuo22Yaqy");
795}
796
797pub mod checked_arithmetic_in_fee_validation {
798    solana_pubkey::declare_id!("5Pecy6ie6XGm22pc9d4P9W5c31BugcFBuy6hsP2zkETv");
799}
800
801pub mod last_restart_slot_sysvar {
802    solana_pubkey::declare_id!("HooKD5NC9QNxk25QuzCssB8ecrEzGt6eXEPBUxWp1LaR");
803}
804
805pub mod reduce_stake_warmup_cooldown {
806    solana_pubkey::declare_id!("GwtDQBghCTBgmX2cpEGNPxTEBUTQRaDMGTr5qychdGMj");
807}
808
809pub mod revise_turbine_epoch_stakes {
810    solana_pubkey::declare_id!("BTWmtJC8U5ZLMbBUUA1k6As62sYjPEjAiNAT55xYGdJU");
811}
812
813pub mod enable_poseidon_syscall {
814    solana_pubkey::declare_id!("FL9RsQA6TVUoh5xJQ9d936RHSebA1NLQqe3Zv9sXZRpr");
815}
816
817pub mod timely_vote_credits {
818    solana_pubkey::declare_id!("tvcF6b1TRz353zKuhBjinZkKzjmihXmBAHJdjNYw1sQ");
819}
820
821pub mod remaining_compute_units_syscall_enabled {
822    solana_pubkey::declare_id!("5TuppMutoyzhUSfuYdhgzD47F92GL1g89KpCZQKqedxP");
823}
824
825pub mod enable_loader_v4 {
826    solana_pubkey::declare_id!("2aQJYqER2aKyb3cZw22v4SL2xMX7vwXBRWfvS4pTrtED");
827}
828
829pub mod require_rent_exempt_split_destination {
830    solana_pubkey::declare_id!("D2aip4BBr8NPWtU9vLrwrBvbuaQ8w1zV38zFLxx4pfBV");
831}
832
833pub mod better_error_codes_for_tx_lamport_check {
834    solana_pubkey::declare_id!("Ffswd3egL3tccB6Rv3XY6oqfdzn913vUcjCSnpvCKpfx");
835}
836
837pub mod update_hashes_per_tick2 {
838    solana_pubkey::declare_id!("EWme9uFqfy1ikK1jhJs8fM5hxWnK336QJpbscNtizkTU");
839}
840
841pub mod update_hashes_per_tick3 {
842    solana_pubkey::declare_id!("8C8MCtsab5SsfammbzvYz65HHauuUYdbY2DZ4sznH6h5");
843}
844
845pub mod update_hashes_per_tick4 {
846    solana_pubkey::declare_id!("8We4E7DPwF2WfAN8tRTtWQNhi98B99Qpuj7JoZ3Aikgg");
847}
848
849pub mod update_hashes_per_tick5 {
850    solana_pubkey::declare_id!("BsKLKAn1WM4HVhPRDsjosmqSg2J8Tq5xP2s2daDS6Ni4");
851}
852
853pub mod update_hashes_per_tick6 {
854    solana_pubkey::declare_id!("FKu1qYwLQSiehz644H6Si65U5ZQ2cp9GxsyFUfYcuADv");
855}
856
857pub mod validate_fee_collector_account {
858    solana_pubkey::declare_id!("prpFrMtgNmzaNzkPJg9o753fVvbHKqNrNTm76foJ2wm");
859}
860
861pub mod disable_rent_fees_collection {
862    solana_pubkey::declare_id!("CJzY83ggJHqPGDq8VisV3U91jDJLuEaALZooBrXtnnLU");
863}
864
865pub mod enable_zk_transfer_with_fee {
866    solana_pubkey::declare_id!("zkNLP7EQALfC1TYeB3biDU7akDckj8iPkvh9y2Mt2K3");
867}
868
869pub mod drop_legacy_shreds {
870    solana_pubkey::declare_id!("GV49KKQdBNaiv2pgqhS2Dy3GWYJGXMTVYbYkdk91orRy");
871}
872
873pub mod allow_commission_decrease_at_any_time {
874    solana_pubkey::declare_id!("decoMktMcnmiq6t3u7g5BfgcQu91nKZr6RvMYf9z1Jb");
875}
876
877pub mod add_new_reserved_account_keys {
878    solana_pubkey::declare_id!("8U4skmMVnF6k2kMvrWbQuRUT3qQSiTYpSjqmhmgfthZu");
879}
880
881pub mod consume_blockstore_duplicate_proofs {
882    solana_pubkey::declare_id!("6YsBCejwK96GZCkJ6mkZ4b68oP63z2PLoQmWjC7ggTqZ");
883}
884
885pub mod index_erasure_conflict_duplicate_proofs {
886    solana_pubkey::declare_id!("dupPajaLy2SSn8ko42aZz4mHANDNrLe8Nw8VQgFecLa");
887}
888
889pub mod merkle_conflict_duplicate_proofs {
890    solana_pubkey::declare_id!("mrkPjRg79B2oK2ZLgd7S3AfEJaX9B6gAF3H9aEykRUS");
891}
892
893pub mod disable_bpf_loader_instructions {
894    solana_pubkey::declare_id!("7WeS1vfPRgeeoXArLh7879YcB9mgE9ktjPDtajXeWfXn");
895}
896
897pub mod enable_zk_proof_from_account {
898    solana_pubkey::declare_id!("zkiTNuzBKxrCLMKehzuQeKZyLtX2yvFcEKMML8nExU8");
899}
900
901pub mod cost_model_requested_write_lock_cost {
902    solana_pubkey::declare_id!("wLckV1a64ngtcKPRGU4S4grVTestXjmNjxBjaKZrAcn");
903}
904
905pub mod enable_gossip_duplicate_proof_ingestion {
906    solana_pubkey::declare_id!("FNKCMBzYUdjhHyPdsKG2LSmdzH8TCHXn3ytj8RNBS4nG");
907}
908
909pub mod chained_merkle_conflict_duplicate_proofs {
910    solana_pubkey::declare_id!("chaie9S2zVfuxJKNRGkyTDokLwWxx6kD2ZLsqQHaDD8");
911}
912
913pub mod enable_chained_merkle_shreds {
914    solana_pubkey::declare_id!("7uZBkJXJ1HkuP6R3MJfZs7mLwymBcDbKdqbF51ZWLier");
915}
916
917pub mod remove_rounding_in_fee_calculation {
918    solana_pubkey::declare_id!("BtVN7YjDzNE6Dk7kTT7YTDgMNUZTNgiSJgsdzAeTg2jF");
919}
920
921pub mod enable_tower_sync_ix {
922    solana_pubkey::declare_id!("tSynMCspg4xFiCj1v3TDb4c7crMR5tSBhLz4sF7rrNA");
923}
924
925pub mod deprecate_unused_legacy_vote_plumbing {
926    solana_pubkey::declare_id!("6Uf8S75PVh91MYgPQSHnjRAPQq6an5BDv9vomrCwDqLe");
927}
928
929pub mod reward_full_priority_fee {
930    solana_pubkey::declare_id!("3opE3EzAKnUftUDURkzMgwpNgimBAypW1mNDYH4x4Zg7");
931}
932
933pub mod get_sysvar_syscall_enabled {
934    solana_pubkey::declare_id!("CLCoTADvV64PSrnR6QXty6Fwrt9Xc6EdxSJE4wLRePjq");
935}
936
937pub mod abort_on_invalid_curve {
938    solana_pubkey::declare_id!("FuS3FPfJDKSNot99ECLXtp3rueq36hMNStJkPJwWodLh");
939}
940
941pub mod migrate_feature_gate_program_to_core_bpf {
942    solana_pubkey::declare_id!("4eohviozzEeivk1y9UbrnekbAFMDQyJz5JjA9Y6gyvky");
943}
944
945pub mod vote_only_full_fec_sets {
946    solana_pubkey::declare_id!("ffecLRhhakKSGhMuc6Fz2Lnfq4uT9q3iu9ZsNaPLxPc");
947}
948
949pub mod migrate_config_program_to_core_bpf {
950    solana_pubkey::declare_id!("2Fr57nzzkLYXW695UdDxDeR5fhnZWSttZeZYemrnpGFV");
951}
952
953pub mod enable_get_epoch_stake_syscall {
954    solana_pubkey::declare_id!("FKe75t4LXxGaQnVHdUKM6DSFifVVraGZ8LyNo7oPwy1Z");
955}
956
957pub mod migrate_address_lookup_table_program_to_core_bpf {
958    solana_pubkey::declare_id!("C97eKZygrkU4JxJsZdjgbUY7iQR7rKTr4NyDWo2E5pRm");
959}
960
961pub mod zk_elgamal_proof_program_enabled {
962    solana_pubkey::declare_id!("zkhiy5oLowR7HY4zogXjCjeMXyruLqBwSWH21qcFtnv");
963}
964
965pub mod verify_retransmitter_signature {
966    solana_pubkey::declare_id!("51VCKU5eV6mcTc9q9ArfWELU2CqDoi13hdAjr6fHMdtv");
967}
968
969pub mod move_stake_and_move_lamports_ixs {
970    solana_pubkey::declare_id!("7bTK6Jis8Xpfrs8ZoUfiMDPazTcdPcTWheZFJTA5Z6X4");
971}
972
973pub mod ed25519_precompile_verify_strict {
974    solana_pubkey::declare_id!("ed9tNscbWLYBooxWA7FE2B5KHWs8A6sxfY8EzezEcoo");
975}
976
977pub mod vote_only_retransmitter_signed_fec_sets {
978    solana_pubkey::declare_id!("RfEcA95xnhuwooVAhUUksEJLZBF7xKCLuqrJoqk4Zph");
979}
980
981pub mod move_precompile_verification_to_svm {
982    solana_pubkey::declare_id!("9ypxGLzkMxi89eDerRKXWDXe44UY2z4hBig4mDhNq5Dp");
983}
984
985pub mod enable_transaction_loading_failure_fees {
986    solana_pubkey::declare_id!("PaymEPK2oqwT9TXAVfadjztH2H6KfLEB9Hhd5Q5frvP");
987}
988
989pub mod enable_turbine_extended_fanout_experiments {
990    solana_pubkey::declare_id!("turbRpTzBzDU6PJmWvRTbcJXXGxUs19CvQamUrRD9bN");
991}
992
993pub mod deprecate_legacy_vote_ixs {
994    solana_pubkey::declare_id!("depVvnQ2UysGrhwdiwU42tCadZL8GcBb1i2GYhMopQv");
995}
996
997pub mod disable_sbpf_v0_execution {
998    solana_pubkey::declare_id!("TestFeature11111111111111111111111111111111");
999}
1000
1001pub mod reenable_sbpf_v0_execution {
1002    solana_pubkey::declare_id!("TestFeature21111111111111111111111111111111");
1003}
1004
1005pub mod enable_sbpf_v1_deployment_and_execution {
1006    solana_pubkey::declare_id!("JE86WkYvTrzW8HgNmrHY7dFYpCmSptUpKupbo2AdQ9cG");
1007}
1008
1009pub mod enable_sbpf_v2_deployment_and_execution {
1010    solana_pubkey::declare_id!("F6UVKh1ujTEFK3en2SyAL3cdVnqko1FVEXWhmdLRu6WP");
1011}
1012
1013pub mod enable_sbpf_v3_deployment_and_execution {
1014    solana_pubkey::declare_id!("BUwGLeF3Lxyfv1J1wY8biFHBB2hrk2QhbNftQf3VV3cC");
1015}
1016
1017pub mod remove_accounts_executable_flag_checks {
1018    solana_pubkey::declare_id!("FXs1zh47QbNnhXcnB6YiAQoJ4sGB91tKF3UFHLcKT7PM");
1019}
1020
1021pub mod disable_account_loader_special_case {
1022    solana_pubkey::declare_id!("EQUMpNFr7Nacb1sva56xn1aLfBxppEoSBH8RRVdkcD1x");
1023}
1024
1025pub mod enable_secp256r1_precompile {
1026    solana_pubkey::declare_id!("srremy31J5Y25FrAApwVb9kZcfXbusYMMsvTK9aWv5q");
1027}
1028
1029pub mod accounts_lt_hash {
1030    solana_pubkey::declare_id!("LTHasHQX6661DaDD4S6A2TFi6QBuiwXKv66fB1obfHq");
1031}
1032
1033pub mod snapshots_lt_hash {
1034    solana_pubkey::declare_id!("LTsNAP8h1voEVVToMNBNqoiNQex4aqfUrbFhRH3mSQ2");
1035}
1036
1037pub mod remove_accounts_delta_hash {
1038    solana_pubkey::declare_id!("LTdLt9Ycbyoipz5fLysCi1NnDnASsZfmJLJXts5ZxZz");
1039}
1040
1041pub mod migrate_stake_program_to_core_bpf {
1042    solana_pubkey::declare_id!("6M4oQ6eXneVhtLoiAr4yRYQY43eVLjrKbiDZDJc892yk");
1043}
1044
1045pub mod deplete_cu_meter_on_vm_failure {
1046    solana_pubkey::declare_id!("B7H2caeia4ZFcpE3QcgMqbiWiBtWrdBRBSJ1DY6Ktxbq");
1047}
1048
1049pub mod reserve_minimal_cus_for_builtin_instructions {
1050    solana_pubkey::declare_id!("C9oAhLxDBm3ssWtJx1yBGzPY55r2rArHmN1pbQn6HogH");
1051}
1052
1053pub mod raise_block_limits_to_50m {
1054    solana_pubkey::declare_id!("5oMCU3JPaFLr8Zr4ct7yFA7jdk6Mw1RmB8K4u9ZbS42z");
1055}
1056
1057pub mod drop_unchained_merkle_shreds {
1058    solana_pubkey::declare_id!("5KLGJSASDVxKPjLCDWNtnABLpZjsQSrYZ8HKwcEdAMC8");
1059}
1060
1061pub mod relax_intrabatch_account_locks {
1062    solana_pubkey::declare_id!("ENTRYnPAoT5Swwx73YDGzMp3XnNH1kxacyvLosRHza1i");
1063}
1064
1065pub mod create_slashing_program {
1066    solana_pubkey::declare_id!("sProgVaNWkYdP2eTRAy1CPrgb3b9p8yXCASrPEqo6VJ");
1067}
1068
1069pub mod disable_partitioned_rent_collection {
1070    solana_pubkey::declare_id!("2B2SBNbUcr438LtGXNcJNBP2GBSxjx81F945SdSkUSfC");
1071}
1072
1073pub mod enable_vote_address_leader_schedule {
1074    solana_pubkey::declare_id!("5JsG4NWH8Jbrqdd8uL6BNwnyZK3dQSoieRXG5vmofj9y");
1075}
1076
1077pub mod require_static_nonce_account {
1078    solana_pubkey::declare_id!("7VVhpg5oAjAmnmz1zCcSHb2Z9ecZB2FQqpnEwReka9Zm");
1079}
1080
1081pub mod raise_block_limits_to_60m {
1082    solana_pubkey::declare_id!("6oMCUgfY6BzZ6jwB681J6ju5Bh6CjVXbd7NeWYqiXBSu");
1083}
1084
1085pub mod mask_out_rent_epoch_in_vm_serialization {
1086    solana_pubkey::declare_id!("RENtePQcDLrAbxAsP3k8dwVcnNYQ466hi2uKvALjnXx");
1087}
1088
1089pub mod enshrine_slashing_program {
1090    solana_pubkey::declare_id!("sProgVaNWkYdP2eTRAy1CPrgb3b9p8yXCASrPEqo6VJ");
1091}
1092
1093pub mod enable_extend_program_checked {
1094    solana_pubkey::declare_id!("2oMRZEDWT2tqtYMofhmmfQ8SsjqUFzT6sYXppQDavxwz");
1095}
1096
1097pub mod formalize_loaded_transaction_data_size {
1098    solana_pubkey::declare_id!("DeS7sR48ZcFTUmt5FFEVDr1v1bh73aAbZiZq3SYr8Eh8");
1099}
1100
1101pub mod alpenglow {
1102    solana_pubkey::declare_id!("mustRekeyVm2QHYB3JPefBiU4BY3Z6JkW2k3Scw5GWP");
1103}
1104
1105pub mod disable_zk_elgamal_proof_program {
1106    solana_pubkey::declare_id!("zkdoVwnSFnSLtGJG7irJPEYUpmb4i7sGMGcnN6T9rnC");
1107}
1108
1109pub mod reenable_zk_elgamal_proof_program {
1110    solana_pubkey::declare_id!("zkeygbBwEGgThKda6nVFVUjJHSYXbwydbmaPUeNQbmK");
1111}
1112
1113pub mod raise_block_limits_to_100m {
1114    solana_pubkey::declare_id!("P1BCUMpAC7V2GRBRiJCNUgpMyWZhoqt3LKo712ePqsz");
1115}
1116
1117pub mod raise_account_cu_limit {
1118    solana_pubkey::declare_id!("htsptAwi2yRoZH83SKaUXykeZGtZHgxkS2QwW1pssR8");
1119}
1120
1121pub mod raise_cpi_nesting_limit_to_8 {
1122    solana_pubkey::declare_id!("6TkHkRmP7JZy1fdM6fg5uXn76wChQBWGokHBJzrLB3mj");
1123}
1124
1125pub static FEATURE_NAMES: LazyLock<AHashMap<Pubkey, &'static str>> = LazyLock::new(|| {
1126    [
1127        (secp256k1_program_enabled::id(), "secp256k1 program"),
1128        (deprecate_rewards_sysvar::id(), "deprecate unused rewards sysvar"),
1129        (pico_inflation::id(), "pico inflation"),
1130        (full_inflation::devnet_and_testnet::id(), "full inflation on devnet and testnet"),
1131        (spl_token_v2_multisig_fix::id(), "spl-token multisig fix"),
1132        (no_overflow_rent_distribution::id(), "no overflow rent distribution"),
1133        (filter_stake_delegation_accounts::id(), "filter stake_delegation_accounts #14062"),
1134        (require_custodian_for_locked_stake_authorize::id(), "require custodian to authorize withdrawer change for locked stake"),
1135        (spl_token_v2_self_transfer_fix::id(), "spl-token self-transfer fix"),
1136        (full_inflation::mainnet::certusone::enable::id(), "full inflation enabled by Certus One"),
1137        (full_inflation::mainnet::certusone::vote::id(), "community vote allowing Certus One to enable full inflation"),
1138        (warp_timestamp_again::id(), "warp timestamp again, adjust bounding to 25% fast 80% slow #15204"),
1139        (check_init_vote_data::id(), "check initialized Vote data"),
1140        (secp256k1_recover_syscall_enabled::id(), "secp256k1_recover syscall"),
1141        (system_transfer_zero_check::id(), "perform all checks for transfers of 0 lamports"),
1142        (blake3_syscall_enabled::id(), "blake3 syscall"),
1143        (dedupe_config_program_signers::id(), "dedupe config program signers"),
1144        (verify_tx_signatures_len::id(), "prohibit extra transaction signatures"),
1145        (vote_stake_checked_instructions::id(), "vote/state program checked instructions #18345"),
1146        (rent_for_sysvars::id(), "collect rent from accounts owned by sysvars"),
1147        (libsecp256k1_0_5_upgrade_enabled::id(), "upgrade libsecp256k1 to v0.5.0"),
1148        (tx_wide_compute_cap::id(), "transaction wide compute cap"),
1149        (spl_token_v2_set_authority_fix::id(), "spl-token set_authority fix"),
1150        (merge_nonce_error_into_system_error::id(), "merge NonceError into SystemError"),
1151        (disable_fees_sysvar::id(), "disable fees sysvar"),
1152        (stake_merge_with_unmatched_credits_observed::id(), "allow merging active stakes with unmatched credits_observed #18985"),
1153        (zk_token_sdk_enabled::id(), "enable Zk Token proof program and syscalls"),
1154        (curve25519_syscall_enabled::id(), "enable curve25519 syscalls"),
1155        (versioned_tx_message_enabled::id(), "enable versioned transaction message processing"),
1156        (libsecp256k1_fail_on_bad_count::id(), "fail libsecp256k1_verify if count appears wrong"),
1157        (libsecp256k1_fail_on_bad_count2::id(), "fail libsecp256k1_verify if count appears wrong"),
1158        (instructions_sysvar_owned_by_sysvar::id(), "fix owner for instructions sysvar"),
1159        (stake_program_advance_activating_credits_observed::id(), "Enable advancing credits observed for activation epoch #19309"),
1160        (credits_auto_rewind::id(), "Auto rewind stake's credits_observed if (accidental) vote recreation is detected #22546"),
1161        (demote_program_write_locks::id(), "demote program write locks to readonly, except when upgradeable loader present #19593 #20265"),
1162        (ed25519_program_enabled::id(), "enable builtin ed25519 signature verify program"),
1163        (return_data_syscall_enabled::id(), "enable sol_{set,get}_return_data syscall"),
1164        (reduce_required_deploy_balance::id(), "reduce required payer balance for program deploys"),
1165        (sol_log_data_syscall_enabled::id(), "enable sol_log_data syscall"),
1166        (stakes_remove_delegation_if_inactive::id(), "remove delegations from stakes cache when inactive"),
1167        (do_support_realloc::id(), "support account data reallocation"),
1168        (prevent_calling_precompiles_as_programs::id(), "prevent calling precompiles as programs"),
1169        (optimize_epoch_boundary_updates::id(), "optimize epoch boundary updates"),
1170        (remove_native_loader::id(), "remove support for the native loader"),
1171        (send_to_tpu_vote_port::id(), "send votes to the tpu vote port"),
1172        (requestable_heap_size::id(), "Requestable heap frame size"),
1173        (disable_fee_calculator::id(), "deprecate fee calculator"),
1174        (add_compute_budget_program::id(), "Add compute_budget_program"),
1175        (nonce_must_be_writable::id(), "nonce must be writable"),
1176        (spl_token_v3_3_0_release::id(), "spl-token v3.3.0 release"),
1177        (leave_nonce_on_success::id(), "leave nonce as is on success"),
1178        (reject_empty_instruction_without_program::id(), "fail instructions which have native_loader as program_id directly"),
1179        (fixed_memcpy_nonoverlapping_check::id(), "use correct check for nonoverlapping regions in memcpy syscall"),
1180        (reject_non_rent_exempt_vote_withdraws::id(), "fail vote withdraw instructions which leave the account non-rent-exempt"),
1181        (evict_invalid_stakes_cache_entries::id(), "evict invalid stakes cache entries on epoch boundaries"),
1182        (allow_votes_to_directly_update_vote_state::id(), "enable direct vote state update"),
1183        (max_tx_account_locks::id(), "enforce max number of locked accounts per transaction"),
1184        (require_rent_exempt_accounts::id(), "require all new transaction accounts with data to be rent-exempt"),
1185        (filter_votes_outside_slot_hashes::id(), "filter vote slots older than the slot hashes history"),
1186        (update_syscall_base_costs::id(), "update syscall base costs"),
1187        (stake_deactivate_delinquent_instruction::id(), "enable the deactivate delinquent stake instruction #23932"),
1188        (vote_withdraw_authority_may_change_authorized_voter::id(), "vote account withdraw authority may change the authorized voter #22521"),
1189        (spl_associated_token_account_v1_0_4::id(), "SPL Associated Token Account Program release version 1.0.4, tied to token 3.3.0 #22648"),
1190        (reject_vote_account_close_unless_zero_credit_epoch::id(), "fail vote account withdraw to 0 unless account earned 0 credits in last completed epoch"),
1191        (add_get_processed_sibling_instruction_syscall::id(), "add add_get_processed_sibling_instruction_syscall"),
1192        (bank_transaction_count_fix::id(), "fixes Bank::transaction_count to include all committed transactions, not just successful ones"),
1193        (disable_bpf_deprecated_load_instructions::id(), "disable ldabs* and ldind* SBF instructions"),
1194        (disable_bpf_unresolved_symbols_at_runtime::id(), "disable reporting of unresolved SBF symbols at runtime"),
1195        (record_instruction_in_transaction_context_push::id(), "move the CPI stack overflow check to the end of push"),
1196        (syscall_saturated_math::id(), "syscalls use saturated math"),
1197        (check_physical_overlapping::id(), "check physical overlapping regions"),
1198        (limit_secp256k1_recovery_id::id(), "limit secp256k1 recovery id"),
1199        (disable_deprecated_loader::id(), "disable the deprecated BPF loader"),
1200        (check_slice_translation_size::id(), "check size when translating slices"),
1201        (stake_split_uses_rent_sysvar::id(), "stake split instruction uses rent sysvar"),
1202        (add_get_minimum_delegation_instruction_to_stake_program::id(), "add GetMinimumDelegation instruction to stake program"),
1203        (error_on_syscall_bpf_function_hash_collisions::id(), "error on bpf function hash collisions"),
1204        (reject_callx_r10::id(), "Reject bpf callx r10 instructions"),
1205        (drop_redundant_turbine_path::id(), "drop redundant turbine path"),
1206        (executables_incur_cpi_data_cost::id(), "Executables incur CPI data costs"),
1207        (fix_recent_blockhashes::id(), "stop adding hashes for skipped slots to recent blockhashes"),
1208        (update_rewards_from_cached_accounts::id(), "update rewards from cached accounts"),
1209        (spl_token_v3_4_0::id(), "SPL Token Program version 3.4.0 release #24740"),
1210        (spl_associated_token_account_v1_1_0::id(), "SPL Associated Token Account Program version 1.1.0 release #24741"),
1211        (default_units_per_instruction::id(), "Default max tx-wide compute units calculated per instruction"),
1212        (stake_allow_zero_undelegated_amount::id(), "Allow zero-lamport undelegated amount for initialized stakes #24670"),
1213        (require_static_program_ids_in_transaction::id(), "require static program ids in versioned transactions"),
1214        (stake_raise_minimum_delegation_to_1_sol::id(), "Raise minimum stake delegation to 1.0 SOL #24357"),
1215        (stake_minimum_delegation_for_rewards::id(), "stakes must be at least the minimum delegation to earn rewards"),
1216        (add_set_compute_unit_price_ix::id(), "add compute budget ix for setting a compute unit price"),
1217        (disable_deploy_of_alloc_free_syscall::id(), "disable new deployments of deprecated sol_alloc_free_ syscall"),
1218        (include_account_index_in_rent_error::id(), "include account index in rent tx error #25190"),
1219        (add_shred_type_to_shred_seed::id(), "add shred-type to shred seed #25556"),
1220        (warp_timestamp_with_a_vengeance::id(), "warp timestamp again, adjust bounding to 150% slow #25666"),
1221        (separate_nonce_from_blockhash::id(), "separate durable nonce and blockhash domains #25744"),
1222        (enable_durable_nonce::id(), "enable durable nonce #25744"),
1223        (vote_state_update_credit_per_dequeue::id(), "Calculate vote credits for VoteStateUpdate per vote dequeue to match credit awards for Vote instruction"),
1224        (quick_bail_on_panic::id(), "quick bail on panic"),
1225        (nonce_must_be_authorized::id(), "nonce must be authorized"),
1226        (nonce_must_be_advanceable::id(), "durable nonces must be advanceable"),
1227        (vote_authorize_with_seed::id(), "An instruction you can use to change a vote accounts authority when the current authority is a derived key #25860"),
1228        (preserve_rent_epoch_for_rent_exempt_accounts::id(), "preserve rent epoch for rent exempt accounts #26479"),
1229        (enable_bpf_loader_extend_program_ix::id(), "enable bpf upgradeable loader ExtendProgram instruction #25234"),
1230        (skip_rent_rewrites::id(), "skip rewriting rent exempt accounts during rent collection #26491"),
1231        (enable_early_verification_of_account_modifications::id(), "enable early verification of account modifications #25899"),
1232        (disable_rehash_for_rent_epoch::id(), "on accounts hash calculation, do not try to rehash accounts #28934"),
1233        (account_hash_ignore_slot::id(), "ignore slot when calculating an account hash #28420"),
1234        (set_exempt_rent_epoch_max::id(), "set rent epoch to Epoch::MAX for rent-exempt accounts #28683"),
1235        (on_load_preserve_rent_epoch_for_rent_exempt_accounts::id(), "on bank load account, do not try to fix up rent_epoch #28541"),
1236        (prevent_crediting_accounts_that_end_rent_paying::id(), "prevent crediting rent paying accounts #26606"),
1237        (cap_bpf_program_instruction_accounts::id(), "enforce max number of accounts per bpf program instruction #26628"),
1238        (loosen_cpi_size_restriction::id(), "loosen cpi size restrictions #26641"),
1239        (use_default_units_in_fee_calculation::id(), "use default units per instruction in fee calculation #26785"),
1240        (compact_vote_state_updates::id(), "Compact vote state updates to lower block size"),
1241        (incremental_snapshot_only_incremental_hash_calculation::id(), "only hash accounts in incremental snapshot during incremental snapshot creation #26799"),
1242        (disable_cpi_setting_executable_and_rent_epoch::id(), "disable setting is_executable and_rent_epoch in CPI #26987"),
1243        (relax_authority_signer_check_for_lookup_table_creation::id(), "relax authority signer check for lookup table creation #27205"),
1244        (stop_sibling_instruction_search_at_parent::id(), "stop the search in get_processed_sibling_instruction when the parent instruction is reached #27289"),
1245        (vote_state_update_root_fix::id(), "fix root in vote state updates #27361"),
1246        (cap_accounts_data_allocations_per_transaction::id(), "cap accounts data allocations per transaction #27375"),
1247        (epoch_accounts_hash::id(), "enable epoch accounts hash calculation #27539"),
1248        (remove_deprecated_request_unit_ix::id(), "remove support for RequestUnitsDeprecated instruction #27500"),
1249        (increase_tx_account_lock_limit::id(), "increase tx account lock limit to 128 #27241"),
1250        (limit_max_instruction_trace_length::id(), "limit max instruction trace length #27939"),
1251        (check_syscall_outputs_do_not_overlap::id(), "check syscall outputs do_not overlap #28600"),
1252        (enable_bpf_loader_set_authority_checked_ix::id(), "enable bpf upgradeable loader SetAuthorityChecked instruction #28424"),
1253        (enable_alt_bn128_syscall::id(), "add alt_bn128 syscalls #27961"),
1254        (simplify_alt_bn128_syscall_error_codes::id(), "SIMD-0129: simplify alt_bn128 syscall error codes"),
1255        (enable_program_redeployment_cooldown::id(), "enable program redeployment cooldown #29135"),
1256        (commission_updates_only_allowed_in_first_half_of_epoch::id(), "validator commission updates are only allowed in the first half of an epoch #29362"),
1257        (enable_turbine_fanout_experiments::id(), "enable turbine fanout experiments #29393"),
1258        (disable_turbine_fanout_experiments::id(), "disable turbine fanout experiments #29393"),
1259        (move_serialized_len_ptr_in_cpi::id(), "cpi ignore serialized_len_ptr #29592"),
1260        (update_hashes_per_tick::id(), "Update desired hashes per tick on epoch boundary"),
1261        (enable_big_mod_exp_syscall::id(), "add big_mod_exp syscall #28503"),
1262        (disable_builtin_loader_ownership_chains::id(), "disable builtin loader ownership chains #29956"),
1263        (cap_transaction_accounts_data_size::id(), "cap transaction accounts data size up to a limit #27839"),
1264        (remove_congestion_multiplier_from_fee_calculation::id(), "Remove congestion multiplier from transaction fee calculation #29881"),
1265        (enable_request_heap_frame_ix::id(), "Enable transaction to request heap frame using compute budget instruction #30076"),
1266        (prevent_rent_paying_rent_recipients::id(), "prevent recipients of rent rewards from ending in rent-paying state #30151"),
1267        (delay_visibility_of_program_deployment::id(), "delay visibility of program upgrades #30085"),
1268        (apply_cost_tracker_during_replay::id(), "apply cost tracker to blocks during replay #29595"),
1269        (add_set_tx_loaded_accounts_data_size_instruction::id(), "add compute budget instruction for setting account data size per transaction #30366"),
1270        (switch_to_new_elf_parser::id(), "switch to new ELF parser #30497"),
1271        (round_up_heap_size::id(), "round up heap size when calculating heap cost #30679"),
1272        (remove_bpf_loader_incorrect_program_id::id(), "stop incorrectly throwing IncorrectProgramId in bpf_loader #30747"),
1273        (include_loaded_accounts_data_size_in_fee_calculation::id(), "include transaction loaded accounts data size in base fee calculation #30657"),
1274        (native_programs_consume_cu::id(), "Native program should consume compute units #30620"),
1275        (simplify_writable_program_account_check::id(), "Simplify checks performed for writable upgradeable program accounts #30559"),
1276        (stop_truncating_strings_in_syscalls::id(), "Stop truncating strings in syscalls #31029"),
1277        (clean_up_delegation_errors::id(), "Return InsufficientDelegation instead of InsufficientFunds or InsufficientStake where applicable #31206"),
1278        (vote_state_add_vote_latency::id(), "replace Lockout with LandedVote (including vote latency) in vote state #31264"),
1279        (checked_arithmetic_in_fee_validation::id(), "checked arithmetic in fee validation #31273"),
1280        (stricter_abi_and_runtime_constraints::id(), "use memory regions to map account data into the rbpf vm instead of copying the data"),
1281        (last_restart_slot_sysvar::id(), "enable new sysvar last_restart_slot"),
1282        (reduce_stake_warmup_cooldown::id(), "reduce stake warmup cooldown from 25% to 9%"),
1283        (revise_turbine_epoch_stakes::id(), "revise turbine epoch stakes"),
1284        (enable_poseidon_syscall::id(), "Enable Poseidon syscall"),
1285        (timely_vote_credits::id(), "use timeliness of votes in determining credits to award"),
1286        (remaining_compute_units_syscall_enabled::id(), "enable the remaining_compute_units syscall"),
1287        (enable_loader_v4::id(), "SIMD-0167: Enable Loader-v4"),
1288        (require_rent_exempt_split_destination::id(), "Require stake split destination account to be rent exempt"),
1289        (better_error_codes_for_tx_lamport_check::id(), "better error codes for tx lamport check #33353"),
1290        (enable_alt_bn128_compression_syscall::id(), "add alt_bn128 compression syscalls"),
1291        (update_hashes_per_tick2::id(), "Update desired hashes per tick to 2.8M"),
1292        (update_hashes_per_tick3::id(), "Update desired hashes per tick to 4.4M"),
1293        (update_hashes_per_tick4::id(), "Update desired hashes per tick to 7.6M"),
1294        (update_hashes_per_tick5::id(), "Update desired hashes per tick to 9.2M"),
1295        (update_hashes_per_tick6::id(), "Update desired hashes per tick to 10M"),
1296        (validate_fee_collector_account::id(), "validate fee collector account #33888"),
1297        (disable_rent_fees_collection::id(), "Disable rent fees collection #33945"),
1298        (enable_zk_transfer_with_fee::id(), "enable Zk Token proof program transfer with fee"),
1299        (drop_legacy_shreds::id(), "drops legacy shreds #34328"),
1300        (allow_commission_decrease_at_any_time::id(), "Allow commission decrease at any time in epoch #33843"),
1301        (consume_blockstore_duplicate_proofs::id(), "consume duplicate proofs from blockstore in consensus #34372"),
1302        (add_new_reserved_account_keys::id(), "add new unwritable reserved accounts #34899"),
1303        (index_erasure_conflict_duplicate_proofs::id(), "generate duplicate proofs for index and erasure conflicts #34360"),
1304        (merkle_conflict_duplicate_proofs::id(), "generate duplicate proofs for merkle root conflicts #34270"),
1305        (disable_bpf_loader_instructions::id(), "disable bpf loader management instructions #34194"),
1306        (enable_zk_proof_from_account::id(), "Enable zk token proof program to read proof from accounts instead of instruction data #34750"),
1307        (curve25519_restrict_msm_length::id(), "restrict curve25519 multiscalar multiplication vector lengths #34763"),
1308        (cost_model_requested_write_lock_cost::id(), "cost model uses number of requested write locks #34819"),
1309        (enable_gossip_duplicate_proof_ingestion::id(), "enable gossip duplicate proof ingestion #32963"),
1310        (enable_chained_merkle_shreds::id(), "Enable chained Merkle shreds #34916"),
1311        (remove_rounding_in_fee_calculation::id(), "Removing unwanted rounding in fee calculation #34982"),
1312        (deprecate_unused_legacy_vote_plumbing::id(), "Deprecate unused legacy vote tx plumbing"),
1313        (enable_tower_sync_ix::id(), "Enable tower sync vote instruction"),
1314        (chained_merkle_conflict_duplicate_proofs::id(), "generate duplicate proofs for chained merkle root conflicts"),
1315        (reward_full_priority_fee::id(), "Reward full priority fee to validators #34731"),
1316        (abort_on_invalid_curve::id(), "SIMD-0137: Abort when elliptic curve syscalls invoked on invalid curve id"),
1317        (get_sysvar_syscall_enabled::id(), "Enable syscall for fetching Sysvar bytes #615"),
1318        (migrate_feature_gate_program_to_core_bpf::id(), "Migrate Feature Gate program to Core BPF (programify) #1003"),
1319        (vote_only_full_fec_sets::id(), "vote only full fec sets"),
1320        (migrate_config_program_to_core_bpf::id(), "Migrate Config program to Core BPF #1378"),
1321        (enable_get_epoch_stake_syscall::id(), "Enable syscall: sol_get_epoch_stake #884"),
1322        (migrate_address_lookup_table_program_to_core_bpf::id(), "Migrate Address Lookup Table program to Core BPF #1651"),
1323        (zk_elgamal_proof_program_enabled::id(), "SIMD-0153: Enable ZkElGamalProof program"),
1324        (verify_retransmitter_signature::id(), "Verify retransmitter signature #1840"),
1325        (move_stake_and_move_lamports_ixs::id(), "Enable MoveStake and MoveLamports stake program instructions #1610"),
1326        (ed25519_precompile_verify_strict::id(), "SIMD-0152: Use strict verification in ed25519 precompile"),
1327        (vote_only_retransmitter_signed_fec_sets::id(), "vote only on retransmitter signed fec sets"),
1328        (move_precompile_verification_to_svm::id(), "SIMD-0159: Move precompile verification into SVM"),
1329        (enable_transaction_loading_failure_fees::id(), "SIMD-0082: Enable fees for some additional transaction failures"),
1330        (enable_turbine_extended_fanout_experiments::id(), "enable turbine extended fanout experiments #"),
1331        (deprecate_legacy_vote_ixs::id(), "Deprecate legacy vote instructions"),
1332        (partitioned_epoch_rewards_superfeature::id(), "SIMD-0118: replaces enable_partitioned_epoch_reward to enable partitioned rewards at epoch boundary"),
1333        (disable_sbpf_v0_execution::id(), "SIMD-0161: Disables execution of SBPFv0 programs"),
1334        (reenable_sbpf_v0_execution::id(), "Re-enables execution of SBPFv0 programs"),
1335        (enable_sbpf_v1_deployment_and_execution::id(), "SIMD-0166: Enable deployment and execution of SBPFv1 programs"),
1336        (enable_sbpf_v2_deployment_and_execution::id(), "SIMD-0173 and SIMD-0174: Enable deployment and execution of SBPFv2 programs"),
1337        (enable_sbpf_v3_deployment_and_execution::id(), "SIMD-0178, SIMD-0179 and SIMD-0189: Enable deployment and execution of SBPFv3 programs"),
1338        (remove_accounts_executable_flag_checks::id(), "SIMD-0162: Remove checks of accounts is_executable flag"),
1339        (disable_account_loader_special_case::id(), "Disable account loader special case #3513"),
1340        (accounts_lt_hash::id(), "SIMD-0215: enables lattice-based accounts hash"),
1341        (snapshots_lt_hash::id(), "SIMD-0220: snapshots use lattice-based accounts hash"),
1342        (remove_accounts_delta_hash::id(), "SIMD-0223: removes accounts delta hash"),
1343        (enable_secp256r1_precompile::id(), "SIMD-0075: Enable secp256r1 precompile"),
1344        (migrate_stake_program_to_core_bpf::id(), "SIMD-0196: Migrate Stake program to Core BPF #3655"),
1345        (deplete_cu_meter_on_vm_failure::id(), "SIMD-0182: Deplete compute meter for vm errors #3993"),
1346        (reserve_minimal_cus_for_builtin_instructions::id(), "SIMD-0170: Reserve minimal CUs for builtin instructions #2562"),
1347        (raise_block_limits_to_50m::id(), "SIMD-0207: Raise block limit to 50M"),
1348        (fix_alt_bn128_multiplication_input_length::id(), "SIMD-0222: fix alt_bn128 multiplication input length #3686"),
1349        (drop_unchained_merkle_shreds::id(), "drops unchained Merkle shreds #2149"),
1350        (relax_intrabatch_account_locks::id(), "SIMD-0083: Allow batched transactions to read/write and write/write the same accounts"),
1351        (create_slashing_program::id(), "SIMD-0204: creates an enshrined slashing program"),
1352        (disable_partitioned_rent_collection::id(), "SIMD-0175: Disable partitioned rent collection #4562"),
1353        (enable_vote_address_leader_schedule::id(), "SIMD-0180: Enable vote address leader schedule #4573"),
1354        (require_static_nonce_account::id(), "SIMD-0242: Static Nonce Account Only"),
1355        (raise_block_limits_to_60m::id(), "SIMD-0256: Raise block limit to 60M"),
1356        (mask_out_rent_epoch_in_vm_serialization::id(), "SIMD-0267: Sets rent_epoch to a constant in the VM"),
1357        (enshrine_slashing_program::id(), "SIMD-0204: Slashable event verification"),
1358        (enable_extend_program_checked::id(), "Enable ExtendProgramChecked instruction"),
1359        (formalize_loaded_transaction_data_size::id(), "SIMD-0186: Loaded transaction data size specification"),
1360        (alpenglow::id(), "SIMD-0326: Alpenglow: new consensus algorithm"),
1361        (disable_zk_elgamal_proof_program::id(), "Disables zk-elgamal-proof program"),
1362        (reenable_zk_elgamal_proof_program::id(), "Re-enables zk-elgamal-proof program"),
1363        (raise_block_limits_to_100m::id(), "SIMD-0286: Raise block limit to 100M"),
1364        (raise_account_cu_limit::id(), "SIMD-0306: Raise account CU limit to 40% max"),
1365        (raise_cpi_nesting_limit_to_8::id(), "SIMD-0296: Raise CPI nesting limit from 4 to 8"),
1366        /*************** ADD NEW FEATURES HERE ***************/
1367    ]
1368    .iter()
1369    .cloned()
1370    .collect()
1371});
1372
1373/// Unique identifier of the current software's feature set
1374pub static ID: LazyLock<Hash> = LazyLock::new(|| {
1375    let mut hasher = Hasher::default();
1376    let mut feature_ids = FEATURE_NAMES.keys().collect::<Vec<_>>();
1377    feature_ids.sort();
1378    for feature in feature_ids {
1379        hasher.hash(feature.as_ref());
1380    }
1381    hasher.result()
1382});
1383
1384#[derive(Clone, PartialEq, Eq, Hash)]
1385pub struct FullInflationFeaturePair {
1386    pub vote_id: Pubkey, // Feature that grants the candidate the ability to enable full inflation
1387    pub enable_id: Pubkey, // Feature to enable full inflation by the candidate
1388}
1389
1390/// Set of feature pairs that once enabled will trigger full inflationi
1391pub static FULL_INFLATION_FEATURE_PAIRS: LazyLock<AHashSet<FullInflationFeaturePair>> =
1392    LazyLock::new(|| {
1393        [FullInflationFeaturePair {
1394            vote_id: full_inflation::mainnet::certusone::vote::id(),
1395            enable_id: full_inflation::mainnet::certusone::enable::id(),
1396        }]
1397        .iter()
1398        .cloned()
1399        .collect()
1400    });
1401
1402#[cfg(test)]
1403mod test {
1404    use super::*;
1405
1406    #[test]
1407    fn test_full_inflation_features_enabled_devnet_and_testnet() {
1408        let mut feature_set = FeatureSet::default();
1409        assert!(feature_set.full_inflation_features_enabled().is_empty());
1410        feature_set
1411            .active
1412            .insert(full_inflation::devnet_and_testnet::id(), 42);
1413        assert_eq!(
1414            feature_set.full_inflation_features_enabled(),
1415            [full_inflation::devnet_and_testnet::id()]
1416                .iter()
1417                .cloned()
1418                .collect()
1419        );
1420    }
1421
1422    #[test]
1423    fn test_full_inflation_features_enabled() {
1424        // Normal sequence: vote_id then enable_id
1425        let mut feature_set = FeatureSet::default();
1426        assert!(feature_set.full_inflation_features_enabled().is_empty());
1427        feature_set
1428            .active
1429            .insert(full_inflation::mainnet::certusone::vote::id(), 42);
1430        assert!(feature_set.full_inflation_features_enabled().is_empty());
1431        feature_set
1432            .active
1433            .insert(full_inflation::mainnet::certusone::enable::id(), 42);
1434        assert_eq!(
1435            feature_set.full_inflation_features_enabled(),
1436            [full_inflation::mainnet::certusone::enable::id()]
1437                .iter()
1438                .cloned()
1439                .collect()
1440        );
1441
1442        // Backwards sequence: enable_id and then vote_id
1443        let mut feature_set = FeatureSet::default();
1444        assert!(feature_set.full_inflation_features_enabled().is_empty());
1445        feature_set
1446            .active
1447            .insert(full_inflation::mainnet::certusone::enable::id(), 42);
1448        assert!(feature_set.full_inflation_features_enabled().is_empty());
1449        feature_set
1450            .active
1451            .insert(full_inflation::mainnet::certusone::vote::id(), 42);
1452        assert_eq!(
1453            feature_set.full_inflation_features_enabled(),
1454            [full_inflation::mainnet::certusone::enable::id()]
1455                .iter()
1456                .cloned()
1457                .collect()
1458        );
1459    }
1460}