Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
netsync: change checkHeadersList behavior
2 things are changed: 1: We allow checkHeadersList to remove from the headerList even if the SyncManager is not in headers-first mode as we're now receiving headers for new block annoucements. 2: We remove headers when we no longer have checkpoints as the main reason we keep the last headerNode is to check that the next checkpoint connects. This is not needed on headers-first with no checkpoints as we don't perform that check. This is also not needed on new block annoucements as we will have the chain tip.
- Loading branch information