From 1c84414198b8293064e0ab7e1e769aa31820d3ca Mon Sep 17 00:00:00 2001 From: zsystm <124245155+zsystm@users.noreply.github.com> Date: Tue, 13 Aug 2024 19:05:20 +0900 Subject: [PATCH] Update state/execution.go Co-authored-by: Sujong Lee --- state/execution.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/state/execution.go b/state/execution.go index 09883786768..5403842282e 100644 --- a/state/execution.go +++ b/state/execution.go @@ -280,7 +280,7 @@ func (blockExec *BlockExecutor) applyBlock(state State, blockID types.BlockID, b blockExec.metrics.ConsensusParamUpdates.Add(1) } - if block.Height == types.PriorityResetHeightInterval { + if block.Height%types.PriorityResetHeightInterval == 0 { state.NextValidators.ResetPriorities() }