diff --git a/bin/reth/src/lib.rs b/bin/reth/src/lib.rs index bf17d14d46..0ab0031555 100644 --- a/bin/reth/src/lib.rs +++ b/bin/reth/src/lib.rs @@ -36,4 +36,10 @@ struct NetworkOpts { /// Connect only to trusted peers #[arg(long)] trusted_only: bool, + + /// Bootnodes to connect to initially. + /// + /// Will fall back to a network-specific default if not specified. + #[arg(long, value_delimiter = ',')] + bootnodes: Option>, } diff --git a/bin/reth/src/node/mod.rs b/bin/reth/src/node/mod.rs index 9728cd4d44..baa435cb3c 100644 --- a/bin/reth/src/node/mod.rs +++ b/bin/reth/src/node/mod.rs @@ -19,7 +19,7 @@ use reth_interfaces::consensus::ForkchoiceState; use reth_net_nat::NatResolver; use reth_network::NetworkEvent; use reth_network_api::NetworkInfo; -use reth_primitives::{BlockNumber, ChainSpec, NodeRecord, H256}; +use reth_primitives::{BlockNumber, ChainSpec, H256}; use reth_stages::{ metrics::HeaderMetrics, stages::{ @@ -83,9 +83,6 @@ pub struct Command { #[clap(flatten)] network: NetworkOpts, - #[arg(long, value_delimiter = ',')] - bootnodes: Option>, - #[arg(long, default_value = "any")] nat: NatResolver, } @@ -129,7 +126,7 @@ impl Command { db.clone(), self.chain.clone(), self.network.disable_discovery, - self.bootnodes.clone(), + self.network.bootnodes.clone(), self.nat, ) .start_network()