Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
blockchain: check total difficulty only when having same justified bl…
…ock number (axieinfinity#321) In fork choice, we only need to compare the difficulty of forks when the justified block numbers are the same in those forks. Otherwise, we choose the fork with higher justified block number. This commit fixes a bug in current fork choice to make it follow the correct behavior.
- Loading branch information