Skip to content

Commit

Permalink
Use GetLastBondedValidators instead of GetLastValidators
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jun 12, 2024
1 parent d2985d6 commit ec75ca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/proposal.go
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ func (k Keeper) HandleConsumerModificationProposal(ctx sdk.Context, p *types.Con
if p.Top_N != oldTopN {
if p.Top_N > 0 {
// if the chain receives a non-zero top N value, store the minimum power in the top N
bondedValidators := k.stakingKeeper.GetLastValidators(ctx)
bondedValidators := k.GetLastBondedValidators(ctx)
minPower, err := k.ComputeMinPowerInTopN(ctx, bondedValidators, p.Top_N)
if err != nil {
return err
Expand Down

0 comments on commit ec75ca1

Please sign in to comment.