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): define trait RpcNodeCoreExt and replace LoadBlock::cache #12141

Merged
merged 1 commit into from
Oct 28, 2024

Conversation

emhane
Copy link
Member

@emhane emhane commented Oct 28, 2024

Remove redundant trait method LoadBlock::cache by adding super trait RpcNodeCoreExt

@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 28, 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


/// Additional components, asides the core node components, needed to run `eth_` namespace API
/// server.
pub trait RpcNodeCoreExt: RpcNodeCore {
Copy link
Collaborator

Choose a reason for hiding this comment

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

oh yeah I like this, keeps it tidy and special eth traits can add the ext trait

@emhane emhane added this pull request to the merge queue Oct 28, 2024
Merged via the queue into main with commit b36b021 Oct 28, 2024
41 checks passed
@emhane emhane deleted the emhane/cache-rpc-node-core-ext branch October 28, 2024 16:17
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