mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix(op): ensure EthApiServer helper trait method default impls, call OpEthApi overrides (#9879)
This commit is contained in:
@ -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"]
|
||||
|
||||
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user