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
+2
View File
@@ -45,6 +45,8 @@ hex-literal = "0.1.0"
libsecp256k1 = "0.2.1"
tiny-keccak = "1.4.2"
substrate-keyring = { git = "https://github.com/paritytech/substrate" }
substrate-trie = { git = "https://github.com/paritytech/substrate" }
trie-db = "0.11"
[features]
default = ["std"]