Add block data size check (#230)

* Add block data size check

* Pass max_block_data_size everywhere

* Fix build after merge

* Fix ParachainWork initialization

* Fix tests compilation
This commit is contained in:
Stanislav Tkach
2019-05-24 14:02:13 +03:00
committed by Gavin Wood
parent 7a123fe8e9
commit 10ae8d48f5
6 changed files with 64 additions and 9 deletions
@@ -110,6 +110,7 @@ pub(crate) fn start<C, N, P, SC>(
thread_pool: TaskExecutor,
key: Arc<ed25519::Pair>,
extrinsic_store: ExtrinsicStore,
max_block_data_size: Option<u64>,
) -> ServiceHandle
where
C: Collators + Send + Sync + 'static,
@@ -147,6 +148,7 @@ pub(crate) fn start<C, N, P, SC>(
notification.header.parent_hash().clone(),
&authorities,
key.clone(),
max_block_data_size,
)
});