diff options
author | Wei-Ning Huang <w@dexon.org> | 2018-10-24 18:59:48 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@byzantine-lab.io> | 2019-06-12 17:27:17 +0800 |
commit | d8061c0557a43cc1f67ba59a73d13df1d4436a65 (patch) | |
tree | 84547a42be163047e9715bb0c8b5af66251d0c86 /cmd/swarm | |
parent | 185c358e4e0e430df9cd68f85888e8b142786609 (diff) | |
download | go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.tar go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.tar.gz go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.tar.bz2 go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.tar.lz go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.tar.xz go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.tar.zst go-tangerine-d8061c0557a43cc1f67ba59a73d13df1d4436a65.zip |
Rename geth -> gdex and fix Dockerfile
Diffstat (limited to 'cmd/swarm')
-rw-r--r-- | cmd/swarm/config.go | 2 | ||||
-rw-r--r-- | cmd/swarm/config_test.go | 12 | ||||
-rw-r--r-- | cmd/swarm/main.go | 6 |
3 files changed, 10 insertions, 10 deletions
diff --git a/cmd/swarm/config.go b/cmd/swarm/config.go index 68f15184f..39f26a7e1 100644 --- a/cmd/swarm/config.go +++ b/cmd/swarm/config.go @@ -127,7 +127,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 (gdex --datadir) config.Path = expandPath(stack.InstanceDir()) //finally, initialize the configuration config.Init(prvkey) diff --git a/cmd/swarm/config_test.go b/cmd/swarm/config_test.go index 6bc613274..17abb7c78 100644 --- a/cmd/swarm/config_test.go +++ b/cmd/swarm/config_test.go @@ -473,7 +473,7 @@ func TestConfigValidate(t *testing.T) { }{ { cfg: &api.Config{EnsAPIs: []string{ - "/data/testnet/geth.ipc", + "/data/testnet/gdex.ipc", }}, }, { @@ -488,7 +488,7 @@ func TestConfigValidate(t *testing.T) { }, { cfg: &api.Config{EnsAPIs: []string{ - "test:/data/testnet/geth.ipc", + "test:/data/testnet/gdex.ipc", }}, }, { @@ -498,7 +498,7 @@ func TestConfigValidate(t *testing.T) { }, { cfg: &api.Config{EnsAPIs: []string{ - "314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/geth.ipc", + "314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/gdex.ipc", }}, }, { @@ -513,7 +513,7 @@ func TestConfigValidate(t *testing.T) { }, { cfg: &api.Config{EnsAPIs: []string{ - "test:314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/geth.ipc", + "test:314159265dD8dbb310642f98f50C066173C1259b@/data/testnet/gdex.ipc", }}, }, { @@ -546,9 +546,9 @@ func TestConfigValidate(t *testing.T) { }, { cfg: &api.Config{EnsAPIs: []string{ - "@/data/testnet/geth.ipc", + "@/data/testnet/gdex.ipc", }}, - err: "invalid format [tld:][contract-addr@]url for ENS API endpoint configuration \"@/data/testnet/geth.ipc\": missing contract address", + err: "invalid format [tld:][contract-addr@]url for ENS API endpoint configuration \"@/data/testnet/gdex.ipc\": missing contract address", }, } { err := validateConfig(c.cfg) diff --git a/cmd/swarm/main.go b/cmd/swarm/main.go index 362c1717b..23d0a22e1 100644 --- a/cmd/swarm/main.go +++ b/cmd/swarm/main.go @@ -91,7 +91,7 @@ var defaultSubcommandHelp = cli.Command{ var defaultNodeConfig = node.DefaultConfig -// This init function sets defaults so cmd/swarm can run alongside geth. +// This init function sets defaults so cmd/swarm can run alongside gdex. func init() { sv.GitCommit = gitCommit defaultNodeConfig.Name = clientIdentifier @@ -275,9 +275,9 @@ func bzzd(ctx *cli.Context) error { //pss operates on ws cfg.WSModules = append(cfg.WSModules, "pss") - //geth only supports --datadir via command line + //gdex only supports --datadir via command line //in order to be consistent within swarm, if we pass --datadir via environment variable - //or via config file, we get the same directory for geth and swarm + //or via config file, we get the same directory for gdex and swarm if _, err := os.Stat(bzzconfig.Path); err == nil { cfg.DataDir = bzzconfig.Path } |