Move more engine API impl logic into type EngineAPI
#12276
Labels
C-enhancement
New feature or request
D-good-first-issue
Nice and easy! A great choice to get started
Describe the feature
This type implements the engine API for both ethereum and OP
reth/crates/rpc/rpc-engine-api/src/engine_api.rs
Line 45 in c74d2a0
via:
reth/crates/rpc/rpc-engine-api/src/engine_api.rs
Lines 635 to 636 in c74d2a0
most of the logic is already directly implemented on
EngineApi
, but some logic is still part of the trait impl, e.g.:reth/crates/rpc/rpc-engine-api/src/engine_api.rs
Lines 644 to 656 in c74d2a0
Eventually we want to use a different rpc server implementation for ethereum and OP but it would be nice if this only requires a trait impl and delegation.
for example:
effectively duplicating the function in
impl EngineApi
most of this already exists, but we can move even more, like metric updates.
this should be done as 1 PR per function
Additional context
No response
The text was updated successfully, but these errors were encountered: