forked from cometbft/cometbft
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from osmosis-labs/adam/sort-peer-upstream
feat(blocksync): sort peers by download rate & multiple requests for closer blocks
- Loading branch information
Showing
7 changed files
with
310 additions
and
110 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/improvements/2475-blocksync-2nd-request.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `[blocksync]` Request a block from peer B if we are approaching pool's height | ||
(less than 50 blocks) and the current peer A is slow in sending us the | ||
block [\#2475](https://github.com/cometbft/cometbft/pull/2475) |
3 changes: 3 additions & 0 deletions
3
.changelog/unreleased/improvements/2475-blocksync-no-block-response.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
- `[blocksync]` Request the block N from peer B immediately after getting | ||
`NoBlockResponse` from peer A | ||
[\#2475](https://github.com/cometbft/cometbft/pull/2475) |
2 changes: 2 additions & 0 deletions
2
.changelog/unreleased/improvements/2475-blocksync-sort-peers.md
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
- `[blocksync]` Sort peers by download rate (the fastest peer is picked first) | ||
[\#2475](https://github.com/cometbft/cometbft/pull/2475) |
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
Oops, something went wrong.