mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 19:09:54 +00:00
refactor: clean-up discv5 configuration (#9143)
This commit is contained in:
@ -27,7 +27,7 @@ use reth_stages::Pipeline;
|
||||
use reth_static_file::StaticFileProducer;
|
||||
use reth_tasks::TaskExecutor;
|
||||
use reth_transaction_pool::noop::NoopTransactionPool;
|
||||
use std::{net::SocketAddr, path::PathBuf, sync::Arc, time::Duration};
|
||||
use std::{path::PathBuf, sync::Arc, time::Duration};
|
||||
use tokio::sync::oneshot;
|
||||
use tracing::*;
|
||||
|
||||
@ -65,11 +65,6 @@ impl Command {
|
||||
.network
|
||||
.network_config(config, provider_factory.chain_spec(), secret_key, default_peers_path)
|
||||
.with_task_executor(Box::new(task_executor))
|
||||
.listener_addr(SocketAddr::new(self.network.addr, self.network.port))
|
||||
.discovery_addr(SocketAddr::new(
|
||||
self.network.discovery.addr,
|
||||
self.network.discovery.port,
|
||||
))
|
||||
.build(provider_factory)
|
||||
.start_network()
|
||||
.await?;
|
||||
|
||||
Reference in New Issue
Block a user