Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[consensus] Enable smart ancestor selection in testnet #20528

Merged
merged 1 commit into from
Dec 6, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading