Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
sainoe committed Aug 22, 2024
1 parent 73ce1f6 commit 9e4fbde
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x/ccv/provider/keeper/grpc_query.go
Original file line number Diff line number Diff line change
Expand Up @@ -335,17 +335,17 @@ func (k Keeper) QueryConsumerValidators(goCtx context.Context, req *types.QueryC

ctx := sdk.UnwrapSDKContext(goCtx)

// check that consumer is initialized
// check that the consumer is initialized
initParams, err := k.GetConsumerInitializationParameters(ctx, consumerId)
if err != nil {
return nil, status.Error(codes.InvalidArgument, errorsmod.Wrap(types.ErrUnknownConsumerId, consumerId).Error())
}

// query consumer validator set
var consumerValSet []types.ConsensusValidator

var consumerValSet []types.ConsensusValidator
// if the consumer hasn't launched yet, compute the consumer validator set
if ctx.BlockTime().Before(initParams.SpawnTime) {
if ctx.BlockTime().Before(*initParams.SpawnTime) {
var bondedValidators []stakingtypes.Validator

powerParams, err := k.GetConsumerPowerShapingParameters(ctx, consumerId)
Expand Down

0 comments on commit 9e4fbde

Please sign in to comment.