From d23fa6caeafb0e258351ee2ea100271bb9f7c163 Mon Sep 17 00:00:00 2001 From: MW Tian Date: Mon, 1 Jul 2024 09:30:08 +0800 Subject: [PATCH] Enable Mysticeti for mainnet --- crates/sui-protocol-config/src/lib.rs | 3 +++ .../sui_protocol_config__test__Mainnet_version_52.snap | 1 + 2 files changed, 4 insertions(+) diff --git a/crates/sui-protocol-config/src/lib.rs b/crates/sui-protocol-config/src/lib.rs index b152c0e584bd6..fd9b4633102bb 100644 --- a/crates/sui-protocol-config/src/lib.rs +++ b/crates/sui-protocol-config/src/lib.rs @@ -152,6 +152,7 @@ const MAX_PROTOCOL_VERSION: u64 = 52; // Modified sui-system package to enable withdrawal of stake before it becomes active. // Enable soft bundle in devnet and testnet. // Core macro visibility in sui core framework. +// Enable Mysticeti on mainnet. #[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] pub struct ProtocolVersion(u64); @@ -2463,6 +2464,8 @@ impl ProtocolConfig { cfg.feature_flags.per_object_congestion_control_mode = PerObjectCongestionControlMode::TotalTxCount; } + + cfg.feature_flags.consensus_choice = ConsensusChoice::Mysticeti; } // Use this template when making changes: // diff --git a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Mainnet_version_52.snap b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Mainnet_version_52.snap index dac7ba081e3f3..88391b958cd8e 100644 --- a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Mainnet_version_52.snap +++ b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Mainnet_version_52.snap @@ -43,6 +43,7 @@ feature_flags: enable_coin_deny_list: true enable_group_ops_native_functions: true reject_mutable_random_on_entry_functions: true + consensus_choice: Mysticeti consensus_network: Tonic zklogin_max_epoch_upper_bound_delta: 30 reshare_at_same_initial_version: true