mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
fix: put noop helper behind feature (#6433)
This commit is contained in:
@ -14,6 +14,7 @@ use reth_discv4::Discv4ConfigBuilder;
|
||||
use reth_network::{
|
||||
config::NetworkMode, NetworkConfig, NetworkEvent, NetworkEvents, NetworkManager,
|
||||
};
|
||||
use reth_provider::test_utils::NoopProvider;
|
||||
use reth_tracing::{
|
||||
tracing::info, tracing_subscriber::filter::LevelFilter, LayerInfo, LogFormat, RethTracer,
|
||||
Tracer,
|
||||
@ -24,6 +25,7 @@ use std::{
|
||||
time::Duration,
|
||||
};
|
||||
use tokio_stream::StreamExt;
|
||||
|
||||
pub mod chain_cfg;
|
||||
|
||||
#[tokio::main]
|
||||
@ -49,7 +51,7 @@ async fn main() {
|
||||
.set_head(head())
|
||||
.network_mode(NetworkMode::Work)
|
||||
.listener_addr(local_addr)
|
||||
.build_with_noop_provider();
|
||||
.build(NoopProvider::default());
|
||||
|
||||
// Set Discv4 lookup interval to 1 second
|
||||
let mut discv4_cfg = Discv4ConfigBuilder::default();
|
||||
|
||||
Reference in New Issue
Block a user