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

chore(rpc): Remove provider and network trait methods from EthApiSpec #12050

Merged
merged 34 commits into from
Oct 26, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Oct 24, 2024

Ref #11422

Based on #10616

Removes EthApiSpec::provider and EthApiSpec::network, by adding RpcNodeCore as super trait to EthApiSpec.

@emhane emhane added C-debt Refactor of code section that is hard to understand or maintain A-rpc Related to the RPC implementation A-sdk Related to reth's use as a library labels Oct 24, 2024
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, we can discuss naming on #10616

Comment on lines +17 to +25
pub trait EthApiSpec:
RpcNodeCore<
Provider: ChainSpecProvider<ChainSpec: EthereumHardforks>
+ BlockNumReader
+ StageCheckpointReader,
Network: NetworkInfo,
> + Send
+ Sync
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

cool, I like this a lot, this allows us to extend the RpcNodeCore internals as we see fit, which will be important to tackle #12023

Base automatically changed from emhane/def-op-ethapi to main October 26, 2024 11:11
@emhane emhane enabled auto-merge October 26, 2024 12:49
@emhane emhane added this pull request to the merge queue Oct 26, 2024
Merged via the queue into main with commit a06c3af Oct 26, 2024
40 checks passed
@emhane emhane deleted the emhane/rpc-node-core-eth-api-spec branch October 26, 2024 13:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-rpc Related to the RPC implementation A-sdk Related to reth's use as a library C-debt Refactor of code section that is hard to understand or maintain
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants