From 88cdfdaa93977e0cf9fe6f095da2280d9ef602d5 Mon Sep 17 00:00:00 2001 From: Arun Koshy Date: Thu, 5 Dec 2024 14:18:33 -0800 Subject: [PATCH] Enable smart ancestor selection in testnet --- crates/sui-protocol-config/src/lib.rs | 9 ++++++--- .../sui_protocol_config__test__Testnet_version_70.snap | 2 ++ 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/crates/sui-protocol-config/src/lib.rs b/crates/sui-protocol-config/src/lib.rs index ec236451d7d4a..3a0eb473c3d37 100644 --- a/crates/sui-protocol-config/src/lib.rs +++ b/crates/sui-protocol-config/src/lib.rs @@ -198,7 +198,8 @@ const MAX_PROTOCOL_VERSION: u64 = 70; // Version 69: Sets number of rounds allowed for fastpath voting in consensus. // Enable smart ancestor selection in devnet. // Enable G1Uncompressed group in testnet. -// Version 70: Enable probing for accepted rounds in round prober. +// Version 70: Enable smart ancestor selection in testnet. +// Enable probing for accepted rounds in round prober in testnet // Add new gas model version to update charging of native functions. #[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)] @@ -2990,8 +2991,10 @@ impl ProtocolConfig { } } 70 => { - if chain != Chain::Mainnet && chain != Chain::Testnet { - // Enable probing for accepted rounds in round prober. + if chain != Chain::Mainnet { + // Enable smart ancestor selection for testnet + cfg.feature_flags.consensus_smart_ancestor_selection = true; + // Enable probing for accepted rounds in round prober for testnet cfg.feature_flags .consensus_round_prober_probe_accepted_rounds = true; } diff --git a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_70.snap b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_70.snap index e1d0971b1b1c7..80a180c7d6200 100644 --- a/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_70.snap +++ b/crates/sui-protocol-config/src/snapshots/sui_protocol_config__test__Testnet_version_70.snap @@ -66,6 +66,8 @@ feature_flags: relocate_event_module: true uncompressed_g1_group_elements: true disallow_new_modules_in_deps_only_packages: true + consensus_smart_ancestor_selection: true + consensus_round_prober_probe_accepted_rounds: true native_charging_v2: true max_tx_size_bytes: 131072 max_input_objects: 2048