Downward Message Processing implementation (#1859)

* DMP: data structures and plumbing

* DMP: Implement DMP logic in the router module

DMP: Integrate DMP parts into the inclusion module

* DMP: Introduce the max size limit for the size of a downward message

* DMP: Runtime API for accessing inbound messages

* OCD

Small clean ups

* DMP: fix the naming of the error

* DMP: add caution about a non-existent recipient
This commit is contained in:
Sergei Shulepov
2020-10-28 11:41:42 +01:00
committed by GitHub
parent 1a25c41277
commit 9903bca259
26 changed files with 556 additions and 36 deletions
@@ -97,6 +97,7 @@ fn execute_good_on_parent(execution_mode: ExecutionMode) {
block_data: GenericBlockData(block_data.encode()),
relay_chain_height: 1,
hrmp_mqc_heads: Vec::new(),
dmq_mqc_head: Default::default(),
},
&execution_mode,
sp_core::testing::TaskExecutor::new(),
@@ -135,6 +136,7 @@ fn execute_good_chain_on_parent() {
block_data: GenericBlockData(block_data.encode()),
relay_chain_height: number as RelayChainBlockNumber + 1,
hrmp_mqc_heads: Vec::new(),
dmq_mqc_head: Default::default(),
},
&execution_mode,
sp_core::testing::TaskExecutor::new(),
@@ -174,6 +176,7 @@ fn execute_bad_on_parent() {
block_data: GenericBlockData(block_data.encode()),
relay_chain_height: 1,
hrmp_mqc_heads: Vec::new(),
dmq_mqc_head: Default::default(),
},
&execution_mode,
sp_core::testing::TaskExecutor::new(),