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

feat: make more network components generic over primitives #12481

Merged
merged 3 commits into from
Nov 12, 2024

Conversation

klkvr
Copy link
Collaborator

@klkvr klkvr commented Nov 12, 2024

This PR trims Block trait to only keep header and body getters for now and implements the trait for reth_primitives::Block

Network components and their dependencies up to Swarm are made generic over NetworkPrimitives. The next step would be to make NetworkManager and NetworkHandle generic over it, exposing the primitives abstraction to network consumers

Copy link
Collaborator

@mattsse mattsse left a comment

Choose a reason for hiding this comment

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

lgtm!

Copy link
Collaborator

Choose a reason for hiding this comment

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

trimming this down makes sense
we can easily add more things back once we need it

@mattsse mattsse added the A-networking Related to networking in general label Nov 12, 2024
@mattsse mattsse added this pull request to the merge queue Nov 12, 2024
Merged via the queue into main with commit b399576 Nov 12, 2024
41 checks passed
@mattsse mattsse deleted the klkvr/network-generics branch November 12, 2024 19:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-networking Related to networking in general
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants