Skip to content

Commit

Permalink
Remove GetUnbondingValidators keeper method
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrit committed Aug 9, 2023
1 parent 3258760 commit 5402aa8
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions module/x/gravity/keeper/keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ import (
sdk "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/query"
paramtypes "github.com/cosmos/cosmos-sdk/x/params/types"
stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types"
"github.com/ethereum/go-ethereum/common"
tmbytes "github.com/tendermint/tendermint/libs/bytes"
"github.com/tendermint/tendermint/libs/log"
Expand Down Expand Up @@ -468,14 +467,6 @@ func (k Keeper) getDelegateKeys(ctx sdk.Context) (out []*types.MsgDelegateKeys)
return out
}

// GetUnbondingvalidators returns UnbondingValidators.
// Adding here in gravity keeper as cdc is available inside endblocker.
func (k Keeper) GetUnbondingValidators(unbondingVals []byte) stakingtypes.ValAddresses {
unbondingValidators := stakingtypes.ValAddresses{}
k.cdc.MustUnmarshal(unbondingVals, &unbondingValidators)
return unbondingValidators
}

// This gets the timeout height in Ethereum blocks for expiring old batches and contract calls.
func (k Keeper) getTimeoutHeight(ctx sdk.Context) uint64 {
params := k.GetParams(ctx)
Expand Down

0 comments on commit 5402aa8

Please sign in to comment.