Skip to content

Commit

Permalink
fix maxValidators
Browse files Browse the repository at this point in the history
  • Loading branch information
ylsGit committed Jan 11, 2024
1 parent 6b97af6 commit 86b59b8
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 86b59b8

Please sign in to comment.