Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid ordering peers based on peerid in blockfetch
Peers where ordered based on SockAddr, which generally meant that all peers would pick the same second choice peer to download blocks from in Deadline mode. And the same third pick and so on. This changes ranking so that peers are sorted based on G.
- Loading branch information
Showing
2 changed files
with
37 additions
and
15 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