aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/utils
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-03-15 06:37:21 +0800
committerobscuren <geffobscura@gmail.com>2015-03-15 06:37:21 +0800
commitd9966d615813130c8d31b3b10a59d43d00fd9943 (patch)
treeb5a196dd1ef20050160eb384c876ccaba1c4eebf /cmd/utils
parent12cee1377f8795608bae3cad38ee22c032b3b865 (diff)
parent67f8f83a1ba2a4dbd0f6f2fd075bb440f5c420ad (diff)
downloaddexon-d9966d615813130c8d31b3b10a59d43d00fd9943.tar
dexon-d9966d615813130c8d31b3b10a59d43d00fd9943.tar.gz
dexon-d9966d615813130c8d31b3b10a59d43d00fd9943.tar.bz2
dexon-d9966d615813130c8d31b3b10a59d43d00fd9943.tar.lz
dexon-d9966d615813130c8d31b3b10a59d43d00fd9943.tar.xz
dexon-d9966d615813130c8d31b3b10a59d43d00fd9943.tar.zst
dexon-d9966d615813130c8d31b3b10a59d43d00fd9943.zip
merge
Diffstat (limited to 'cmd/utils')
-rw-r--r--cmd/utils/flags.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go
index 990fb08e0..6bcd7e811 100644
--- a/cmd/utils/flags.go
+++ b/cmd/utils/flags.go
@@ -191,8 +191,8 @@ func GetNodeKey(ctx *cli.Context) (key *ecdsa.PrivateKey) {
return key
}
-func GetEthereum(clientID, version string, ctx *cli.Context) (*eth.Ethereum, error) {
- return eth.New(&eth.Config{
+func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config {
+ return &eth.Config{
Name: ethutil.MakeName(clientID, version),
DataDir: ctx.GlobalString(DataDirFlag.Name),
LogFile: ctx.GlobalString(LogFileFlag.Name),
@@ -208,7 +208,7 @@ func GetEthereum(clientID, version string, ctx *cli.Context) (*eth.Ethereum, err
Shh: true,
Dial: true,
BootNodes: ctx.GlobalString(BootnodesFlag.Name),
- })
+ }
}
func GetChain(ctx *cli.Context) (*core.ChainManager, ethutil.Database, ethutil.Database) {