diff options
author | Péter Szilágyi <peterke@gmail.com> | 2019-06-12 16:24:24 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2019-06-20 14:40:26 +0800 |
commit | e3ec77f50e7e11c7f38bc87b1981afe9df240a2a (patch) | |
tree | dc838ad2a2df25cff20e00ee699e229d4d7e0be1 /cmd/geth/config.go | |
parent | 2b546660187e8b693b6bbe5ec0fc74bfc008d1d3 (diff) | |
download | go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.tar go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.tar.gz go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.tar.bz2 go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.tar.lz go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.tar.xz go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.tar.zst go-tangerine-e3ec77f50e7e11c7f38bc87b1981afe9df240a2a.zip |
cmd, graphql, node: graphql flag polishes, les integration
Diffstat (limited to 'cmd/geth/config.go')
-rw-r--r-- | cmd/geth/config.go | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/cmd/geth/config.go b/cmd/geth/config.go index 8f0bae822..3b63d6913 100644 --- a/cmd/geth/config.go +++ b/cmd/geth/config.go @@ -30,7 +30,6 @@ import ( "github.com/ethereum/go-ethereum/cmd/utils" "github.com/ethereum/go-ethereum/dashboard" "github.com/ethereum/go-ethereum/eth" - "github.com/ethereum/go-ethereum/graphql" "github.com/ethereum/go-ethereum/node" "github.com/ethereum/go-ethereum/params" whisper "github.com/ethereum/go-ethereum/whisper/whisperv6" @@ -177,14 +176,10 @@ func makeFullNode(ctx *cli.Context) *node.Node { } utils.RegisterShhService(stack, &cfg.Shh) } - - // Configure GraphQL if required + // Configure GraphQL if requested if ctx.GlobalIsSet(utils.GraphQLEnabledFlag.Name) { - if err := graphql.RegisterGraphQLService(stack, cfg.Node.GraphQLEndpoint(), cfg.Node.GraphQLCors, cfg.Node.GraphQLVirtualHosts, cfg.Node.HTTPTimeouts); err != nil { - utils.Fatalf("Failed to register the Ethereum service: %v", err) - } + utils.RegisterGraphQLService(stack, cfg.Node.GraphQLEndpoint(), cfg.Node.GraphQLCors, cfg.Node.GraphQLVirtualHosts, cfg.Node.HTTPTimeouts) } - // Add the Ethereum Stats daemon if requested. if cfg.Ethstats.URL != "" { utils.RegisterEthStatsService(stack, cfg.Ethstats.URL) |