mirror of
https://github.com/darkrenaissance/darkfi.git
synced 2026-04-28 03:00:18 -04:00
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:
@@ -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 = []
|
||||
|
||||
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user