Skip to content

Commit

Permalink
wait if td is the same
Browse files Browse the repository at this point in the history
  • Loading branch information
yutianwu committed Sep 26, 2021
1 parent 065e69e commit 77f19d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consensus/parlia/parlia.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 77f19d4

Please sign in to comment.