diff options
author | obscuren <geffobscura@gmail.com> | 2015-04-19 06:09:12 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-04-19 06:09:12 +0800 |
commit | 71aa5fe8a31bdf12a38e940730e60964bbf4a1c0 (patch) | |
tree | 7a71713a6447f6a76e8f982f2527e73085473451 /cmd/utils | |
parent | 84f1af6413b172c7c88d567e8b9033197196b5bd (diff) | |
parent | 164b878854b58aed833eb704579343099854735f (diff) | |
download | dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.tar dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.tar.gz dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.tar.bz2 dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.tar.lz dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.tar.xz dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.tar.zst dexon-71aa5fe8a31bdf12a38e940730e60964bbf4a1c0.zip |
Merge branch 'downloader-proto' into develop
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/flags.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmd/utils/flags.go b/cmd/utils/flags.go index 8141fae82..a1d9eedda 100644 --- a/cmd/utils/flags.go +++ b/cmd/utils/flags.go @@ -89,6 +89,10 @@ var ( Usage: "Blockchain version", Value: core.BlockChainVersion, } + IdentityFlag = cli.StringFlag{ + Name: "identity", + Usage: "node name", + } // miner settings MinerThreadsFlag = cli.IntFlag{ @@ -242,6 +246,11 @@ func MakeEthConfig(clientID, version string, ctx *cli.Context) *eth.Config { // Set the log dir glog.SetLogDir(ctx.GlobalString(LogFileFlag.Name)) + customName := ctx.GlobalString(IdentityFlag.Name) + if len(customName) > 0 { + clientID += "/" + customName + } + return ð.Config{ Name: common.MakeName(clientID, version), DataDir: ctx.GlobalString(DataDirFlag.Name), |