cmd/geth: respect --graphql=false

This commit is contained in:
RekCuy63 2026-05-09 16:00:18 +08:00
parent 1f3989dc70
commit e3c661cd9a

View file

@ -270,7 +270,7 @@ func makeFullNode(ctx *cli.Context) *node.Node {
filterSystem := utils.RegisterFilterAPI(stack, backend, &cfg.Eth)
// Configure GraphQL if requested.
if ctx.IsSet(utils.GraphQLEnabledFlag.Name) {
if ctx.Bool(utils.GraphQLEnabledFlag.Name) {
utils.RegisterGraphQLService(stack, backend, filterSystem, &cfg.Node)
}
// Add the Ethereum Stats daemon if requested.