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

Clean up chain exchange responses and peer disconnects #929

Merged
merged 4 commits into from
Jan 15, 2021

Conversation

austinabell
Copy link
Contributor

Summary of changes
Changes introduced in this pull request:

  • Changes chain exchange channel type to be result to pass in internal libp2p errors, was previously leaving to timeout
  • Removes peers from cx peer list on error other than timeout
  • Update shuffled peers prefix (amount of peers each request is sent to before failing)

With these changes, sync doesn't reset sporatically and duplicate faulty requests don't get sent

Reference issue to close (if applicable)

Closes

Other information and links

@austinabell austinabell merged commit a2ac955 into main Jan 15, 2021
@austinabell austinabell deleted the austin/cxpeers branch January 15, 2021 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants