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