-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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): impl EthApiServer
helper traits on type like EthApi
#8799
Conversation
Signed-off-by: jsvisa <delweng@gmail.com>
Co-authored-by: Emilia Hane <elsaemiliaevahane@gmail.com>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de> Co-authored-by: Oliver Nordbjerg <hi@notbjerg.me>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Matthias Seitz <matthias.seitz@outlook.de>
Co-authored-by: Dan Cline <6798349+Rjected@users.noreply.github.com> Co-authored-by: Oliver <onbjerg@users.noreply.github.com>
3c064fb
to
f7b076d
Compare
…ype with data layout like EthApi
EthApi
helper traits on type like EthApi
EthApiServer
helper traits on type like EthApi
93c1d96
to
31960d3
Compare
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.
the helper macros make sense, to quickly implement the sub trait
#[cfg(feature = "optimism")] | ||
deposit_nonce: None, | ||
#[cfg(feature = "optimism")] | ||
deposit_receipt_version: None, |
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.
we need to find a way to get rid of these features
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.
yeah...I know...
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.
they should be able to remove when optimism feature is entirely removed from the crate, as long as we have some dep for which we pull in optimism feature, likelihood that that crate pulls in reth-primitives
with optimism feature, is very high - and we're screwed
LoadPendingBlock
, so it can be reused for any network stack.EthApiServer
on types with same data layout asEthApi
. This makes it quick to implement customEthApiServer
behaviour for other networks, that are identical in data layout toEthApi
, likeOptimismApi
.