Skip to content

Commit

Permalink
De-dup param getting
Browse files Browse the repository at this point in the history
  • Loading branch information
ValarDragon committed Jan 5, 2024
1 parent 6652b67 commit b85d6b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/slashing/keeper/params.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ func (k Keeper) SignedBlocksWindow(ctx sdk.Context) (res int64) {
// MinSignedPerWindow - minimum blocks signed per window
func (k Keeper) MinSignedPerWindow(ctx sdk.Context) int64 {
params := k.GetParams(ctx)
signedBlocksWindow := k.SignedBlocksWindow(ctx)
signedBlocksWindow := params.SignedBlocksWindow

// NOTE: RoundInt64 will never panic as minSignedPerWindow is
// less than 1.
Expand Down

0 comments on commit b85d6b8

Please sign in to comment.