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

Commit

Permalink
Fix collator interfaces to make them work with Cumulus (#1048)
Browse files Browse the repository at this point in the history
* Fix collator interfaces to make them work with Cumulus

* Fix the fix
  • Loading branch information
bkchr committed Apr 28, 2020
1 parent d7d5ac5 commit 16544d0
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions collator/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -128,7 +128,7 @@ pub trait BuildParachainContext {
network: impl Network + Clone + 'static,
) -> Result<Self::ParachainContext, ()>
where
Client: ProvideRuntimeApi<Block>,
Client: ProvideRuntimeApi<Block> + Send + Sync + BlockchainEvents<Block> + 'static,
Client::Api: RuntimeApiCollection<Extrinsic>,
<Client::Api as ApiExt<Block>>::StateBackend: StateBackend<HashFor<Block>>,
Extrinsic: codec::Codec + Send + Sync + 'static,
Expand Down Expand Up @@ -200,7 +200,6 @@ pub async fn collate<P>(
Ok(collation)
}


fn build_collator_service<SP, P, C, E, R, Extrinsic>(
spawner: SP,
handles: polkadot_service::FullNodeHandles,
Expand Down

0 comments on commit 16544d0

Please sign in to comment.