wait if td is the same

This commit is contained in:
yutianwu 2021-09-26 19:09:31 +08:00
parent 065e69e320
commit 77f19d435d

@ -895,7 +895,7 @@ func (p *Parlia) shouldWaitForCurrentBlockProcess(chain consensus.ChainHeaderRea
return false 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 true
} }
return false return false