Updates all discovery searches to predicate searches (#975)

* Update global gossip topic handling

* Adds ENR predicate searches to lighthouse

* Correct log
This commit is contained in:
Age Manning
2020-04-01 16:25:52 +11:00
parent d766b7fa48
commit 5eb4c7d682
7 changed files with 126 additions and 67 deletions

View File

@@ -153,7 +153,7 @@ impl<TSpec: EthSpec> Service<TSpec> {
network_globals
.gossipsub_subscriptions
.write()
.push(topic.clone());
.insert(topic.clone());
} else {
warn!(log, "Could not subscribe to topic"; "topic" => format!("{}",topic_string));
}