Skip to content

Commit

Permalink
[features] Make loader V2 deefault
Browse files Browse the repository at this point in the history
  • Loading branch information
georgemitenkov committed Feb 19, 2025
1 parent ae84e30 commit fb18eb5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ impl From<FeatureFlag> for AptosFeatureFlag {
},
FeatureFlag::CollectionOwner => AptosFeatureFlag::COLLECTION_OWNER,
FeatureFlag::NativeMemoryOperations => AptosFeatureFlag::NATIVE_MEMORY_OPERATIONS,
FeatureFlag::EnableLoaderV2 => AptosFeatureFlag::ENABLE_LOADER_V2,
FeatureFlag::EnableLoaderV2 => AptosFeatureFlag::_ENABLE_LOADER_V2,
FeatureFlag::DisallowInitModuleToPublishModules => {
AptosFeatureFlag::_DISALLOW_INIT_MODULE_TO_PUBLISH_MODULES
},
Expand Down Expand Up @@ -516,7 +516,7 @@ impl From<AptosFeatureFlag> for FeatureFlag {
},
AptosFeatureFlag::COLLECTION_OWNER => FeatureFlag::CollectionOwner,
AptosFeatureFlag::NATIVE_MEMORY_OPERATIONS => FeatureFlag::NativeMemoryOperations,
AptosFeatureFlag::ENABLE_LOADER_V2 => FeatureFlag::EnableLoaderV2,
AptosFeatureFlag::_ENABLE_LOADER_V2 => FeatureFlag::EnableLoaderV2,
AptosFeatureFlag::_DISALLOW_INIT_MODULE_TO_PUBLISH_MODULES => {
FeatureFlag::DisallowInitModuleToPublishModules
},
Expand Down
7 changes: 4 additions & 3 deletions types/src/on_chain_config/aptos_features.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,9 @@ pub enum FeatureFlag {
/// covers mem::swap and vector::move_range
/// AIP-105 (https://github.com/aptos-foundation/AIPs/blob/main/aips/aip-105.md)
NATIVE_MEMORY_OPERATIONS = 80,
ENABLE_LOADER_V2 = 81,
/// The feature was used to gate the rollout of new loader used by Move VM. It was enabled on
/// mainnet and cannot be disabled.
_ENABLE_LOADER_V2 = 81,
/// Prior to this feature flag, it was possible to attempt 'init_module' to publish modules
/// that results in a new package created but without any code. With this feature, it is no
/// longer possible and an explicit error is returned if publishing is attempted. The feature
Expand Down Expand Up @@ -202,7 +204,6 @@ impl FeatureFlag {
FeatureFlag::TRANSACTION_SIMULATION_ENHANCEMENT,
FeatureFlag::NATIVE_MEMORY_OPERATIONS,
FeatureFlag::COLLECTION_OWNER,
FeatureFlag::ENABLE_LOADER_V2,
FeatureFlag::PERMISSIONED_SIGNER,
FeatureFlag::ENABLE_CALL_TREE_AND_INSTRUCTION_VM_CACHE,
FeatureFlag::ACCOUNT_ABSTRACTION,
Expand Down Expand Up @@ -356,7 +357,7 @@ impl Features {
}

pub fn is_loader_v2_enabled(&self) -> bool {
self.is_enabled(FeatureFlag::ENABLE_LOADER_V2)
true
}

pub fn is_call_tree_and_instruction_vm_cache_enabled(&self) -> bool {
Expand Down

0 comments on commit fb18eb5

Please sign in to comment.