Greater than to greater than or equal to

This commit is contained in:
Christopher Goes
2018-10-12 21:09:23 +02:00
parent 69b7519d40
commit a83535aef3
3 changed files with 87 additions and 2 deletions
+1 -1
View File
@@ -109,7 +109,7 @@ for val in block.Validators:
// included in 50% of the recent LastCommits
minHeight = signInfo.StartHeight + SIGNED_BLOCKS_WINDOW
maxMissed = SIGNED_BLOCKS_WINDOW / 2
if height > minHeight AND signInfo.MissedBlocksCounter > maxMissed:
if height >= minHeight AND signInfo.MissedBlocksCounter > maxMissed:
signInfo.JailedUntil = block.Time + DOWNTIME_UNBOND_DURATION
slash & unbond the validator