Skip to content

Commit

Permalink
lintor
Browse files Browse the repository at this point in the history
  • Loading branch information
Reecepbcups committed Apr 16, 2024
1 parent 8744bb5 commit 2e0ad04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion keeper/staking_hooks.go
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 0 additions & 2 deletions module/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -178,7 +177,6 @@ func (am AppModule) handleBeforeJailedValidators(ctx context.Context) error {
return err
}
}

}

return nil
Expand Down

0 comments on commit 2e0ad04

Please sign in to comment.