Skip to content

Commit

Permalink
Enable smart ancestor selection in testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
arun-koshy committed Dec 5, 2024
1 parent 13b6554 commit 88cdfda
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 6 additions & 3 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down Expand Up @@ -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;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 88cdfda

Please sign in to comment.