mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-03 18:13:48 +00:00
cli: fatal error if no etherbase for mining
This commit is contained in:
parent
be843959cb
commit
1b7c017076
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue