From a7120c6fca2f660aa03d4814664aea7cfad3e563 Mon Sep 17 00:00:00 2001 From: skoupidi Date: Sat, 27 Jan 2024 01:05:13 +0200 Subject: [PATCH] lilith: remove missleading todo We can't configure multiple networks with same name in .toml files so they are already differentiated. Additionally, each one will use their configured version attribute as app network version. --- bin/lilith/lilith_config.toml | 1 - bin/lilith/src/main.rs | 4 ---- 2 files changed, 5 deletions(-) diff --git a/bin/lilith/lilith_config.toml b/bin/lilith/lilith_config.toml index 14daa49a1..88447b9ad 100644 --- a/bin/lilith/lilith_config.toml +++ b/bin/lilith/lilith_config.toml @@ -18,7 +18,6 @@ #localnet = false #hostlist ="~/.local/darkfi/lilith/darkfid_sync_hostlist.tsv" - #[network."darkfid_consensus_v4"] #accept_addrs = ["tcp+tls://0.0.0.0:33023"] #seeds = [] diff --git a/bin/lilith/src/main.rs b/bin/lilith/src/main.rs index e64165ffc..978f2a218 100644 --- a/bin/lilith/src/main.rs +++ b/bin/lilith/src/main.rs @@ -336,10 +336,6 @@ async fn realmain(args: Args, ex: Arc>) -> Result<()> { // Spawn configured networks let mut networks = vec![]; for (name, info) in &configured_nets { - // TODO: Here we could actually differentiate between network versions - // e.g. p2p_v3, p2p_v4, etc. Therefore we can spawn multiple networks - // and they would all be version-checked, so we avoid mismatches when - // seeding peers. match spawn_net(name.to_string(), info, ex.clone()).await { Ok(spawn) => networks.push(spawn), Err(e) => {