瀏覽代碼

minor update

yutianwu 4 年之前
父節點
當前提交
7f9cdc4ae5
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      consensus/parlia/parlia.go

+ 2 - 2
consensus/parlia/parlia.go

@@ -886,7 +886,7 @@ func (p *Parlia) Seal(chain consensus.ChainHeaderReader, block *types.Block, res
 }
 
 func (p *Parlia) shouldWaitForCurrentBlockProcess(chain consensus.ChainHeaderReader, header *types.Header, snap *Snapshot) bool {
-	if snap.inturn(p.val) {
+	if header.Difficulty.Cmp(diffInTurn) == 0 {
 		return false
 	}
 
@@ -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 {
 		return true
 	}
 	return false