Populate discovery from node table

This commit is contained in:
arkpar
2016-02-15 20:28:27 +01:00
parent 4b9c7f7517
commit 01a83e6031
3 changed files with 17 additions and 2 deletions

View File

@@ -386,6 +386,7 @@ impl<Message> Host<Message> where Message: Send + Sync + Clone {
for n in boot_nodes {
host.add_node(&n);
}
host.discovery.lock().unwrap().init_node_list(host.nodes.read().unwrap().unordered_entries());
host
}