diff --git a/crates/topos/src/components/node/services/process.rs b/crates/topos/src/components/node/services/process.rs index 992111ce2..bbf545f92 100644 --- a/crates/topos/src/components/node/services/process.rs +++ b/crates/topos/src/components/node/services/process.rs @@ -87,11 +87,7 @@ pub(crate) fn spawn_tce_process( let tce_params = ReliableBroadcastParams::new(validators.len()); let tce_config = TceConfiguration { - boot_peers: genesis - .boot_peers(Some(topos_p2p::constants::TCE_BOOTNODE_PORT)) - .into_iter() - .chain(config.parse_boot_peers()) - .collect::>(), + boot_peers: config.parse_boot_peers(), validators, auth_key: keys.network.map(AuthKey::PrivateKey), signing_key: keys.validator.map(AuthKey::PrivateKey), diff --git a/crates/topos/src/config/tce.rs b/crates/topos/src/config/tce.rs index 3bd483127..92a5c772a 100644 --- a/crates/topos/src/config/tce.rs +++ b/crates/topos/src/config/tce.rs @@ -16,8 +16,8 @@ pub struct TceConfig { /// Storage database path, if not set RAM storage is used #[serde(default = "default_db_path")] pub db_path: PathBuf, - /// Array of extra boot nodes to connect to - pub extra_boot_peers: Option, + /// Boot peers for the p2p network + pub boot_peers: String, /// Ip for the p2p Multiaddr pub tce_ext_host: Option, /// Port for the p2p Multiaddr @@ -80,9 +80,8 @@ const fn default_metrics_api_addr() -> SocketAddr { impl TceConfig { pub fn parse_boot_peers(&self) -> Vec<(PeerId, Multiaddr)> { - self.extra_boot_peers + self.boot_peers .clone() - .unwrap_or_default() .split(&[',', ' ']) .map(|s| s.to_string()) .collect::>()