diff --git a/src/node/rpc/mod.rs b/src/node/rpc/mod.rs index 2c2a8c402..ef09f7118 100644 --- a/src/node/rpc/mod.rs +++ b/src/node/rpc/mod.rs @@ -9,7 +9,7 @@ use reth::{ primitives::EthereumHardforks, providers::ChainSpecProvider, rpc::{ - eth::{DevSigner, FullEthApiServer}, + eth::{core::EthApiInner, DevSigner, FullEthApiServer}, server_types::eth::{EthApiError, EthStateCache, FeeHistoryCache, GasPriceOracle}, }, tasks::{ @@ -34,8 +34,6 @@ use reth_rpc_eth_api::{ }; use std::{fmt, sync::Arc}; -use reth_optimism_rpc::eth::EthApiNodeBackend; - mod block; mod call; pub mod engine_api; @@ -45,6 +43,14 @@ mod transaction; pub trait HlNodeCore: RpcNodeCore {} impl HlNodeCore for T where T: RpcNodeCore {} +/// Adapter for [`EthApiInner`], which holds all the data required to serve core `eth_` API. +pub type EthApiNodeBackend = EthApiInner< + ::Provider, + ::Pool, + ::Network, + ::Evm, +>; + /// Container type `HlEthApi` #[allow(missing_debug_implementations)] pub(crate) struct HlEthApiInner { @@ -58,6 +64,8 @@ pub struct HlEthApi { pub(crate) inner: Arc>, /// Converter for RPC types. tx_resp_builder: RpcConverter, + /// Whether the node is in HL node compliant mode. + pub(crate) hl_node_compliant: bool, } impl fmt::Debug for HlEthApi {