File tree Expand file tree Collapse file tree 3 files changed +13277
-1
lines changed
aptos-move/vm-genesis/src Expand file tree Collapse file tree 3 files changed +13277
-1
lines changed Original file line number Diff line number Diff line change @@ -283,7 +283,17 @@ pub fn encode_genesis_change_set(
283
283
initialize_jwk_consensus_config ( & mut session, & jwk_consensus_config) ;
284
284
initialize_jwks_resources ( & mut session) ;
285
285
initialize_keyless_accounts ( & mut session, chain_id) ;
286
- initialize_governed_gas_pool ( & mut session) ;
286
+
287
+ // initialize governed gas pool only if feature is enabled
288
+ match & genesis_config. initial_features_override {
289
+ Some ( features) => {
290
+ if features. is_enabled ( FeatureFlag :: GOVERNED_GAS_POOL ) {
291
+ initialize_governed_gas_pool ( & mut session) ;
292
+ }
293
+ } ,
294
+ None => { } ,
295
+ }
296
+
287
297
set_genesis_end ( & mut session) ;
288
298
289
299
// Reconfiguration should happen after all on-chain invocations.
You can’t perform that action at this time.
0 commit comments