Skip to content

Commit

Permalink
Address comments
Browse files Browse the repository at this point in the history
  • Loading branch information
p-offtermatt committed Jun 12, 2024
1 parent bd74a4a commit 3e7d364
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion x/ccv/provider/keeper/relay.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion x/ccv/provider/migrations/v6/migrations.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3e7d364

Please sign in to comment.