Skip to content

Commit

Permalink
Revert "Enable random beacon on mainnet" (MystenLabs#18788)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschran authored Jul 24, 2024
1 parent 37109ef commit edac0d9
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 15 deletions.
7 changes: 0 additions & 7 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,6 @@ const MAX_PROTOCOL_VERSION: u64 = 53;
// Version 53: Add feature flag to decide whether to attempt to finalize bridge committee
// Enable consensus commit prologue V3 on testnet.
// Turn on shared object congestion control in testnet.
// Enable random beacon on mainnet.

#[derive(Copy, Clone, Debug, Hash, Serialize, Deserialize, PartialEq, Eq, PartialOrd, Ord)]
pub struct ProtocolVersion(u64);
Expand Down Expand Up @@ -2537,12 +2536,6 @@ impl ProtocolConfig {
cfg.feature_flags.per_object_congestion_control_mode =
PerObjectCongestionControlMode::TotalTxCount;
}

// Enable random beacon on mainnet.
cfg.feature_flags.random_beacon = true;
cfg.random_beacon_reduction_lower_bound = Some(1000);
cfg.random_beacon_dkg_timeout_round = Some(3000);
cfg.random_beacon_min_round_interval_ms = Some(500);
}
// Use this template when making changes:
//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ feature_flags:
simple_conservation_checks: true
loaded_child_object_format_type: true
receive_objects: true
random_beacon: true
enable_effects_v2: true
narwhal_certificate_v2: true
verify_legacy_zklogin_address: true
Expand Down Expand Up @@ -274,9 +273,6 @@ 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: 1000
random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 500
random_beacon_dkg_version: 1
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -277,9 +277,9 @@ 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: 1000
random_beacon_reduction_lower_bound: 1600
random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 500
random_beacon_min_round_interval_ms: 200
random_beacon_dkg_version: 1
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -286,9 +286,9 @@ 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: 1000
random_beacon_reduction_lower_bound: 1600
random_beacon_dkg_timeout_round: 3000
random_beacon_min_round_interval_ms: 500
random_beacon_min_round_interval_ms: 200
random_beacon_dkg_version: 1
consensus_max_transaction_size_bytes: 262144
consensus_max_transactions_in_block_bytes: 6291456
Expand Down

0 comments on commit edac0d9

Please sign in to comment.