diff --git a/types/stake.go b/types/stake.go index f7ecb8db2..2424fdfde 100644 --- a/types/stake.go +++ b/types/stake.go @@ -76,7 +76,7 @@ type ValidatorSet interface { ValidatorByConsAddr(Context, ConsAddress) Validator // get a particular validator by consensus address ValidatorByVoteAddr(Context, []byte) Validator // get a particular validator by vote address TotalPower(Context) Dec // total power of the validator set - GetSideChainVotingPower(ctx Context) Dec // total voting power of the validator set + GetAnyStatusVotingPower(ctx Context) Dec // total voting power of the validator set // slash the validator and delegators of the validator, specifying offence height, offence power, and slash fraction Slash(Context, ConsAddress, int64, int64, Dec) diff --git a/x/stake/keeper/validator.go b/x/stake/keeper/validator.go index 0ffaf2435..4187d79bc 100644 --- a/x/stake/keeper/validator.go +++ b/x/stake/keeper/validator.go @@ -61,7 +61,7 @@ func (k Keeper) GetValidatorBySideConsAddr(ctx sdk.Context, sideConsAddr []byte) return k.GetValidator(ctx, opAddr) } -func (k Keeper) GetSideChainVotingPower(ctx sdk.Context) sdk.Dec { +func (k Keeper) GetAnyStatusVotingPower(ctx sdk.Context) sdk.Dec { store := ctx.KVStore(k.storeKey) iterator := sdk.KVStorePrefixIterator(store, ValidatorsByConsAddrKey) defer iterator.Close()