浏览代码

fix: miner wait untill UpToDate

Ethan Buchman 11 年之前
父节点
当前提交
0ed9528d76
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      utils/cmd.go

+ 1 - 1
utils/cmd.go

@@ -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)
 			}