gossip: move authorities request to runtime api subsystem (#2798)

This commit is contained in:
Andronik Ordian
2021-04-01 23:51:01 +02:00
committed by GitHub
parent 05a5047e40
commit 98082c5326
9 changed files with 87 additions and 47 deletions
+2
View File
@@ -437,6 +437,8 @@ pub type RuntimeApiSender<T> = oneshot::Sender<Result<T, crate::errors::RuntimeA
/// A request to the Runtime API subsystem.
#[derive(Debug)]
pub enum RuntimeApiRequest {
/// Get the next, current and some previous authority discovery set deduplicated.
Authorities(RuntimeApiSender<Vec<AuthorityDiscoveryId>>),
/// Get the current validator set.
Validators(RuntimeApiSender<Vec<ValidatorId>>),
/// Get the validator groups and group rotation info.