-
Notifications
You must be signed in to change notification settings - Fork 221
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: syncing from prune node (#5733)
Description --- This filters out nodes when deciding if we need to sync or not. Motivation and Context --- We should not try and sync from nodes that cannot provide us with the blocks we require. This can happen in two cases: 1. We are a pruned node and their pruning horizon is less then ours. 2. They are a pruning node and their effective pruned height is more than our current tip. This means that although we know we are behind, we should not enter syncing mode to those nodes as they will not be able to supply us the blocks we need, so we should not enter sync mode and destroy our current chain.
- Loading branch information
1 parent
3a7c227
commit 166f469
Showing
2 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters