Commit 0ed9528d authored by Ethan Buchman's avatar Ethan Buchman

fix: miner wait untill UpToDate

parent 328ee9a3
......@@ -204,7 +204,7 @@ func StartMining(ethereum *eth.Ethereum) bool {
miner = ethminer.NewDefaultMiner(addr, ethereum)
// Give it some time to connect with peers
time.Sleep(3 * time.Second)
for !ethereum.IsUpToDate() == false {
for !ethereum.IsUpToDate() {
time.Sleep(5 * time.Second)
}
......
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