From 3e7d364bf9e81b255ee0faf316d42b720aab5413 Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Wed, 12 Jun 2024 14:35:13 +0200 Subject: [PATCH] Address comments --- x/ccv/provider/keeper/relay.go | 2 +- x/ccv/provider/migrations/v6/migrations.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/x/ccv/provider/keeper/relay.go b/x/ccv/provider/keeper/relay.go index a5c39bf717..4749a21a23 100644 --- a/x/ccv/provider/keeper/relay.go +++ b/x/ccv/provider/keeper/relay.go @@ -228,7 +228,7 @@ func (k Keeper) QueueVSCPackets(ctx sdk.Context) { // in a Top-N chain, we automatically opt in all validators that belong to the top N minPower, err := k.ComputeMinPowerInTopN(ctx, bondedValidators, topN) if err == nil { - // set the minimal power of validators in the top N ˇin the store + // set the minimal power of validators in the top N in the store k.SetMinimumPowerInTopN(ctx, chainID, minPower) k.OptInTopNValidators(ctx, chainID, bondedValidators, minPower) diff --git a/x/ccv/provider/migrations/v6/migrations.go b/x/ccv/provider/migrations/v6/migrations.go index e8511eab58..7e659de143 100644 --- a/x/ccv/provider/migrations/v6/migrations.go +++ b/x/ccv/provider/migrations/v6/migrations.go @@ -8,7 +8,7 @@ import ( func MigrateMinPowerInTopN(ctx sdk.Context, providerKeeper providerkeeper.Keeper) { // we only get the registered consumer chains and not also the proposed consumer chains because - // the minimal power is usually set when the consumer chain addition proposal passes + // the minimal power is first set when the consumer chain addition proposal passes registeredConsumerChains := providerKeeper.GetAllRegisteredConsumerChainIDs(ctx) for _, chain := range registeredConsumerChains {