forked from cerc-io/plugeth
Wait with mining until up to date
This commit is contained in:
parent
d16d56d39f
commit
0bccf1c3cd
@ -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…
Reference in New Issue
Block a user