-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add ability to query n random elements from sorted array of IDs * chore: Add documentation * fix: update Syncer to send sync requests in parallel * fix: add wiggle timeout to allow redundant pending sync messages After the recption of a successful sync message, the pendingContent struct is deleted but a timeout is used before denying the content so that any additional sync requests that are still pending can be fullfilled respectfully. This allows honest nodes to still fulfill sync requests without their connection being dropped * fix: add wiggle timeout and following call to deny in goroutine so that call to Sync remains non-blocking * test: Add test for parallel syncing from multiple peers
- Loading branch information
Rahul Ghangas
committed
Feb 18, 2021
1 parent
61a5848
commit 9345629
Showing
3 changed files
with
91 additions
and
40 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