From 62a695bf66d3d07bee39e6211013aaa8fd1510e9 Mon Sep 17 00:00:00 2001 From: Lukasz Klimek <842586+lklimek@users.noreply.github.com> Date: Tue, 17 Sep 2024 18:52:41 +0200 Subject: [PATCH] fix typo --- internal/features/validatorscoring/height_score.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/features/validatorscoring/height_score.go b/internal/features/validatorscoring/height_score.go index f60acc578..176768bba 100644 --- a/internal/features/validatorscoring/height_score.go +++ b/internal/features/validatorscoring/height_score.go @@ -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.