Skip to content

Commit 58142c8

Browse files
committed
fix: update genesis to match current state
This change updates the genesis to produce an identical new state as the current Pythnet production release when needed. The activated features are added and the genesis cluster type is fixed to match what we used to create the genesis at first.
1 parent 5563a7e commit 58142c8

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

genesis/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ fn main() -> Result<(), Box<dyn error::Error>> {
565565
}
566566

567567
solana_stake_program::add_genesis_accounts(&mut genesis_config);
568-
if genesis_config.cluster_type == ClusterType::Development {
568+
if genesis_config.cluster_type == ClusterType::MainnetBeta {
569569
solana_runtime::genesis_utils::activate_pythnet_genesis_features(&mut genesis_config);
570570
}
571571

sdk/src/feature_set.rs

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -798,6 +798,33 @@ lazy_static! {
798798
// expensive, account creation uses older harsher formula.
799799
// (tx_wide_compute_cap::id(), "transaction wide compute cap"),
800800
// (reduce_required_deploy_balance::id(), "reduce required payer balance for program deploys"),
801+
802+
// Features enabled later. This list will be updated as new features are enabled.
803+
804+
// Slot: 82172256
805+
(enable_accumulator_sysvar::id(), "enable accumulator sysvar #<GH_ISSUE_NUMBER>"),
806+
807+
// Slot: 115868256
808+
(preserve_rent_epoch_for_rent_exempt_accounts::id(), "preserve rent epoch for rent exempt accounts #26479"),
809+
(nonce_must_be_authorized::id(), "nonce must be authorized"),
810+
(nonce_must_be_advanceable::id(), "durable nonces must be advanceable"),
811+
(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"),
812+
(prevent_crediting_accounts_that_end_rent_paying::id(), "prevent crediting rent paying accounts #26606"),
813+
(return_none_for_zero_lamport_accounts::id(), "return none for zero lamport accounts #27800"),
814+
(move_accumulator_to_end_of_block::id(), "move accumulator to end of block #<GH_ISSUE_NUMBER>"),
815+
(quick_bail_on_panic::id(), "quick bail on panic"),
816+
(check_syscall_outputs_do_not_overlap::id(), "check syscall outputs do_not overlap #28600"),
817+
(tx_wide_compute_cap::id(), "transaction wide compute cap"),
818+
(zero_wormhole_message_timestamps::id(), "use zeroed timestamps in wormhole messages"),
819+
820+
// Slot: 125372256
821+
(move_serialized_len_ptr_in_cpi::id(), "cpi ignore serialized_len_ptr #29592"),
822+
823+
// Slot: 131852256
824+
(undo_move_accumulator_to_end_of_block::id(), "undo accumulator end of block change"),
825+
826+
// Slot: 152588256
827+
(redo_move_accumulator_to_end_of_block::id(), "redo accumulator end of block change"),
801828
]
802829
.iter()
803830
.cloned()

0 commit comments

Comments
 (0)