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.
This commit is contained in:
skoupidi
2024-01-27 01:05:13 +02:00
parent 9a2fad2c0f
commit a7120c6fca
2 changed files with 0 additions and 5 deletions

View File

@@ -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 = []

View File

@@ -336,10 +336,6 @@ async fn realmain(args: Args, ex: Arc<Executor<'static>>) -> 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) => {