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
+1
View File
@@ -6,5 +6,6 @@ polkadot/runtime/wasm/target/
**/._*
.idea
.vscode
.idea
polkadot.*
.DS_Store