Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Sep 17, 2024
1 parent eae8e46 commit 62a695b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/features/validatorscoring/height_score.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ func (s *heightBasedScoringStrategy) proposerFromStore(height int64) error {
// validators hash matches, so we can take proposer from previous height
proposer = meta.Header.ProposerProTxHash
// rewind rounds, as this is how heightBasedScoringStrategy works
indexIncrement = -meta.Round
indexIncrement = indexIncrement - meta.Round
} else {
// quorum rotation happened - we select 1st validator as proposer, and don't rotate
// NOTE: We use index 1 due to bug in original code that causes first validator to never propose.
Expand Down

0 comments on commit 62a695b

Please sign in to comment.