forked from cerc-io/laconicd-deprecated
imp(rpc,server): concurrent gRPC queries (#1352)
* Problem: grpc query is not run concurrently Solution: - Initiate the GRPCClient introduced in [sdk 0.46](https://github.com/cosmos/cosmos-sdk/pull/11234). * Update CHANGELOG.md * Update CHANGELOG.md * Update server/start.go Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com> * wrap error * Update server/start.go * more complete copy * fix grpc crash Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
This commit is contained in:
co-authored by
Federico Kunze Küllmer
parent
34226aa7b1
commit
65740193f9
@@ -106,7 +106,7 @@ func (k Keeper) ValidatorAccount(c context.Context, req *types.QueryValidatorAcc
|
||||
|
||||
validator, found := k.stakingKeeper.GetValidatorByConsAddr(ctx, consAddr)
|
||||
if !found {
|
||||
return nil, nil
|
||||
return nil, fmt.Errorf("validator not found for %s", consAddr.String())
|
||||
}
|
||||
|
||||
accAddr := sdk.AccAddress(validator.GetOperator())
|
||||
|
||||
Reference in New Issue
Block a user