Parcourir la source

wait if td is the same

yutianwu il y a 4 ans
Parent
commit
77f19d435d
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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