Skip to content

Commit

Permalink
Merge PR: fix maxValidators (#3282)
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsGit authored Jan 15, 2024
1 parent 345ad1d commit 0bd6b2c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion x/staking/keeper/keeper_ibc_adapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ func (k Keeper) GetLastValidators(ctx sdk.Context) (validators []outtypes.Valida

// sanity check
if i >= int(maxValidators) {
panic("more validators than maxValidators found")
break
//panic("more validators than maxValidators found")
}
address := types.AddressFromLastValidatorPowerKey(iterator.Key())
validator := k.mustGetValidator(ctx, address)
Expand Down

0 comments on commit 0bd6b2c

Please sign in to comment.