Skip to content

Commit

Permalink
GetConsensusPower should have reduction as input
Browse files Browse the repository at this point in the history
  • Loading branch information
leonz789 committed May 27, 2024
1 parent 9f48eda commit 7303509
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/oracle/keeper/single.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func recacheAggregatorContext(ctx sdk.Context, agc *aggregator.AggregatorContext
validatorPowers := make(map[string]*big.Int)
k.IterateBondedValidatorsByPower(ctx, func(_ int64, validator stakingtypes.ValidatorI) bool {
power := big.NewInt(validator.GetConsensusPower(sdk.DefaultPowerReduction))
addr := string(validator.GetOperator())
addr := validator.GetOperator().String()
validatorPowers[addr] = power
totalPower = new(big.Int).Add(totalPower, power)
return false
Expand Down

0 comments on commit 7303509

Please sign in to comment.