Egress queue validation in runtime (#155)

* Add fn to validate egress routes

* Add blank tests

* Reject routing to non existent parachains

* Reject if routing to self

* Reject if egress route parachain ids out of order

* Extract method for checking egress routes

* Reject empty egress routes

* Extract test method

* Generate empty trie root constant in build script

* Remove unwraps

* Hardcode EMPTY_TRIE_ROOT and add test to verify

* Const not pu
This commit is contained in:
Andrew Jones
2019-02-25 18:44:35 +00:00
committed by Robert Habermeier
parent bef6069cc9
commit 0a25c425b0
5 changed files with 172 additions and 1 deletions
+3
View File
@@ -70,6 +70,9 @@ extern crate polkadot_primitives as primitives;
#[cfg(test)]
extern crate substrate_keyring as keyring;
#[cfg(test)]
extern crate substrate_trie;
mod parachains;
mod claims;