feat: gRPC query for operator and chain configuration (#13485)

This commit is contained in:
Aleksandr Bezobchuk
2022-10-10 19:12:00 +00:00
committed by GitHub
parent 214b11dcba
commit c60c55616d
18 changed files with 1911 additions and 15 deletions
+2
View File
@@ -342,8 +342,10 @@ func startInProcess(ctx *Context, clientCtx client.Context, appCreator types.App
// case, because it spawns a new local tendermint RPC client.
if (config.API.Enable || config.GRPC.Enable) && tmNode != nil {
clientCtx := clientCtx.WithClient(local.New(tmNode))
app.RegisterTxService(clientCtx)
app.RegisterTendermintService(clientCtx)
app.RegisterNodeService(clientCtx)
}
metrics, err := startTelemetry(config)
+5 -2
View File
@@ -49,10 +49,13 @@ type (
// RegisterTxService registers the gRPC Query service for tx (such as tx
// simulation, fetching txs by hash...).
RegisterTxService(clientCtx client.Context)
RegisterTxService(client.Context)
// RegisterTendermintService registers the gRPC Query service for tendermint queries.
RegisterTendermintService(clientCtx client.Context)
RegisterTendermintService(client.Context)
// RegisterNodeService registers the node gRPC Query service.
RegisterNodeService(client.Context)
// Return the multistore instance
CommitMultiStore() sdk.CommitMultiStore