Skip to content

Commit

Permalink
Cherry pick 19246 (finalize bridge committee on mainnet in protocol v…
Browse files Browse the repository at this point in the history
…ersion 58) (#19268)

## Description 

#19246

## Test plan 

How did you test the new or updated feature?

---

## 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.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
longbowlu authored Sep 9, 2024
1 parent fafb142 commit 77b18b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ const MAX_PROTOCOL_VERSION: u64 = 58;
// Note: do not use version 56 for any new features.
// Version 57: Reduce minimum number of random beacon shares.
// Version 58: Optimize boolean binops
// Finalize bridge committee on mainnet.

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);
Expand Down Expand Up @@ -2708,7 +2709,11 @@ impl ProtocolConfig {
// Reduce minimum number of random beacon shares.
cfg.random_beacon_reduction_lower_bound = Some(800);
}
58 => {}
58 => {
if chain == Chain::Mainnet {
cfg.bridge_should_try_to_finalize_committee = Some(true);
}
}
// Use this template when making changes:
//
// // modify an existing constant.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -319,6 +319,6 @@ max_deferral_rounds_for_congestion_control: 10
min_checkpoint_interval_ms: 200
checkpoint_summary_version_specific_data: 1
max_soft_bundle_size: 5
bridge_should_try_to_finalize_committee: false
bridge_should_try_to_finalize_committee: true
max_accumulated_txn_cost_per_object_in_mysticeti_commit: 10

0 comments on commit 77b18b4

Please sign in to comment.