fix(op): ensure EthApiServer helper trait method default impls, call OpEthApi overrides (#9879)

This commit is contained in:
Emilia Hane
2024-07-30 17:35:56 +02:00
committed by GitHub
parent cf10543d6d
commit e4ae2a7ac1
22 changed files with 400 additions and 239 deletions

View File

@ -27,6 +27,7 @@ enr = { workspace = true, default-features = false, features = ["rust-secp256k1"
thiserror.workspace = true
serde = { workspace = true, features = ["derive"], optional = true }
tokio = { workspace = true, features = ["sync"] }
auto_impl.workspace = true
[features]
default = ["serde"]

View File

@ -32,6 +32,7 @@ pub mod reputation;
pub mod noop;
/// Provides general purpose information about the network.
#[auto_impl::auto_impl(&, Arc)]
pub trait NetworkInfo: Send + Sync {
/// Returns the [`SocketAddr`] that listens for incoming connections.
fn local_addr(&self) -> SocketAddr;