Skip to content

Commit

Permalink
fix: miner wait untill UpToDate
Browse files Browse the repository at this point in the history
  • Loading branch information
ebuchman committed Jul 1, 2014
1 parent 328ee9a commit 0ed9528
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}

Expand Down

0 comments on commit 0ed9528

Please sign in to comment.