diff options
Diffstat (limited to 'utils/cmd.go')
-rw-r--r-- | utils/cmd.go | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/utils/cmd.go b/utils/cmd.go index 98005d7de..f8b7b5fe2 100644 --- a/utils/cmd.go +++ b/utils/cmd.go @@ -40,6 +40,13 @@ func DoMining(ethereum *eth.Ethereum) { // Give it some time to connect with peers time.Sleep(3 * time.Second) + for ethereum.IsUpToDate() == false { + time.Sleep(5 * time.Second) + } + + ethutil.Config.Log.Infoln("Miner started") + + miner := ethminer.NewDefaultMiner(addr, ethereum) miner.Start() }() } |