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 distributed vote scoring in testnet #19503

Merged
merged 1 commit into from
Sep 23, 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
7 changes: 7 additions & 0 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ const MAX_PROTOCOL_VERSION: u64 = 60;
// Version 59: Enable round prober in consensus.
// Version 60: Validation of public inputs for Groth16 verification.
// Enable configuration of maximum number of type nodes in a type layout.
// Switch to distributed vote scoring in consensus in testnet

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);
Expand Down Expand Up @@ -2781,6 +2782,12 @@ impl ProtocolConfig {
60 => {
cfg.max_type_to_layout_nodes = Some(512);
cfg.feature_flags.validate_identifier_inputs = true;

if chain != Chain::Mainnet {
// Enable distributed vote scoring for testnet
cfg.feature_flags
.consensus_distributed_vote_scoring_strategy = true;
}
}
// Use this template when making changes:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ feature_flags:
soft_bundle: true
enable_coin_deny_list_v2: true
rethrow_serialization_type_layout_errors: true
consensus_distributed_vote_scoring_strategy: true
consensus_round_prober: true
validate_identifier_inputs: true
max_tx_size_bytes: 131072
Expand Down
Loading