feat: gRPC query for operator and chain configuration (#13485)
This commit is contained in:
@@ -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
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user