From a8477a1d57d6eb4b31b0446648cae907279568e7 Mon Sep 17 00:00:00 2001 From: AnilChinchawale Date: Tue, 22 May 2018 13:14:28 +0530 Subject: [PATCH] updated CONFIG.GO --- cmd/swarm/config.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go index adac772bab..a13ff875ba 100644 --- a/cmd/swarm/config.go +++ b/cmd/swarm/config.go @@ -70,7 +70,7 @@ const ( SWARM_ENV_ENS_ADDR = "SWARM_ENS_ADDR" SWARM_ENV_CORS = "SWARM_CORS" SWARM_ENV_BOOTNODES = "SWARM_BOOTNODES" - GETH_ENV_DATADIR = "GETH_DATADIR" + XDC_ENV_DATADIR = "XDC_DATADIR" ) // These settings ensure that TOML keys use the same names as Go struct fields. @@ -116,7 +116,7 @@ func initSwarmNode(config *bzzapi.Config, stack *node.Node, ctx *cli.Context) { //at this point, all vars should be set in the Config //get the account for the provided swarm account prvkey := getAccount(config.BzzAccount, ctx, stack) - //set the resolved config path (geth --datadir) + //set the resolved config path (XDC --datadir) config.Path = stack.InstanceDir() //finally, initialize the configuration config.Init(prvkey) @@ -243,7 +243,7 @@ func envVarsOverride(currentConfig *bzzapi.Config) (config *bzzapi.Config) { } } - if datadir := os.Getenv(GETH_ENV_DATADIR); datadir != "" { + if datadir := os.Getenv(XDC_ENV_DATADIR); datadir != "" { currentConfig.Path = datadir }