|
|
|
@ -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), |
|
|
|
|