-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
There was a problem hiding this 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
pub trait EthApiSpec: | ||
RpcNodeCore< | ||
Provider: ChainSpecProvider<ChainSpec: EthereumHardforks> | ||
+ BlockNumReader | ||
+ StageCheckpointReader, | ||
Network: NetworkInfo, | ||
> + Send | ||
+ Sync | ||
{ |
There was a problem hiding this comment.
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
Ref #11422
Based on #10616
Removes
EthApiSpec::provider
andEthApiSpec::network
, by addingRpcNodeCore
as super trait toEthApiSpec
.