From ec75ca1579837a5245aef79c9ec63b80ec6442e1 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Wed, 12 Jun 2024 09:14:35 +0200 Subject: [PATCH] Use GetLastBondedValidators instead of GetLastValidators --- x/ccv/provider/keeper/proposal.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/ccv/provider/keeper/proposal.go b/x/ccv/provider/keeper/proposal.go index 896248f8e3..b394e38515 100644 --- a/x/ccv/provider/keeper/proposal.go +++ b/x/ccv/provider/keeper/proposal.go @@ -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