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

refactor: remove genserver behavior from pending blocks #1141

Merged
merged 46 commits into from
Jul 4, 2024

Conversation

Arkenan
Copy link
Collaborator

@Arkenan Arkenan commented Jun 11, 2024

Changes:

  • Removes pending blocks genserver behavior
  • Creates Response proto for to differentiate results that come from requests, adding protocol_id as metadata.
  • Adds async requests that are dispatched by libp2p port instead of being sent to the requester.
  • Makes BlockDownloader and BlobDownloader's requests async.
  • Integrates handling of async responses with block and blob downloaders.
  • Makes pending blocks download blobs and blocks reactively.

Closes #1122 #1121

@Arkenan Arkenan changed the title Remove genserver behavior from pending blocks refactor: remove genserver behavior from pending blocks Jun 11, 2024
@Arkenan Arkenan marked this pull request as ready for review July 2, 2024 17:16
@Arkenan Arkenan requested a review from a team as a code owner July 2, 2024 17:16
Copy link
Contributor

@avilagaston9 avilagaston9 left a comment

Choose a reason for hiding this comment

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

Awesome work!

test/unit/p2p/requests_test.exs Outdated Show resolved Hide resolved
Co-authored-by: Avila Gastón <72628438+avilagaston9@users.noreply.github.com>
@Arkenan Arkenan merged commit 3e2f78d into main Jul 4, 2024
19 checks passed
@Arkenan Arkenan deleted the remove_genserver_behavior_from_pending_blocks branch July 4, 2024 14:44
avilagaston9 added a commit that referenced this pull request Jul 4, 2024
Co-authored-by: Avila Gastón <72628438+avilagaston9@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Development

Successfully merging this pull request may close these issues.

[Pending blocks refactor] Remove add_block cast
2 participants