ソースを参照

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 年 前
コミット
a7120c6fca
2 ファイル変更0 行追加5 行削除
  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) => {