cli: fatal error if no etherbase for mining

This commit is contained in:
zelig 2015-04-22 01:36:28 +01:00
parent be843959cb
commit 1b7c017076

View File

@ -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)
}
}
}