Skip to content

Commit

Permalink
[consensus] Enable distributed vote scoring in testnet (#19503)
Browse files Browse the repository at this point in the history
## Release notes

Check each box that your changes affect. If none of the boxes relate to
your changes, release notes aren't required.

For each box you select, include information after the relevant heading
that describes the impact of your changes that a user might notice and
any actions they must take to implement updates.

- [X] Protocol: Enable distributed vote scoring in testnet
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
arun-koshy authored Sep 23, 2024
1 parent a3c1b54 commit 6a83f64
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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

0 comments on commit 6a83f64

Please sign in to comment.