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: simplify and relax some RPC bounds #13202

Merged
merged 4 commits into from
Dec 7, 2024
Merged

Conversation

klkvr
Copy link
Member

@klkvr klkvr commented Dec 7, 2024

This PR updates DebugApi, TraceApi, EthPubSub and EthFilters so that they obtain provider and network handle from EthApi which is required to hold both through RpcNodeCore. This allowed to simplify some of the bounds

Additionally this relaxes bounds for DebugApi to not depend on concrete primitives and for ValidationApi to not depend on concrete receipt type, further abstraction of ValidationApi is blocked by abstraction of ExecutionPayloadValidator over block and payload

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.

very nice

@mattsse mattsse added this pull request to the merge queue Dec 7, 2024
Merged via the queue into main with commit 9167e45 Dec 7, 2024
42 checks passed
@mattsse mattsse deleted the klkvr/less-generics-rpc branch December 7, 2024 03:51
lean-apple pushed a commit to lean-apple/reth that referenced this pull request Dec 12, 2024
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.

2 participants