Wait with mining until up to date

pull/94/head
Maran 11 years ago
parent d16d56d39f
commit 0bccf1c3cd
  1. 9
      utils/cmd.go

@ -34,11 +34,10 @@ 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)
}
*/
for ethereum.IsUpToDate() == false {
time.Sleep(5 * time.Second)
}
ethutil.Config.Log.Infoln("Miner started")
miner := ethminer.NewDefaultMiner(addr, ethereum)

Loading…
Cancel
Save