Skip to content

Commit

Permalink
Speedup slashing beginblokc
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Apr 28, 2024
1 parent 4521bf9 commit 1407495
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions x/slashing/keeper/infractions.go
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ func (k Keeper) HandleValidatorSignatureWithParams(ctx sdk.Context, params types
)
}

minHeight := signInfo.StartHeight + k.SignedBlocksWindow(ctx)
maxMissed := k.SignedBlocksWindow(ctx) - minSignedPerWindow
minHeight := signInfo.StartHeight + params.SignedBlocksWindow
maxMissed := params.SignedBlocksWindow - minSignedPerWindow

// if we are past the minimum height and the validator has missed too many blocks, punish them
if height > minHeight && signInfo.MissedBlocksCounter > maxMissed {
Expand Down

0 comments on commit 1407495

Please sign in to comment.