Wait with mining until up to date
This commit is contained in:
@ -34,11 +34,10 @@ func DoMining(ethereum *eth.Ethereum) {
|
|||||||
// Give it some time to connect with peers
|
// Give it some time to connect with peers
|
||||||
time.Sleep(3 * time.Second)
|
time.Sleep(3 * time.Second)
|
||||||
|
|
||||||
/*
|
|
||||||
for ethereum.IsUpToDate() == false {
|
for ethereum.IsUpToDate() == false {
|
||||||
time.Sleep(5 * time.Second)
|
time.Sleep(5 * time.Second)
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
ethutil.Config.Log.Infoln("Miner started")
|
ethutil.Config.Log.Infoln("Miner started")
|
||||||
|
|
||||||
miner := ethminer.NewDefaultMiner(addr, ethereum)
|
miner := ethminer.NewDefaultMiner(addr, ethereum)
|
||||||
|
Reference in New Issue
Block a user