diff options
author | obscuren <geffobscura@gmail.com> | 2015-01-06 00:12:52 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2015-01-06 00:12:52 +0800 |
commit | f16810c48e7cb753844d6eea1a68361fc1539389 (patch) | |
tree | ae5c101adcb000c9e8030eb1108b8dae37bb55e5 /cmd/utils | |
parent | 66b05433b6c87a6d31d9508e3e930e5199dbfcde (diff) | |
download | dexon-f16810c48e7cb753844d6eea1a68361fc1539389.tar.gz dexon-f16810c48e7cb753844d6eea1a68361fc1539389.tar.zst dexon-f16810c48e7cb753844d6eea1a68361fc1539389.zip |
added shh back in
Diffstat (limited to 'cmd/utils')
-rw-r--r-- | cmd/utils/cmd.go | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/cmd/utils/cmd.go b/cmd/utils/cmd.go index 7e6dd5f91..d01d9da9f 100644 --- a/cmd/utils/cmd.go +++ b/cmd/utils/cmd.go @@ -100,7 +100,11 @@ func exit(err error) { func StartEthereum(ethereum *eth.Ethereum, UseSeed bool) { clilogger.Infof("Starting %s", ethereum.ClientIdentity()) - ethereum.Start(UseSeed) + err := ethereum.Start(UseSeed) + if err != nil { + exit(err) + } + RegisterInterrupt(func(sig os.Signal) { ethereum.Stop() logger.Flush() |