MCPcopy Create free account
hub / github.com/tendermint/tendermint / QuerySync

Method QuerySync

abci/client/socket_client.go:348–357  ·  view source on GitHub ↗
(
	ctx context.Context,
	req types.RequestQuery,
)

Source from the content-addressed store, hash-verified

346}
347
348func (cli *socketClient) QuerySync(
349 ctx context.Context,
350 req types.RequestQuery,
351) (*types.ResponseQuery, error) {
352 reqres, err := cli.queueRequestAndFlushSync(ctx, types.ToRequestQuery(req))
353 if err != nil {
354 return nil, err
355 }
356 return reqres.Response.GetQuery(), nil
357}
358
359func (cli *socketClient) CommitSync(ctx context.Context) (*types.ResponseCommit, error) {
360 reqres, err := cli.queueRequestAndFlushSync(ctx, types.ToRequestCommit())

Callers

nothing calls this directly

Calls 3

ToRequestQueryFunction · 0.92
GetQueryMethod · 0.45

Tested by

no test coverage detected