in progress

This commit is contained in:
mossid 2018-05-02 20:50:50 +02:00 committed by rigelrozanski
parent 02a267c292
commit 8336eb9bc5
1 changed files with 2 additions and 9 deletions

View File

@ -547,13 +547,6 @@ func (k Keeper) GetByIndex(ctx sdk.Context, index int) *sdk.Validator {
}
func (k Keeper) TotalPower(ctx sdk.Context) sdk.Rat {
valset := k.GetValidators(ctx)
res := sdk.ZeroRat
for _, v := range valset {
res = res.Add(v.Power)
}
return res
pool := k.GetPool(ctx)
return pool.BondedShares
}