From 365af458afbb2ccfcbd9cbf4f4c9f5b71f14e64d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Tue, 28 Apr 2020 17:49:21 +0200 Subject: [PATCH] Fix collator interfaces to make them work with Cumulus (#1048) * Fix collator interfaces to make them work with Cumulus * Fix the fix --- polkadot/collator/src/lib.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/polkadot/collator/src/lib.rs b/polkadot/collator/src/lib.rs index 3e01e4cbb7..49ccbcc29c 100644 --- a/polkadot/collator/src/lib.rs +++ b/polkadot/collator/src/lib.rs @@ -52,7 +52,7 @@ use std::pin::Pin; use futures::{future, Future, Stream, FutureExt, TryFutureExt, StreamExt, task::Spawn}; use log::warn; -use sc_client_api::StateBackend; +use sc_client_api::{StateBackend, BlockchainEvents}; use sp_core::Pair; use polkadot_primitives::{ BlockId, Hash, Block, @@ -128,7 +128,7 @@ pub trait BuildParachainContext { network: impl Network + Clone + 'static, ) -> Result where - Client: ProvideRuntimeApi, + Client: ProvideRuntimeApi + Send + Sync + BlockchainEvents + 'static, Client::Api: RuntimeApiCollection, >::StateBackend: StateBackend>, Extrinsic: codec::Codec + Send + Sync + 'static, @@ -200,7 +200,6 @@ pub async fn collate

( Ok(collation) } - fn build_collator_service( spawner: SP, handles: polkadot_service::FullNodeHandles,