-
Notifications
You must be signed in to change notification settings - Fork 214
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sync: improve peer selection (#5208)
previous version had several downsides: - new peers weren't actively tried, unless they sent unique data. this version set new peer latency to 0.8 of average global latency, so that we can try it unless we are connected with a significantly faster peer. - if fast peer started to fail, node would continue to request from it until success rate shifts significantly. current version will de-prioritize it faster by scaling average latency with increased fail rate.
- Loading branch information
Showing
3 changed files
with
90 additions
and
125 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
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