Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

client/authority-discovery: Introduce AuthorityDiscoveryService #6760

Merged
16 commits merged into from
Aug 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions bin/node/cli/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ pub fn new_full_base(
Event::Dht(e) => Some(e),
_ => None,
}}).boxed();
let authority_discovery = sc_authority_discovery::AuthorityDiscovery::new(
let (authority_discovery_worker, _service) = sc_authority_discovery::new_worker_and_service(
client.clone(),
network.clone(),
sentries,
Expand All @@ -275,7 +275,7 @@ pub fn new_full_base(
prometheus_registry.clone(),
);

task_manager.spawn_handle().spawn("authority-discovery", authority_discovery);
task_manager.spawn_handle().spawn("authority-discovery-worker", authority_discovery_worker);
}

// if the node isn't actively participating in consensus then it doesn't
Expand Down
2 changes: 1 addition & 1 deletion client/authority-discovery/build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
fn main() {
prost_build::compile_protos(&["src/schema/dht.proto"], &["src/schema"]).unwrap();
prost_build::compile_protos(&["src/worker/schema/dht.proto"], &["src/worker/schema"]).unwrap();
}
205 changes: 0 additions & 205 deletions client/authority-discovery/src/addr_cache.rs

This file was deleted.

Loading