From b85d6b8f70a67d3a36ddcc849e7da48694383a79 Mon Sep 17 00:00:00 2001 From: Dev Ojha Date: Fri, 5 Jan 2024 16:22:56 -0600 Subject: [PATCH] De-dup param getting --- x/slashing/keeper/params.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/slashing/keeper/params.go b/x/slashing/keeper/params.go index 4c7fc1824694..b21a4f5a84c8 100644 --- a/x/slashing/keeper/params.go +++ b/x/slashing/keeper/params.go @@ -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.