|
|
@ -182,8 +182,8 @@ func (cli *grpcClient) QueryAsync(query []byte) *ReqRes { |
|
|
|
return cli.finishAsyncCall(req, &types.Response{&types.Response_Query{res}}) |
|
|
|
} |
|
|
|
|
|
|
|
func (cli *grpcClient) ProofAsync(key []byte) *ReqRes { |
|
|
|
req := types.ToRequestProof(key) |
|
|
|
func (cli *grpcClient) ProofAsync(key []byte, blockHeight int64) *ReqRes { |
|
|
|
req := types.ToRequestProof(key, blockHeight) |
|
|
|
res, err := cli.client.Proof(context.Background(), req.GetProof(), grpc.FailFast(true)) |
|
|
|
if err != nil { |
|
|
|
cli.StopForError(err) |
|
|
@ -310,8 +310,8 @@ func (cli *grpcClient) CheckTxSync(tx []byte) (res types.Result) { |
|
|
|
return types.Result{Code: resp.Code, Data: resp.Data, Log: resp.Log} |
|
|
|
} |
|
|
|
|
|
|
|
func (cli *grpcClient) ProofSync(key []byte) (res types.Result) { |
|
|
|
reqres := cli.ProofAsync(key) |
|
|
|
func (cli *grpcClient) ProofSync(key []byte, blockHeight int64) (res types.Result) { |
|
|
|
reqres := cli.ProofAsync(key, blockHeight) |
|
|
|
if res := cli.checkErrGetResult(); res.IsErr() { |
|
|
|
return res |
|
|
|
} |
|
|
|