mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
feat: extract optimism sequencer client to node-optimism (#7482)
This commit is contained in:
@ -27,5 +27,4 @@ tokio = { workspace = true, features = ["sync"] }
|
||||
|
||||
[features]
|
||||
default = ["serde"]
|
||||
serde = ["dep:serde"]
|
||||
optimism = []
|
||||
serde = ["dep:serde"]
|
||||
@ -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.
|
||||
|
||||
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user