Skip to content

Commit

Permalink
Revert "use rotating leader"
Browse files Browse the repository at this point in the history
This reverts commit 69ff4cb.
  • Loading branch information
danielxiangzl committed Dec 14, 2024
1 parent cd2e038 commit 61b4807
Showing 1 changed file with 16 additions and 17 deletions.
33 changes: 16 additions & 17 deletions types/src/on_chain_config/consensus_config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -374,23 +374,22 @@ impl Default for ConsensusConfigV1 {
back_pressure_limit: 10,
exclude_round: 40,
max_failed_authors_to_store: 10,
proposer_election_type: ProposerElectionType::RotatingProposer(1),
// ProposerElectionType::LeaderReputation(
// LeaderReputationType::ProposerAndVoterV2(ProposerAndVoterConfig {
// active_weight: 1000,
// inactive_weight: 10,
// failed_weight: 1,
// failure_threshold_percent: 10, // = 10%
// // In each round we get stastics for the single proposer
// // and large number of validators. So the window for
// // the proposers needs to be significantly larger
// // to have enough useful statistics.
// proposer_window_num_validators_multiplier: 10,
// voter_window_num_validators_multiplier: 1,
// weight_by_voting_power: true,
// use_history_from_previous_epoch_max_count: 5,
// }),
// ),
proposer_election_type: ProposerElectionType::LeaderReputation(
LeaderReputationType::ProposerAndVoterV2(ProposerAndVoterConfig {
active_weight: 1000,
inactive_weight: 10,
failed_weight: 1,
failure_threshold_percent: 10, // = 10%
// In each round we get stastics for the single proposer
// and large number of validators. So the window for
// the proposers needs to be significantly larger
// to have enough useful statistics.
proposer_window_num_validators_multiplier: 10,
voter_window_num_validators_multiplier: 1,
weight_by_voting_power: true,
use_history_from_previous_epoch_max_count: 5,
}),
),
}
}
}
Expand Down

0 comments on commit 61b4807

Please sign in to comment.