Fix block propagation between non-collator nodes (#363)

* Create builder for test nodes

* Fix syncing issue

* Adds missing file
This commit is contained in:
Bastian Köcher authored and GitHub committed 2021-03-11 22:29:19 +01:00
1 parent 321b4434ac
commit 64061a4117
12 files changed
+445 -271

No files matched your search

+2 -2
View File
@@ -79,7 +79,7 @@ where
fn new(
block_status: Arc<BS>,
spawner: Arc<dyn SpawnNamed + Send + Sync>,
announce_block: Arc<dyn Fn(Block::Hash, Vec<u8>) + Send + Sync>,
announce_block: Arc<dyn Fn(Block::Hash, Option<Vec<u8>>) + Send + Sync>,
backend: Arc<Backend>,
parachain_consensus: Box<dyn ParachainConsensus<Block>>,
) -> Self {
@@ -337,7 +337,7 @@ pub struct StartCollatorParams<Block: BlockT, Backend, BS, Spawner> {
pub para_id: ParaId,
pub backend: Arc<Backend>,
pub block_status: Arc<BS>,
pub announce_block: Arc<dyn Fn(Block::Hash, Vec<u8>) + Send + Sync>,
pub announce_block: Arc<dyn Fn(Block::Hash, Option<Vec<u8>>) + Send + Sync>,
pub overseer_handler: OverseerHandler,
pub spawner: Spawner,
pub key: CollatorPair,