Unverified Commit f73f2a86 authored by Max Inden's avatar Max Inden Committed by GitHub
Browse files

service/src/lib: Update authority discovery construction (#1563)

* service/src/lib: Update authority discovery construction

https://github.com/paritytech/substrate/pull/6760 introduces the concept
of an authority discovery `Service` allowing one to communicate with an
authority discovery `Worker`, e.g. to learn the `Multiaddr`s for a given
`AuthorityId`.

Along with the new `Service` structure it also alters the authority
discovery constructor to return both a worker and a service. This
commit adjusts the callside of the constructor, ignoring the `Service`
for now.

* "Update Substrate"

* Revert ""Update Substrate""

This reverts commit 04fb79c4.

* Update Substrate

Co-authored-by: parity-processbot <>
parent c78c2b46
Pipeline #103753 passed with stages
in 22 minutes and 8 seconds
This diff is collapsed.
......@@ -477,7 +477,7 @@ pub fn new_full<RuntimeApi, Executor>(
Event::Dht(e) => Some(e),
_ => None,
}}).boxed();
let authority_discovery = authority_discovery::AuthorityDiscovery::new(
let (authority_discovery_worker, _service) = authority_discovery::new_worker_and_service(
client.clone(),
network.clone(),
sentries,
......@@ -486,7 +486,7 @@ pub fn new_full<RuntimeApi, Executor>(
prometheus_registry.clone(),
);
task_manager.spawn_handle().spawn("authority-discovery", authority_discovery);
task_manager.spawn_handle().spawn("authority-discovery-worker", authority_discovery_worker);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment