Skip to content

Commit

Permalink
Reduce minimum number of random beacon shares (#20091)
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.

- [ ] Protocol: 
- [ ] Nodes (Validators and Full nodes): 
- [ ] Indexer: 
- [ ] JSON-RPC: 
- [ ] GraphQL: 
- [ ] CLI: 
- [ ] Rust SDK:
- [ ] REST API:
  • Loading branch information
aschran authored Oct 30, 2024
1 parent a7d6e28 commit d52d38d
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,7 @@ const MAX_PROTOCOL_VERSION: u64 = 68;
// Version 68: Add G1Uncompressed group to group ops.
// Update to Move stdlib.
// Enable gas based congestion control with overage.
// Further reduce minimum number of random beacon shares.

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);
Expand Down Expand Up @@ -2916,6 +2917,9 @@ impl ProtocolConfig {
Some(3_700_000); // 20% of above
cfg.max_txn_cost_overage_per_object_in_commit = Some(u64::MAX);
cfg.gas_budget_based_txn_cost_absolute_cap_commit_count = Some(50);

// Further reduce minimum number of random beacon shares.
cfg.random_beacon_reduction_lower_bound = Some(500);
}
// Use this template when making changes:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ consensus_bad_nodes_stake_threshold: 20
max_jwk_votes_per_validator_per_epoch: 240
max_age_of_jwk_in_epochs: 1
random_beacon_reduction_allowed_delta: 800
random_beacon_reduction_lower_bound: 700
random_beacon_reduction_lower_bound: 500
random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 500
random_beacon_dkg_version: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ consensus_bad_nodes_stake_threshold: 20
max_jwk_votes_per_validator_per_epoch: 240
max_age_of_jwk_in_epochs: 1
random_beacon_reduction_allowed_delta: 800
random_beacon_reduction_lower_bound: 700
random_beacon_reduction_lower_bound: 500
random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 500
random_beacon_dkg_version: 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ consensus_bad_nodes_stake_threshold: 20
max_jwk_votes_per_validator_per_epoch: 240
max_age_of_jwk_in_epochs: 1
random_beacon_reduction_allowed_delta: 800
random_beacon_reduction_lower_bound: 700
random_beacon_reduction_lower_bound: 500
random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 500
random_beacon_dkg_version: 1
Expand Down

0 comments on commit d52d38d

Please sign in to comment.