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