aboutsummaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorzelig <viktor.tron@gmail.com>2015-04-22 08:36:28 +0800
committerzelig <viktor.tron@gmail.com>2015-04-24 19:45:11 +0800
commit1b7c017076ae578a89a18b5c7ffc61e9c8d59eee (patch)
treedf073d22cc7e272049879dbcd730c3e32906c7c0 /cmd
parentbe843959cbc294ba8d75f66e492386fb1b7282df (diff)
downloadgo-tangerine-1b7c017076ae578a89a18b5c7ffc61e9c8d59eee.tar.gz
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.go4
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)
+ }
}
}