aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-07-04 06:14:17 +0800
committerobscuren <geffobscura@gmail.com>2014-07-04 06:14:17 +0800
commit24ff81d14ea8f83bf3693474cd30ee048e006abe (patch)
treeececb77916fabbadff279fb2636ecd759afd9057 /ethereum
parenta0dd1ebb6d7b449982602c796172405e7946581c (diff)
parent9de30d96f0362bc885d75a27bbd9c3d02af2d983 (diff)
downloaddexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.tar
dexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.tar.gz
dexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.tar.bz2
dexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.tar.lz
dexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.tar.xz
dexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.tar.zst
dexon-24ff81d14ea8f83bf3693474cd30ee048e006abe.zip
Merge branch 'ethersphere-feature/clientid' into develop
Diffstat (limited to 'ethereum')
-rw-r--r--ethereum/main.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/ethereum/main.go b/ethereum/main.go
index 1531871cb..e4d73d494 100644
--- a/ethereum/main.go
+++ b/ethereum/main.go
@@ -6,6 +6,11 @@ import (
"runtime"
)
+const (
+ ClientIdentifier = "Ethereum(G)"
+ Version = "0.5.16"
+)
+
var logger = ethlog.NewLogger("CLI")
func main() {
@@ -15,7 +20,7 @@ func main() {
// precedence: code-internal flag default < config file < environment variables < command line
Init() // parsing command line
- utils.InitConfig(ConfigFile, Datadir, Identifier, "ETH")
+ utils.InitConfig(ConfigFile, Datadir, "ETH")
utils.InitDataDir(Datadir)
@@ -28,7 +33,9 @@ func main() {
// create, import, export keys
utils.KeyTasks(keyManager, KeyRing, GenAddr, SecretFile, ExportDir, NonInteractive)
- ethereum := utils.NewEthereum(db, keyManager, UseUPnP, OutboundPort, MaxPeer)
+ clientIdentity := utils.NewClientIdentity(ClientIdentifier, Version, Identifier)
+
+ ethereum := utils.NewEthereum(db, clientIdentity, keyManager, UseUPnP, OutboundPort, MaxPeer)
if ShowGenesis {
utils.ShowGenesis(ethereum)