good morning!!!!

Skip to content
Snippets Groups Projects
Commit 0bccf1c3 authored by Maran Hidskes's avatar Maran Hidskes
Browse files

Wait with mining until up to date

parent d16d56d3
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment