Kaynağa Gözat

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.
skoupidi 2 yıl önce
ebeveyn
işleme
a7120c6fca
2 değiştirilmiş dosya ile 0 ekleme ve 5 silme
  1. 0 1
      bin/lilith/lilith_config.toml
  2. 0 4
      bin/lilith/src/main.rs

+ 0 - 1
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 = []

+ 0 - 4
bin/lilith/src/main.rs

@@ -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) => {