Skip to main content

clone_agave_feature_set/
lib.rs

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