diff options
author | zelig <viktor.tron@gmail.com> | 2015-04-22 08:36:28 +0800 |
---|---|---|
committer | zelig <viktor.tron@gmail.com> | 2015-04-24 19:45:11 +0800 |
commit | 1b7c017076ae578a89a18b5c7ffc61e9c8d59eee (patch) | |
tree | df073d22cc7e272049879dbcd730c3e32906c7c0 /cmd | |
parent | be843959cbc294ba8d75f66e492386fb1b7282df (diff) | |
download | go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar.gz go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar.bz2 go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar.lz go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar.xz go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar.zst go-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.zip |
cli: fatal error if no etherbase for mining
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/geth/main.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/cmd/geth/main.go b/cmd/geth/main.go index 083d1c88a..70be2ed2e 100644 --- a/cmd/geth/main.go +++ b/cmd/geth/main.go @@ -359,7 +359,9 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) { } } if ctx.GlobalBool(utils.MiningEnabledFlag.Name) { - eth.StartMining() + if err := eth.StartMining(); err != nil { + utils.Fatalf("%v", err) + } } } |