浏览代码

wait if td is the same

yutianwu 4 年之前
父节点
当前提交
77f19d435d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      consensus/parlia/parlia.go

+ 1 - 1
consensus/parlia/parlia.go

@@ -895,7 +895,7 @@ func (p *Parlia) shouldWaitForCurrentBlockProcess(chain consensus.ChainHeaderRea
 		return false
 	}
 
-	if header.ParentHash == highestVerifiedHeader.ParentHash && header.Difficulty.Cmp(highestVerifiedHeader.Difficulty) < 0 {
+	if header.ParentHash == highestVerifiedHeader.ParentHash && header.Difficulty.Cmp(highestVerifiedHeader.Difficulty) <= 0 {
 		return true
 	}
 	return false