diff options
author | Lewis Marshall <lewis@lmars.net> | 2017-06-30 17:10:41 +0800 |
---|---|---|
committer | Lewis Marshall <lewis@lmars.net> | 2017-06-30 17:16:03 +0800 |
commit | c7041fe1455541e59879df2b2d36984d49d1630b (patch) | |
tree | b30345bbd8dcfcc38589abf1a17ad24c120873a9 /cmd/swarm/run_test.go | |
parent | 41318f3776f3ecc09c2f482070bddc7433e00b14 (diff) | |
download | dexon-c7041fe1455541e59879df2b2d36984d49d1630b.tar.gz dexon-c7041fe1455541e59879df2b2d36984d49d1630b.tar.zst dexon-c7041fe1455541e59879df2b2d36984d49d1630b.zip |
cmd/swarm: Exit if --ethapi is set
The previous attempt to use --ethapi as a fallback if --ens-api is not
set does not work because --ens-api has a default value, and also
setting --ens-api to "" is the suggested way to disable ENS lookups.
Signed-off-by: Lewis Marshall <lewis@lmars.net>
Diffstat (limited to 'cmd/swarm/run_test.go')
-rw-r--r-- | cmd/swarm/run_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/swarm/run_test.go b/cmd/swarm/run_test.go index 2d32a51c8..05cbb27f1 100644 --- a/cmd/swarm/run_test.go +++ b/cmd/swarm/run_test.go @@ -194,7 +194,7 @@ func newTestNode(t *testing.T, dir string) *testNode { "--nodiscover", "--datadir", dir, "--ipcpath", conf.IPCPath, - "--ethapi", "", + "--ens-api", "", "--bzzaccount", account.Address.String(), "--bzznetworkid", "321", "--bzzport", httpPort, |