feat: extract optimism sequencer client to node-optimism (#7482)

This commit is contained in:
Matthias Seitz
2024-04-05 23:35:02 +02:00
committed by GitHub
parent 71c404d9cb
commit b89af430e2
27 changed files with 221 additions and 163 deletions

View File

@ -27,5 +27,4 @@ tokio = { workspace = true, features = ["sync"] }
[features]
default = ["serde"]
serde = ["dep:serde"]
optimism = []
serde = ["dep:serde"]

View File

@ -46,10 +46,6 @@ pub trait NetworkInfo: Send + Sync {
/// Returns `true` when the node is undergoing the very first Pipeline sync.
fn is_initially_syncing(&self) -> bool;
/// Returns the sequencer HTTP endpoint, if set.
#[cfg(feature = "optimism")]
fn sequencer_endpoint(&self) -> Option<&str>;
}
/// Provides general purpose information about Peers in the network.

View File

@ -51,11 +51,6 @@ impl NetworkInfo for NoopNetwork {
fn is_initially_syncing(&self) -> bool {
false
}
#[cfg(feature = "optimism")]
fn sequencer_endpoint(&self) -> Option<&str> {
None
}
}
impl PeersInfo for NoopNetwork {