From 1b7c017076ae578a89a18b5c7ffc61e9c8d59eee Mon Sep 17 00:00:00 2001 From: zelig Date: Wed, 22 Apr 2015 01:36:28 +0100 Subject: cli: fatal error if no etherbase for mining --- cmd/geth/main.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'cmd/geth/main.go') 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) + } } } -- cgit