Commit 1b7c0170 authored by zelig's avatar zelig

cli: fatal error if no etherbase for mining

parent be843959
...@@ -359,7 +359,9 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) { ...@@ -359,7 +359,9 @@ func startEth(ctx *cli.Context, eth *eth.Ethereum) {
} }
} }
if ctx.GlobalBool(utils.MiningEnabledFlag.Name) { if ctx.GlobalBool(utils.MiningEnabledFlag.Name) {
eth.StartMining() if err := eth.StartMining(); err != nil {
utils.Fatalf("%v", err)
}
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment