Make sure collators join the validation network (#1010)

Collators need to join the validation network to tell its connected
relay chain peers the leaf they listen on. This is required to make the
Parachain validator send the signed statement to the collators as well.
This commit is contained in:
Bastian Köcher authored and GitHub committed 2020-04-20 15:58:36 -04:00
1 parent 79dcce1674
commit fb2e0c0ca9
3 files changed
+29 -13

No files matched your search

+1 -2
View File
@@ -1375,7 +1375,7 @@ impl<N: NetworkServiceOps> Service<N> {
/// Take care to drop the stream, as the sending side will not be cleaned
/// up until it is.
pub fn checked_statements(&self, relay_parent: Hash)
-> Pin<Box<dyn Stream<Item = SignedStatement>>> {
-> impl Stream<Item = SignedStatement> + Send {
let (tx, rx) = oneshot::channel();
let mut sender = self.sender.clone();
@@ -1400,7 +1400,6 @@ impl<N: NetworkServiceOps> Service<N> {
}
})
.flatten_stream()
.boxed()
}
}