Skip to content

Commit

Permalink
Reduce cfg.max_jwk_votes_per_validator_per_epoch (MystenLabs#13750)
Browse files Browse the repository at this point in the history
  • Loading branch information
mystenmark authored Sep 12, 2023
1 parent d6fb913 commit bed398c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions crates/sui-protocol-config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1449,8 +1449,8 @@ impl ProtocolConfig {

if chain != Chain::Mainnet {
cfg.feature_flags.enable_jwk_consensus_updates = true;
// Max of 100 votes per hour
cfg.max_jwk_votes_per_validator_per_epoch = Some(2400);
// Max of 10 votes per hour
cfg.max_jwk_votes_per_validator_per_epoch = Some(240);
cfg.max_age_of_jwk_in_epochs = Some(1);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,6 @@ scoring_decision_mad_divisor: 2.3
scoring_decision_cutoff_value: 2.5
execution_version: 1
consensus_bad_nodes_stake_threshold: 20
max_jwk_votes_per_validator_per_epoch: 2400
max_jwk_votes_per_validator_per_epoch: 240
max_age_of_jwk_in_epochs: 1

Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,6 @@ scoring_decision_mad_divisor: 2.3
scoring_decision_cutoff_value: 2.5
execution_version: 1
consensus_bad_nodes_stake_threshold: 20
max_jwk_votes_per_validator_per_epoch: 2400
max_jwk_votes_per_validator_per_epoch: 240
max_age_of_jwk_in_epochs: 1

0 comments on commit bed398c

Please sign in to comment.