-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fetch: requests got lost when there are no peers (#4849)
## Motivation requests are not restored back to the queue when there were no peers to dispatch to. ## Changes - restore requests when there are no peers - push mesh to still make progress even when there are missing blocks - increase frequency of state sync ## testing i manually test against mainnet, artificially causing GetPeers() to return zero peers. mesh was making very slow progress because it aborts as soon as it finds a missing block, not executing the next block even when it's available.
- Loading branch information
1 parent
e0575cb
commit 52710cc
Showing
4 changed files
with
120 additions
and
61 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
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