Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syncer Fixes #67

Merged
merged 7 commits into from
Feb 18, 2021
Merged

Syncer Fixes #67

merged 7 commits into from
Feb 18, 2021

Conversation

rahulghangas
Copy link
Contributor

@rahulghangas rahulghangas commented Feb 17, 2021

This PR

  • updates the syncer to send sync requests in parallel
  • implements a workaround so that additional (correct) sync messages received don't cause the channel to be dropped because the messages get filtered

Testing

  • Basic test passing
  • Full testing

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
@rahulghangas rahulghangas marked this pull request as ready for review February 17, 2021 20:42
peer/sync.go Outdated Show resolved Hide resolved
Copy link
Member

@jazg jazg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@rahulghangas rahulghangas merged commit 9345629 into experiment/functional Feb 18, 2021
@rahulghangas rahulghangas deleted the fix/sync-fixes branch March 8, 2021 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants