From 2e0ad0482b6e0b3cdc8b5291610496473485a1c3 Mon Sep 17 00:00:00 2001 From: Reece Williams Date: Tue, 16 Apr 2024 09:07:21 -0500 Subject: [PATCH] lintor --- keeper/staking_hooks.go | 3 ++- module/abci.go | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/keeper/staking_hooks.go b/keeper/staking_hooks.go index 8232edf..f8241b1 100644 --- a/keeper/staking_hooks.go +++ b/keeper/staking_hooks.go @@ -3,9 +3,10 @@ package keeper import ( "context" - "cosmossdk.io/math" sdk "github.com/cosmos/cosmos-sdk/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" + + "cosmossdk.io/math" ) // Before a validator is jailed, we must delete it from the power index. else: diff --git a/module/abci.go b/module/abci.go index 5061ee0..304e6ab 100644 --- a/module/abci.go +++ b/module/abci.go @@ -164,7 +164,6 @@ func (am AppModule) handleBeforeJailedValidators(ctx context.Context) error { if err := sk.SetValidator(ctx, val); err != nil { return err } - } else if height+2 == curHeight { // Why is staking / slashing not handling this for us anyways? logger.Error("handleBeforeJailedValidators setting val to jailed", "height", height, "blockHeight", curHeight) @@ -178,7 +177,6 @@ func (am AppModule) handleBeforeJailedValidators(ctx context.Context) error { return err } } - } return nil