diff --git a/Cargo.lock b/Cargo.lock index d7308e60665..d80a8aac4dd 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -375,6 +375,12 @@ dependencies = [ "rustc-demangle", ] +[[package]] +name = "base-x" +version = "0.2.8" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" + [[package]] name = "base58" version = "0.1.0" @@ -477,6 +483,32 @@ dependencies = [ "constant_time_eq", ] +[[package]] +name = "blake2s_simd" +version = "0.5.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9e461a7034e85b211a4acb57ee2e6730b32912b06c08cc242243c39fc21ae6a2" +dependencies = [ + "arrayref", + "arrayvec 0.5.2", + "constant_time_eq", +] + +[[package]] +name = "blake3" +version = "0.3.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e9ff35b701f3914bdb8fad3368d822c766ef2858b2583198e41639b936f09d3f" +dependencies = [ + "arrayref", + "arrayvec 0.5.2", + "cc", + "cfg-if 0.1.10", + "constant_time_eq", + "crypto-mac 0.8.0", + "digest 0.9.0", +] + [[package]] name = "block-buffer" version = "0.7.3" @@ -692,6 +724,17 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "cid" +version = "0.6.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7d88f30b1e74e7063df5711496f3ee6e74a9735d62062242d70cddf77717f18e" +dependencies = [ + "multibase", + "multihash", + "unsigned-varint 0.5.1", +] + [[package]] name = "cipher" version = "0.2.5" @@ -1406,6 +1449,26 @@ version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "993a608597367c6377b258c25d7120740f00ed23a2252b729b1932dd7866f908" +[[package]] +name = "data-encoding-macro" +version = "0.1.10" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0a94feec3d2ba66c0b6621bca8bc6f68415b1e5c69af3586fdd0af9fd9f29b17" +dependencies = [ + "data-encoding", + "data-encoding-macro-internal", +] + +[[package]] +name = "data-encoding-macro-internal" +version = "0.1.9" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f0f83e699727abca3c56e187945f303389590305ab2f0185ea445aa66e8d5f2a" +dependencies = [ + "data-encoding", + "syn 1.0.60", +] + [[package]] name = "derive_more" version = "0.15.0" @@ -1816,7 +1879,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", ] @@ -1834,13 +1897,13 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", "linregress", "parity-scale-codec", - "paste", + "paste 1.0.4", "sp-api", "sp-io", "sp-runtime", @@ -1852,7 +1915,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "Inflector", "chrono", @@ -1875,7 +1938,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -1891,7 +1954,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "12.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "serde", @@ -1902,7 +1965,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "bitflags", "frame-metadata", @@ -1911,7 +1974,7 @@ dependencies = [ "log", "once_cell", "parity-scale-codec", - "paste", + "paste 1.0.4", "serde", "smallvec 1.6.1", "sp-arithmetic", @@ -1919,6 +1982,7 @@ dependencies = [ "sp-inherents", "sp-io", "sp-runtime", + "sp-staking", "sp-state-machine", "sp-std", "sp-tracing", @@ -1927,7 +1991,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1939,7 +2003,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate", @@ -1951,7 +2015,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.8", @@ -1961,7 +2025,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "impl-trait-for-tuples 0.2.0", @@ -1977,7 +2041,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-api", @@ -2791,15 +2855,6 @@ version = "2.3.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "47be2f14c678be2fdcab04ab1171db51b2762ce6f0a8ee87c8dd4a04ed216135" -[[package]] -name = "itertools" -version = "0.8.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f56a2d0bc861f9165be4eb3442afd3c236d8a98afd426f65d92324ae1091a484" -dependencies = [ - "either", -] - [[package]] name = "itertools" version = "0.9.0" @@ -2974,7 +3029,7 @@ dependencies = [ [[package]] name = "kusama-runtime" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "frame-executive", @@ -3185,7 +3240,7 @@ dependencies = [ "parity-multiaddr", "parking_lot 0.11.1", "pin-project 1.0.4", - "prost 0.7.0", + "prost", "prost-build", "rand 0.7.3", "ring", @@ -3242,7 +3297,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "prost 0.7.0", + "prost", "prost-build", "rand 0.7.3", "smallvec 1.6.1", @@ -3264,7 +3319,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "prost 0.7.0", + "prost", "prost-build", "rand 0.7.3", "regex", @@ -3284,7 +3339,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "prost 0.7.0", + "prost", "prost-build", "smallvec 1.6.1", "wasm-timer", @@ -3305,7 +3360,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "prost 0.7.0", + "prost", "prost-build", "rand 0.7.3", "sha2 0.9.2", @@ -3367,7 +3422,7 @@ dependencies = [ "lazy_static", "libp2p-core", "log", - "prost 0.7.0", + "prost", "prost-build", "rand 0.7.3", "sha2 0.9.2", @@ -3403,7 +3458,7 @@ dependencies = [ "futures 0.3.12", "libp2p-core", "log", - "prost 0.7.0", + "prost", "prost-build", "unsigned-varint 0.6.0", "void", @@ -3445,9 +3500,9 @@ dependencies = [ [[package]] name = "libp2p-swarm" -version = "0.27.0" +version = "0.27.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "22ea8c69839a0e593c8c6a24282cb234d48ac37be4153183f4914e00f5303e75" +checksum = "7955b973e1fd2bd61ffd43ce261c1223f61f4aacd5bae362a924993f9a25fd98" dependencies = [ "either", "futures 0.3.12", @@ -3708,13 +3763,12 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0ee1c47aaa256ecabcaea351eae4a9b01ef39ed810004e298d2511ed284b1525" [[package]] -name = "memmap" -version = "0.7.0" +name = "memmap2" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" +checksum = "e73be3b7d04a0123e933fea1d50d126cc7196bbc0362c0ce426694f777194eee" dependencies = [ "libc", - "winapi 0.3.9", ] [[package]] @@ -3785,7 +3839,7 @@ dependencies = [ [[package]] name = "metered-channel" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -3914,16 +3968,31 @@ version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0debeb9fcf88823ea64d64e4a815ab1643f33127d995978e099942ce38f25238" +[[package]] +name = "multibase" +version = "0.8.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b78c60039650ff12e140ae867ef5299a58e19dded4d334c849dc7177083667e2" +dependencies = [ + "base-x", + "data-encoding", + "data-encoding-macro", +] + [[package]] name = "multihash" version = "0.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "4dac63698b887d2d929306ea48b63760431ff8a24fac40ddb22f9c7f49fb7cab" dependencies = [ + "blake2b_simd", + "blake2s_simd", + "blake3", "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", "sha2 0.9.2", + "sha3", "unsigned-varint 0.5.1", ] @@ -4207,7 +4276,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4223,7 +4292,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4238,7 +4307,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-benchmarking", "frame-support", @@ -4263,7 +4332,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-benchmarking", "frame-support", @@ -4277,7 +4346,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4291,7 +4360,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4306,7 +4375,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-benchmarking", "frame-support", @@ -4321,7 +4390,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4335,7 +4404,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-benchmarking", "frame-support", @@ -4356,7 +4425,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4372,12 +4441,11 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", "pallet-authorship", - "pallet-session", "parity-scale-codec", "serde", "sp-application-crypto", @@ -4391,7 +4459,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4407,7 +4475,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4421,7 +4489,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4436,7 +4504,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4450,7 +4518,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4465,7 +4533,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4480,7 +4548,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4493,7 +4561,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "enumflags2", "frame-support", @@ -4508,7 +4576,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-benchmarking", "frame-support", @@ -4523,7 +4591,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4543,7 +4611,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4557,7 +4625,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4577,7 +4645,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -4588,7 +4656,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4602,7 +4670,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-benchmarking", "frame-support", @@ -4619,7 +4687,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4633,7 +4701,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4649,7 +4717,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4666,7 +4734,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4677,7 +4745,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4692,7 +4760,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-support", "frame-system", @@ -4707,7 +4775,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "enumflags2", "frame-support", @@ -4731,16 +4799,18 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.1.2" +version = "0.2.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "00d595e372d119261593297debbe4193811a4dc811d2a1ccbb8caaa6666ad7ab" +checksum = "111e193c96758d476d272093a853882668da17489f76bf4361b8decae0b6c515" dependencies = [ "blake2-rfc", "crc32fast", + "hex", "libc", "log", - "memmap", - "parking_lot 0.10.2", + "memmap2", + "parking_lot 0.11.1", + "rand 0.8.3", ] [[package]] @@ -4987,6 +5057,12 @@ dependencies = [ "proc-macro-hack", ] +[[package]] +name = "paste" +version = "1.0.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c5d65c4d95931acda4498f675e332fcbdc9a06705cd07086c510e9b6009cd1c1" + [[package]] name = "paste-impl" version = "0.1.18" @@ -5158,14 +5234,14 @@ checksum = "3831453b3449ceb48b6d9c7ad7c96d5ea673e9b470a1dc578c2ce6521230884c" [[package]] name = "platforms" -version = "0.2.1" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "feb3b2b1033b8a60b4da6ee470325f887758c95d5320f52f9ce0df055a55940e" +checksum = "989d43012e2ca1c4a02507c67282691a0a3207f9dc67cec596b43fe925b3d325" [[package]] name = "polkadot-approval-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-node-network-protocol", @@ -5180,7 +5256,7 @@ dependencies = [ [[package]] name = "polkadot-availability-bitfield-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "parity-scale-codec", @@ -5195,7 +5271,7 @@ dependencies = [ [[package]] name = "polkadot-availability-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "parity-scale-codec", @@ -5214,7 +5290,7 @@ dependencies = [ [[package]] name = "polkadot-availability-recovery" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -5234,7 +5310,7 @@ dependencies = [ [[package]] name = "polkadot-cli" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "frame-benchmarking-cli", "futures 0.3.12", @@ -5254,7 +5330,7 @@ dependencies = [ [[package]] name = "polkadot-collator-protocol" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-node-network-protocol", @@ -5269,7 +5345,7 @@ dependencies = [ [[package]] name = "polkadot-core-primitives" version = "0.7.30" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "parity-scale-codec", "parity-util-mem", @@ -5281,7 +5357,7 @@ dependencies = [ [[package]] name = "polkadot-erasure-coding" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -5294,7 +5370,7 @@ dependencies = [ [[package]] name = "polkadot-network-bridge" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "async-trait", "futures 0.3.12", @@ -5304,6 +5380,7 @@ dependencies = [ "polkadot-primitives", "sc-authority-discovery", "sc-network", + "strum", "tracing", "tracing-futures", ] @@ -5311,7 +5388,7 @@ dependencies = [ [[package]] name = "polkadot-node-collation-generation" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-erasure-coding", @@ -5328,7 +5405,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-av-store" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "futures 0.3.12", @@ -5350,7 +5427,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-backing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "futures 0.3.12", @@ -5369,7 +5446,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-bitfield-signing" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-node-subsystem", @@ -5385,7 +5462,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-selection" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-node-subsystem", @@ -5400,7 +5477,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-candidate-validation" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "parity-scale-codec", @@ -5417,7 +5494,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-chain-api" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-node-subsystem", @@ -5431,7 +5508,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-proposer" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -5455,7 +5532,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-provisioner" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "futures 0.3.12", @@ -5471,7 +5548,7 @@ dependencies = [ [[package]] name = "polkadot-node-core-runtime-api" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "memory-lru", @@ -5488,7 +5565,7 @@ dependencies = [ [[package]] name = "polkadot-node-jaeger" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "async-std", "lazy_static", @@ -5504,14 +5581,15 @@ dependencies = [ [[package]] name = "polkadot-node-network-protocol" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ + "futures 0.3.12", "parity-scale-codec", "polkadot-node-jaeger", "polkadot-node-primitives", "polkadot-primitives", "sc-network", - "strum 0.20.0", + "strum", "thiserror", "zstd", ] @@ -5519,7 +5597,7 @@ dependencies = [ [[package]] name = "polkadot-node-primitives" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "parity-scale-codec", @@ -5534,7 +5612,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "async-std", "async-trait", @@ -5564,7 +5642,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-test-helpers" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "async-trait", "futures 0.3.12", @@ -5587,7 +5665,7 @@ dependencies = [ [[package]] name = "polkadot-node-subsystem-util" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "async-trait", "futures 0.3.12", @@ -5613,7 +5691,7 @@ dependencies = [ [[package]] name = "polkadot-overseer" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "async-trait", "futures 0.3.12", @@ -5631,7 +5709,7 @@ dependencies = [ [[package]] name = "polkadot-parachain" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "derive_more 0.99.11", "futures 0.3.12", @@ -5655,7 +5733,7 @@ dependencies = [ [[package]] name = "polkadot-pov-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "futures 0.3.12", "polkadot-node-network-protocol", @@ -5670,7 +5748,7 @@ dependencies = [ [[package]] name = "polkadot-primitives" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "frame-system", @@ -5698,7 +5776,7 @@ dependencies = [ [[package]] name = "polkadot-rpc" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "jsonrpc-core", "pallet-transaction-payment-rpc", @@ -5728,7 +5806,7 @@ dependencies = [ [[package]] name = "polkadot-runtime" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "frame-executive", @@ -5793,7 +5871,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-common" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "frame-support", @@ -5829,7 +5907,7 @@ dependencies = [ [[package]] name = "polkadot-runtime-parachains" version = "0.8.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "derive_more 0.99.11", @@ -5866,7 +5944,7 @@ dependencies = [ [[package]] name = "polkadot-service" version = "0.8.3" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "frame-benchmarking", "frame-system-rpc-runtime-api", @@ -5948,7 +6026,7 @@ dependencies = [ [[package]] name = "polkadot-statement-distribution" version = "0.1.0" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "arrayvec 0.5.2", "futures 0.3.12", @@ -5966,7 +6044,7 @@ dependencies = [ [[package]] name = "polkadot-statement-table" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "parity-scale-codec", "polkadot-primitives", @@ -5976,7 +6054,7 @@ dependencies = [ [[package]] name = "polkadot-test-client" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "parity-scale-codec", "polkadot-node-subsystem", @@ -6000,7 +6078,7 @@ dependencies = [ [[package]] name = "polkadot-test-runtime" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "frame-executive", @@ -6054,7 +6132,7 @@ dependencies = [ [[package]] name = "polkadot-test-service" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "frame-benchmarking", "frame-system", @@ -6248,11 +6326,11 @@ dependencies = [ [[package]] name = "prometheus" -version = "0.10.0" +version = "0.11.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "30d70cf4412832bcac9cffe27906f4a66e450d323525e977168c70d1b36120ae" +checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" dependencies = [ - "cfg-if 0.1.10", + "cfg-if 1.0.0", "fnv", "lazy_static", "parking_lot 0.11.1", @@ -6260,16 +6338,6 @@ dependencies = [ "thiserror", ] -[[package]] -name = "prost" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ce49aefe0a6144a45de32927c77bd2859a5f7677b55f220ae5b744e87389c212" -dependencies = [ - "bytes 0.5.6", - "prost-derive 0.6.1", -] - [[package]] name = "prost" version = "0.7.0" @@ -6277,7 +6345,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9e6984d2f1a23009bd270b8bb56d0926810a3d483f59c987d77969e9d8e840b2" dependencies = [ "bytes 1.0.1", - "prost-derive 0.7.0", + "prost-derive", ] [[package]] @@ -6288,29 +6356,16 @@ checksum = "32d3ebd75ac2679c2af3a92246639f9fcc8a442ee420719cc4fe195b98dd5fa3" dependencies = [ "bytes 1.0.1", "heck", - "itertools 0.9.0", + "itertools", "log", "multimap", "petgraph", - "prost 0.7.0", + "prost", "prost-types", "tempfile", "which 4.0.2", ] -[[package]] -name = "prost-derive" -version = "0.6.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "537aa19b95acde10a12fec4301466386f757403de4cd4e5b4fa78fb5ecb18f72" -dependencies = [ - "anyhow", - "itertools 0.8.2", - "proc-macro2 1.0.24", - "quote 1.0.8", - "syn 1.0.60", -] - [[package]] name = "prost-derive" version = "0.7.0" @@ -6318,7 +6373,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "169a15f3008ecb5160cba7d37bcd690a7601b6d30cfb87a117d45e59d52af5d4" dependencies = [ "anyhow", - "itertools 0.9.0", + "itertools", "proc-macro2 1.0.24", "quote 1.0.8", "syn 1.0.60", @@ -6331,7 +6386,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "b518d7cdd93dab1d1122cf07fa9a60771836c668dde9d9e2a139f957f0d9f1bb" dependencies = [ "bytes 1.0.1", - "prost 0.7.0", + "prost", ] [[package]] @@ -6904,7 +6959,7 @@ dependencies = [ [[package]] name = "rococo-runtime" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "frame-executive", "frame-support", @@ -7094,7 +7149,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "async-trait", "derive_more 0.99.11", @@ -7104,7 +7159,7 @@ dependencies = [ "libp2p", "log", "parity-scale-codec", - "prost 0.7.0", + "prost", "prost-build", "rand 0.7.3", "sc-client-api", @@ -7122,7 +7177,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7145,7 +7200,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -7162,7 +7217,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -7183,7 +7238,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -7194,7 +7249,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "chrono", "fdlimit", @@ -7232,7 +7287,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "fnv", @@ -7266,7 +7321,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "blake2-rfc", "hash-db", @@ -7296,7 +7351,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "sc-client-api", "sp-blockchain", @@ -7307,7 +7362,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "fork-tree", @@ -7353,7 +7408,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "futures 0.3.12", @@ -7377,7 +7432,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "fork-tree", "parity-scale-codec", @@ -7390,7 +7445,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7416,7 +7471,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "sc-client-api", @@ -7430,7 +7485,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "lazy_static", @@ -7459,7 +7514,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "parity-scale-codec", @@ -7475,7 +7530,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "parity-scale-codec", @@ -7490,7 +7545,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "parity-scale-codec", @@ -7508,7 +7563,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "finality-grandpa", @@ -7519,7 +7574,7 @@ dependencies = [ "log", "parity-scale-codec", "parking_lot 0.11.1", - "pin-project 0.4.27", + "pin-project 1.0.4", "rand 0.7.3", "sc-block-builder", "sc-client-api", @@ -7546,7 +7601,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "finality-grandpa", @@ -7570,7 +7625,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-warp-sync" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "futures 0.3.12", @@ -7578,7 +7633,7 @@ dependencies = [ "num-traits 0.2.14", "parity-scale-codec", "parking_lot 0.11.1", - "prost 0.6.1", + "prost", "sc-client-api", "sc-finality-grandpa", "sc-network", @@ -7590,7 +7645,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "ansi_term 0.12.1", "futures 0.3.12", @@ -7608,7 +7663,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "async-trait", "derive_more 0.99.11", @@ -7628,7 +7683,7 @@ dependencies = [ [[package]] name = "sc-light" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "hash-db", "lazy_static", @@ -7647,7 +7702,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "async-std", "async-trait", @@ -7655,6 +7710,7 @@ dependencies = [ "bitflags", "bs58", "bytes 1.0.1", + "cid", "derive_more 0.99.11", "either", "erased-serde", @@ -7672,8 +7728,8 @@ dependencies = [ "nohash-hasher", "parity-scale-codec", "parking_lot 0.11.1", - "pin-project 0.4.27", - "prost 0.7.0", + "pin-project 1.0.4", + "prost", "prost-build", "rand 0.7.3", "sc-block-builder", @@ -7699,7 +7755,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7715,7 +7771,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "bytes 0.5.6", "fnv", @@ -7742,7 +7798,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "libp2p", @@ -7755,7 +7811,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -7764,7 +7820,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "hash-db", @@ -7798,7 +7854,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "futures 0.3.12", @@ -7822,7 +7878,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.1.30", "jsonrpc-core", @@ -7840,7 +7896,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "directories 3.0.1", "exit-future 0.2.0", @@ -7855,7 +7911,7 @@ dependencies = [ "parity-scale-codec", "parity-util-mem", "parking_lot 0.11.1", - "pin-project 0.4.27", + "pin-project 1.0.4", "rand 0.7.3", "sc-block-builder", "sc-chain-spec", @@ -7903,7 +7959,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "parity-scale-codec", @@ -7918,7 +7974,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -7938,14 +7994,14 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "chrono", "futures 0.3.12", "libp2p", "log", "parking_lot 0.11.1", - "pin-project 0.4.27", + "pin-project 1.0.4", "rand 0.7.3", "serde", "serde_json", @@ -7960,7 +8016,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "ansi_term 0.12.1", "atty", @@ -7988,7 +8044,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -7999,7 +8055,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "futures 0.3.12", @@ -8021,7 +8077,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "futures-diagnose", @@ -8370,7 +8426,7 @@ dependencies = [ "approx", "num-complex", "num-traits 0.2.14", - "paste", + "paste 0.1.18", ] [[package]] @@ -8442,7 +8498,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "sp-core", @@ -8454,7 +8510,7 @@ dependencies = [ [[package]] name = "sp-api" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "hash-db", "parity-scale-codec", @@ -8470,7 +8526,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "blake2-rfc", "proc-macro-crate", @@ -8482,7 +8538,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "serde", @@ -8494,7 +8550,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "integer-sqrt", "num-traits 0.2.14", @@ -8507,7 +8563,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-api", @@ -8519,7 +8575,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8530,7 +8586,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-api", @@ -8542,7 +8598,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "log", @@ -8560,7 +8616,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "serde", "serde_json", @@ -8569,7 +8625,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -8595,7 +8651,7 @@ dependencies = [ [[package]] name = "sp-consensus-aura" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "parity-scale-codec", "sp-api", @@ -8610,7 +8666,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "merlin", "parity-scale-codec", @@ -8630,7 +8686,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -8640,7 +8696,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8652,7 +8708,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "base58", "blake2-rfc", @@ -8696,7 +8752,7 @@ dependencies = [ [[package]] name = "sp-database" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -8705,7 +8761,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "proc-macro2 1.0.24", "quote 1.0.8", @@ -8715,7 +8771,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "environmental", "parity-scale-codec", @@ -8726,7 +8782,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "finality-grandpa", "log", @@ -8743,7 +8799,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -8755,7 +8811,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "hash-db", @@ -8779,18 +8835,18 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "lazy_static", "sp-core", "sp-runtime", - "strum 0.16.0", + "strum", ] [[package]] name = "sp-keystore" version = "0.8.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "async-trait", "derive_more 0.99.11", @@ -8807,7 +8863,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "serde", @@ -8820,7 +8876,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "proc-macro-crate", "proc-macro2 1.0.24", @@ -8831,7 +8887,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "sp-api", "sp-core", @@ -8841,7 +8897,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "backtrace", ] @@ -8849,7 +8905,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "serde", "sp-core", @@ -8858,7 +8914,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "either", "hash256-std-hasher", @@ -8866,7 +8922,7 @@ dependencies = [ "log", "parity-scale-codec", "parity-util-mem", - "paste", + "paste 1.0.4", "rand 0.7.3", "serde", "sp-application-crypto", @@ -8879,7 +8935,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -8896,7 +8952,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "Inflector", "proc-macro-crate", @@ -8908,7 +8964,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "serde", "serde_json", @@ -8917,7 +8973,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-api", @@ -8930,7 +8986,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -8940,7 +8996,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "hash-db", "log", @@ -8962,12 +9018,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" [[package]] name = "sp-storage" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "impl-serde", "parity-scale-codec", @@ -8980,7 +9036,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "sp-core", @@ -8993,7 +9049,7 @@ dependencies = [ [[package]] name = "sp-test-primitives" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "parity-scale-codec", "parity-util-mem", @@ -9006,7 +9062,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -9020,7 +9076,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "log", "parity-scale-codec", @@ -9033,7 +9089,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "derive_more 0.99.11", "futures 0.3.12", @@ -9049,7 +9105,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "hash-db", "memory-db", @@ -9063,7 +9119,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.3.12", "futures-core", @@ -9075,7 +9131,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9087,7 +9143,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "impl-trait-for-tuples 0.2.0", "parity-scale-codec", @@ -9183,34 +9239,13 @@ dependencies = [ "syn 1.0.60", ] -[[package]] -name = "strum" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6138f8f88a16d90134763314e3fc76fa3ed6a7db4725d6acf9a3ef95a3188d22" -dependencies = [ - "strum_macros 0.16.0", -] - [[package]] name = "strum" version = "0.20.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "7318c509b5ba57f18533982607f24070a55d353e90d4cae30c467cdb2ad5ac5c" dependencies = [ - "strum_macros 0.20.1", -] - -[[package]] -name = "strum_macros" -version = "0.16.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0054a7df764039a6cd8592b9de84be4bec368ff081d203a7d5371cbfa8e65c81" -dependencies = [ - "heck", - "proc-macro2 1.0.24", - "quote 1.0.8", - "syn 1.0.60", + "strum_macros", ] [[package]] @@ -9241,7 +9276,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "platforms", ] @@ -9249,7 +9284,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.12", @@ -9272,7 +9307,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "async-std", "derive_more 0.99.11", @@ -9286,7 +9321,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#cc71cca1d3087bf62381a9d60b14ca6235b4b916" dependencies = [ "futures 0.1.30", "futures 0.3.12", @@ -9313,7 +9348,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "cfg-if 0.1.10", "frame-executive", @@ -9355,7 +9390,7 @@ dependencies = [ [[package]] name = "substrate-test-runtime-client" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "futures 0.3.12", "parity-scale-codec", @@ -9376,7 +9411,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "futures 0.3.12", "substrate-test-utils-derive", @@ -9386,7 +9421,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.8.1" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "proc-macro-crate", "quote 1.0.8", @@ -9412,7 +9447,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" +source = "git+https://github.com/paritytech/substrate#93b231e79f5b4e551c34234e89fa4a2e5e9c1510" dependencies = [ "ansi_term 0.12.1", "atty", @@ -10061,7 +10096,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" dependencies = [ "cfg-if 0.1.10", - "rand 0.7.3", + "rand 0.3.23", "static_assertions", ] @@ -10627,7 +10662,7 @@ dependencies = [ [[package]] name = "westend-runtime" version = "0.8.28" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "bitvec", "frame-executive", @@ -10783,7 +10818,7 @@ dependencies = [ [[package]] name = "xcm" version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "parity-scale-codec", ] @@ -10791,7 +10826,7 @@ dependencies = [ [[package]] name = "xcm-builder" version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "frame-support", "parity-scale-codec", @@ -10807,7 +10842,7 @@ dependencies = [ [[package]] name = "xcm-executor" version = "0.8.22" -source = "git+https://github.com/paritytech/polkadot#71a528e822af63b96bdb03efac9b4927fb11a25e" +source = "git+https://github.com/paritytech/polkadot#e526a15b1fa9bb7ac5378541d9f32667618e18c4" dependencies = [ "frame-support", "impl-trait-for-tuples 0.2.0", @@ -10894,6 +10929,6 @@ checksum = "a1e6e8778706838f43f771d80d37787cb2fe06dafe89dd3aebaf6721b9eaec81" dependencies = [ "cc", "glob", - "itertools 0.9.0", + "itertools", "libc", ] diff --git a/collator/src/lib.rs b/collator/src/lib.rs index 39d692607d5..821d2d26d06 100644 --- a/collator/src/lib.rs +++ b/collator/src/lib.rs @@ -219,6 +219,31 @@ where }) .ok()?; + let ingress_channels = relay_parent_state_backend + .storage(&relay_well_known_keys::hrmp_ingress_channel_index( + self.para_id, + )) + .map_err(|e| { + error!( + target: LOG_TARGET, + "Cannot obtain the hrmp ingress channel index: {:?}", + e, + ) + }) + .ok()?; + let ingress_channels = ingress_channels + .map(|raw| >::decode(&mut &raw[..])) + .transpose() + .map_err(|e| { + error!( + target: LOG_TARGET, + "Cannot decode the hrmp ingress channel index: {:?}", + e, + ) + }) + .ok()? + .unwrap_or_default(); + let egress_channels = relay_parent_state_backend .storage(&relay_well_known_keys::hrmp_egress_channel_index( self.para_id, @@ -246,12 +271,22 @@ where let mut relevant_keys = vec![]; relevant_keys.push(relay_well_known_keys::ACTIVE_CONFIG.to_vec()); + relevant_keys.push(relay_well_known_keys::dmq_mqc_head(self.para_id)); relevant_keys.push(relay_well_known_keys::relay_dispatch_queue_size( self.para_id, )); + relevant_keys.push(relay_well_known_keys::hrmp_ingress_channel_index( + self.para_id, + )); relevant_keys.push(relay_well_known_keys::hrmp_egress_channel_index( self.para_id, )); + relevant_keys.extend(ingress_channels.into_iter().map(|sender| { + relay_well_known_keys::hrmp_channels(HrmpChannelId { + sender, + recipient: self.para_id, + }) + })); relevant_keys.extend(egress_channels.into_iter().map(|recipient| { relay_well_known_keys::hrmp_channels(HrmpChannelId { sender: self.para_id, @@ -586,7 +621,7 @@ where ); let collation = - self.build_collation(b, block_hash, validation_data.block_number)?; + self.build_collation(b, block_hash, validation_data.relay_parent_number)?; let pov_hash = collation.proof_of_validity.hash(); self.wait_to_announce diff --git a/parachain-system/src/lib.rs b/parachain-system/src/lib.rs index a6c4fcb7ce9..9935a3f4577 100644 --- a/parachain-system/src/lib.rs +++ b/parachain-system/src/lib.rs @@ -179,18 +179,18 @@ decl_module! { // which means we can put the initialization logic here to remove the // sequencing problem. if let Some((apply_block, validation_function)) = PendingValidationFunction::get() { - if vfp.block_number >= apply_block { + if vfp.relay_parent_number >= apply_block { PendingValidationFunction::kill(); LastUpgrade::put(&apply_block); Self::put_parachain_code(&validation_function); - Self::deposit_event(Event::ValidationFunctionApplied(vfp.block_number)); + Self::deposit_event(Event::ValidationFunctionApplied(vfp.relay_parent_number)); } } let (host_config, relevant_messaging_state) = relay_state_snapshot::extract_from_proof( T::SelfParaId::get(), - vfp.relay_storage_root, + vfp.relay_parent_storage_root, relay_chain_state ) .map_err(|err| { @@ -200,13 +200,19 @@ decl_module! { storage::unhashed::put(VALIDATION_DATA, &vfp); DidUpdateValidationData::put(true); - RelevantMessagingState::put(relevant_messaging_state); + RelevantMessagingState::put(relevant_messaging_state.clone()); HostConfiguration::put(host_config); ::on_validation_data(&vfp); - Self::process_inbound_downward_messages(&vfp, downward_messages)?; - Self::process_inbound_horizontal_messages(&vfp, horizontal_messages)?; + Self::process_inbound_downward_messages( + relevant_messaging_state.dmq_mqc_head, + downward_messages, + )?; + Self::process_inbound_horizontal_messages( + &relevant_messaging_state.ingress_channels, + horizontal_messages, + )?; Ok(()) } @@ -437,7 +443,7 @@ impl Module { /// Checks if the sequence of the messages is valid, dispatches them and communicates the number /// of processed messages to the collator via a storage update. fn process_inbound_downward_messages( - vfp: &PersistedValidationData, + expected_dmq_mqc_head: relay_chain::Hash, downward_messages: Vec, ) -> DispatchResult { let dm_count = downward_messages.len() as u32; @@ -453,7 +459,7 @@ impl Module { // After hashing each message in the message queue chain submitted by the collator, we should // arrive to the MQC head provided by the relay chain. ensure!( - result_mqc_head == vfp.dmq_mqc_head, + result_mqc_head == expected_dmq_mqc_head, Error::::DmpMqcMismatch ); @@ -469,14 +475,14 @@ impl Module { /// This is similar to [`process_inbound_downward_messages`], but works on multiple inbound /// channels. fn process_inbound_horizontal_messages( - vfp: &PersistedValidationData, + ingress_channels: &[(ParaId, cumulus_primitives::AbridgedHrmpChannel)], horizontal_messages: BTreeMap>, ) -> DispatchResult { // First, check that all submitted messages are sent from channels that exist. The channel // exists if its MQC head is present in `vfp.hrmp_mqc_heads`. for sender in horizontal_messages.keys() { ensure!( - vfp.hrmp_mqc_heads + ingress_channels .binary_search_by_key(sender, |&(s, _)| s) .is_ok(), Error::::HrmpNoMqc, @@ -533,13 +539,14 @@ impl Module { // `running_mqc_heads`. Otherwise, in a block where no messages were sent in a channel // it won't get into next block's `last_mqc_heads` and thus will be all zeros, which // would corrupt the message queue chain. - for &(ref sender, ref target_head) in &vfp.hrmp_mqc_heads { + for &(ref sender, ref channel) in ingress_channels { let cur_head = running_mqc_heads .entry(*sender) .or_insert_with(|| last_mqc_heads.get(&sender).cloned().unwrap_or_default()) .head(); + let target_head = channel.mqc_head.unwrap_or_default(); - ensure!(&cur_head == target_head, Error::::HrmpMqcMismatch); + ensure!(cur_head == target_head, Error::::HrmpMqcMismatch); } LastHrmpMqcHeads::put(running_mqc_heads); @@ -592,7 +599,7 @@ impl Module { } let relay_blocks_since_last_upgrade = vfp - .block_number + .relay_parent_number .saturating_sub(LastUpgrade::get()); if relay_blocks_since_last_upgrade <= cfg.validation_upgrade_frequency { @@ -600,7 +607,7 @@ impl Module { return None; } - Some(vfp.block_number + cfg.validation_upgrade_delay) + Some(vfp.relay_parent_number + cfg.validation_upgrade_delay) } /// The implementation of the runtime upgrade scheduling. @@ -1072,6 +1079,7 @@ mod tests { self } + #[allow(dead_code)] // might come in handy in future. If now is future and it still hasn't - feel free. fn with_validation_data(mut self, f: F) -> Self where F: 'static + Fn(&BlockTests, RelayChainBlockNumber, &mut PersistedValidationData), @@ -1117,11 +1125,11 @@ mod tests { if let Some(ref hook) = self.relay_sproof_builder_hook { hook(self, *n as RelayChainBlockNumber, &mut sproof_builder); } - let (relay_storage_root, relay_chain_state) = + let (relay_parent_storage_root, relay_chain_state) = sproof_builder.into_state_root_and_proof(); let mut vfp = PersistedValidationData { - block_number: *n as RelayChainBlockNumber, - relay_storage_root, + relay_parent_number: *n as RelayChainBlockNumber, + relay_parent_storage_root, ..Default::default() }; if let Some(ref hook) = self.persisted_validation_data_hook { @@ -1612,11 +1620,11 @@ mod tests { } BlockTests::new() - .with_validation_data( - |_, relay_block_num, validation_data| match relay_block_num { + .with_relay_sproof_builder( + |_, relay_block_num, sproof| match relay_block_num { 1 => { - validation_data.dmq_mqc_head = - MessageQueueChain::default().extend_downward(&MSG).head(); + sproof.dmq_mqc_head = + Some(MessageQueueChain::default().extend_downward(&MSG).head()); } _ => unreachable!(), }, @@ -1661,39 +1669,31 @@ mod tests { } BlockTests::new() - .with_validation_data( - |_, relay_block_num, validation_data| match relay_block_num { + .with_relay_sproof_builder( + |_, relay_block_num, sproof| match relay_block_num { 1 => { // 200 - doesn't exist yet // 300 - one new message - validation_data.hrmp_mqc_heads.push(( - ParaId::from(300), - MessageQueueChain::default().extend_hrmp(&MSG_1).head(), - )); + sproof.upsert_inbound_channel(ParaId::from(300)).mqc_head = + Some(MessageQueueChain::default().extend_hrmp(&MSG_1).head()); } 2 => { // 200 - two new messages // 300 - now present with one message. - validation_data.hrmp_mqc_heads.push(( - ParaId::from(200), - MessageQueueChain::default().extend_hrmp(&MSG_4).head(), - )); - validation_data.hrmp_mqc_heads.push(( - ParaId::from(300), - MessageQueueChain::default() + sproof.upsert_inbound_channel(ParaId::from(200)).mqc_head = + Some(MessageQueueChain::default().extend_hrmp(&MSG_4).head()); + sproof.upsert_inbound_channel(ParaId::from(300)).mqc_head = + Some(MessageQueueChain::default() .extend_hrmp(&MSG_1) .extend_hrmp(&MSG_2) .extend_hrmp(&MSG_3) - .head(), - )); + .head()); } 3 => { // 200 - no new messages // 300 - is gone - validation_data.hrmp_mqc_heads.push(( - ParaId::from(200), - MessageQueueChain::default().extend_hrmp(&MSG_4).head(), - )); + sproof.upsert_inbound_channel(ParaId::from(200)).mqc_head = + Some(MessageQueueChain::default().extend_hrmp(&MSG_4).head()); } _ => unreachable!(), }, @@ -1747,21 +1747,17 @@ mod tests { #[test] fn receive_hrmp_empty_channel() { BlockTests::new() - .with_validation_data( - |_, relay_block_num, validation_data| match relay_block_num { - 1 => { - // no channels - } - 2 => { - // one new channel - validation_data.hrmp_mqc_heads.push(( - ParaId::from(300), - MessageQueueChain::default().head(), - )); - } - _ => unreachable!(), - }, - ) + .with_relay_sproof_builder(|_, relay_block_num, sproof| match relay_block_num { + 1 => { + // no channels + } + 2 => { + // one new channel + sproof.upsert_inbound_channel(ParaId::from(300)).mqc_head = + Some(MessageQueueChain::default().head()); + } + _ => unreachable!(), + }) .add(1, || {}) .add(2, || {}); } @@ -1783,30 +1779,24 @@ mod tests { const ALICE: ParaId = ParaId::new(300); BlockTests::new() - .with_validation_data( - |_, relay_block_num, validation_data| match relay_block_num { + .with_relay_sproof_builder( + |_, relay_block_num, sproof| match relay_block_num { 1 => { - validation_data.hrmp_mqc_heads.push(( - ALICE, - MessageQueueChain::default().extend_hrmp(&MSG_1).head(), - )); + sproof.upsert_inbound_channel(ALICE).mqc_head + = Some(MessageQueueChain::default().extend_hrmp(&MSG_1).head()); } 2 => { // 300 - no new messages, mqc stayed the same. - validation_data.hrmp_mqc_heads.push(( - ALICE, - MessageQueueChain::default().extend_hrmp(&MSG_1).head(), - )); + sproof.upsert_inbound_channel(ALICE).mqc_head + = Some(MessageQueueChain::default().extend_hrmp(&MSG_1).head()); } 3 => { // 300 - new message. - validation_data.hrmp_mqc_heads.push(( - ALICE, - MessageQueueChain::default() - .extend_hrmp(&MSG_1) - .extend_hrmp(&MSG_2) - .head(), - )); + sproof.upsert_inbound_channel(ALICE).mqc_head + = Some(MessageQueueChain::default() + .extend_hrmp(&MSG_1) + .extend_hrmp(&MSG_2) + .head()); } _ => unreachable!(), }, diff --git a/parachain-system/src/relay_state_snapshot.rs b/parachain-system/src/relay_state_snapshot.rs index 8391a3e4c4a..fb049d9d4be 100644 --- a/parachain-system/src/relay_state_snapshot.rs +++ b/parachain-system/src/relay_state_snapshot.rs @@ -27,14 +27,27 @@ use sp_std::vec::Vec; /// This data is essential for making sure that the parachain is aware of current resource use on /// the relay chain and that the candidates produced for this parachain do not exceed any of these /// limits. -#[derive(Encode, Decode)] +#[derive(Clone, Encode, Decode)] pub struct MessagingStateSnapshot { + /// The current message queue chain head for downward message queue. + /// + /// If the value is absent on the relay chain this will be set to all zeros. + pub dmq_mqc_head: relay_chain::Hash, + /// The current capacity of the upward message queue of the current parachain on the relay chain. /// /// The capacity is represented by a tuple that consist of the `count` of the messages and the /// `total_size` expressed as the sum of byte sizes of all messages in the queue. pub relay_dispatch_queue_size: (u32, u32), + /// Information about all the inbound HRMP channels. + /// + /// These are structured as a list of tuples. The para id in the tuple specifies the sender + /// of the channel. Obviously, the recipient is the current parachain. + /// + /// The channels are sorted by the sender para id ascension. + pub ingress_channels: Vec<(ParaId, AbridgedHrmpChannel)>, + /// Information about all the outbound HRMP channels. /// /// These are structured as a list of tuples. The para id in the tuple specifies the recipient @@ -50,12 +63,16 @@ pub enum Error { RootMismatch, /// The host configuration cannot be extracted. Config(ReadEntryErr), + /// The DMQ MQC head cannot be extracted. + DmqMqcHead(ReadEntryErr), /// Relay dispatch queue cannot be extracted. RelayDispatchQueueSize(ReadEntryErr), + /// The hrmp inress channel index cannot be extracted. + HrmpIngressChannelIndex(ReadEntryErr), /// The hrmp egress channel index cannot be extracted. HrmpEgressChannelIndex(ReadEntryErr), - /// The hrmp channel for the given recipient cannot be extracted. - HrmpChannel(ParaId, ReadEntryErr), + /// The channel identified by the sender and receiver cannot be extracted. + HrmpChannel(ParaId, ParaId, ReadEntryErr), } #[derive(Debug)] @@ -92,14 +109,14 @@ where /// of the current parachain and the expected storage root the proof should stem from. pub fn extract_from_proof( para_id: ParaId, - relay_storage_root: relay_chain::v1::Hash, + relay_parent_storage_root: relay_chain::v1::Hash, proof: StorageProof, ) -> Result<(AbridgedHostConfiguration, MessagingStateSnapshot), Error> { let db = proof.into_memory_db::>(); - if !db.contains(&relay_storage_root, EMPTY_PREFIX) { + if !db.contains(&relay_parent_storage_root, EMPTY_PREFIX) { return Err(Error::RootMismatch); } - let backend = TrieBackend::new(db, relay_storage_root); + let backend = TrieBackend::new(db, relay_parent_storage_root); let host_config: AbridgedHostConfiguration = read_entry( &backend, @@ -108,6 +125,13 @@ pub fn extract_from_proof( ) .map_err(Error::Config)?; + let dmq_mqc_head: relay_chain::Hash = read_entry( + &backend, + &relay_chain::well_known_keys::dmq_mqc_head(para_id), + Some(Default::default()), + ) + .map_err(Error::DmqMqcHead)?; + let relay_dispatch_queue_size: (u32, u32) = read_entry( &backend, &relay_chain::well_known_keys::relay_dispatch_queue_size(para_id), @@ -115,6 +139,13 @@ pub fn extract_from_proof( ) .map_err(Error::RelayDispatchQueueSize)?; + let ingress_channel_index: Vec = read_entry( + &backend, + &relay_chain::well_known_keys::hrmp_ingress_channel_index(para_id), + Some(Vec::new()), + ) + .map_err(Error::HrmpIngressChannelIndex)?; + let egress_channel_index: Vec = read_entry( &backend, &relay_chain::well_known_keys::hrmp_egress_channel_index(para_id), @@ -122,6 +153,21 @@ pub fn extract_from_proof( ) .map_err(Error::HrmpEgressChannelIndex)?; + let mut ingress_channels = Vec::with_capacity(ingress_channel_index.len()); + for sender in ingress_channel_index { + let channel_id = relay_chain::v1::HrmpChannelId { + sender, + recipient: para_id, + }; + let hrmp_channel: AbridgedHrmpChannel = read_entry( + &backend, + &relay_chain::well_known_keys::hrmp_channels(channel_id), + None, + ) + .map_err(|read_err| Error::HrmpChannel(sender, para_id, read_err))?; + ingress_channels.push((sender, hrmp_channel)); + } + let mut egress_channels = Vec::with_capacity(egress_channel_index.len()); for recipient in egress_channel_index { let channel_id = relay_chain::v1::HrmpChannelId { @@ -133,17 +179,19 @@ pub fn extract_from_proof( &relay_chain::well_known_keys::hrmp_channels(channel_id), None, ) - .map_err(|read_err| Error::HrmpChannel(recipient, read_err))?; + .map_err(|read_err| Error::HrmpChannel(para_id, recipient, read_err))?; egress_channels.push((recipient, hrmp_channel)); } - // NOTE that egress_channels promises to be sorted. We satisfy this property by relying on - // the fact that `egress_channel_index` is itself sorted. + // NOTE that ingress_channels and egress_channels promise to be sorted. We satisfy this property + // by relying on the fact that `ingress_channel_index` and `egress_channel_index` are themselves sorted. Ok(( host_config, MessagingStateSnapshot { + dmq_mqc_head, relay_dispatch_queue_size, + ingress_channels, egress_channels, }, )) diff --git a/rococo-parachains/src/service.rs b/rococo-parachains/src/service.rs index 96086b6e6fd..a2d3a247230 100644 --- a/rococo-parachains/src/service.rs +++ b/rococo-parachains/src/service.rs @@ -63,6 +63,7 @@ pub fn new_partial( let transaction_pool = sc_transaction_pool::BasicPool::new_full( config.transaction_pool.clone(), + config.role.is_authority().into(), config.prometheus_registry(), task_manager.spawn_handle(), client.clone(), diff --git a/runtime/src/validate_block/implementation.rs b/runtime/src/validate_block/implementation.rs index eeaa7aa6ff6..084ac1d6bc1 100644 --- a/runtime/src/validate_block/implementation.rs +++ b/runtime/src/validate_block/implementation.rs @@ -180,7 +180,7 @@ pub fn validate_block>(params: ValidationParams) - .storage(HRMP_WATERMARK) .flatten() .map(|v| Decode::decode(&mut &v[..]).expect("HRMP watermark is not encoded correctly")) - .unwrap_or(validation_data.block_number); + .unwrap_or(validation_data.relay_parent_number); ValidationResult { head_data, @@ -210,23 +210,15 @@ impl<'a, B: BlockT> WitnessExt<'a, B> { assert_eq!( self.params.parent_head, - validation_data.parent_head + validation_data.parent_head, ); assert_eq!( - self.params.relay_chain_height, - validation_data.block_number + self.params.relay_parent_number, + validation_data.relay_parent_number, ); assert_eq!( - self.params.hrmp_mqc_heads, - validation_data.hrmp_mqc_heads - ); - assert_eq!( - self.params.dmq_mqc_head, - validation_data.dmq_mqc_head, - ); - assert_eq!( - self.params.relay_storage_root, - validation_data.relay_storage_root, + self.params.relay_parent_storage_root, + validation_data.relay_parent_storage_root, ); } } diff --git a/runtime/src/validate_block/tests.rs b/runtime/src/validate_block/tests.rs index c61ba085aa0..a1d634c7dbf 100644 --- a/runtime/src/validate_block/tests.rs +++ b/runtime/src/validate_block/tests.rs @@ -42,17 +42,15 @@ use codec::{Decode, Encode}; fn call_validate_block( parent_head: Header, block_data: ParachainBlockData, - relay_storage_root: Hash, + relay_parent_storage_root: Hash, ) -> Result
{ let mut ext = TestExternalities::default(); let mut ext_ext = ext.ext(); let params = ValidationParams { block_data: BlockData(block_data.encode()), parent_head: HeadData(parent_head.encode()), - relay_chain_height: 1, - relay_storage_root, - hrmp_mqc_heads: Vec::new(), - dmq_mqc_head: Default::default(), + relay_parent_number: 1, + relay_parent_storage_root, } .encode(); @@ -87,7 +85,7 @@ fn create_test_client() -> (Client, LongestChain) { struct TestBlockData { block: Block, witness: sp_trie::StorageProof, - relay_storage_root: Hash, + relay_parent_storage_root: Hash, } fn build_block_with_witness( @@ -96,12 +94,12 @@ fn build_block_with_witness( parent_head: Header, ) -> TestBlockData { let sproof_builder = RelayStateSproofBuilder::default(); - let (relay_storage_root, _) = sproof_builder.clone().into_state_root_and_proof(); + let (relay_parent_storage_root, _) = sproof_builder.clone().into_state_root_and_proof(); let block_id = BlockId::Hash(client.info().best_hash); let mut builder = client.init_block_builder_at( &block_id, Some(PersistedValidationData { - block_number: 1, + relay_parent_number: 1, parent_head: parent_head.encode().into(), ..Default::default() }), @@ -119,7 +117,7 @@ fn build_block_with_witness( witness: built_block .proof .expect("We enabled proof recording before."), - relay_storage_root, + relay_parent_storage_root, } } @@ -132,13 +130,13 @@ fn validate_block_no_extra_extrinsics() { let TestBlockData { block, witness, - relay_storage_root, + relay_parent_storage_root, } = build_block_with_witness(&client, vec![], parent_head.clone()); let (header, extrinsics) = block.deconstruct(); let block_data = ParachainBlockData::new(header.clone(), extrinsics, witness); - let res_header = call_validate_block(parent_head, block_data, relay_storage_root) + let res_header = call_validate_block(parent_head, block_data, relay_parent_storage_root) .expect("Calls `validate_block`"); assert_eq!(header, res_header); } @@ -158,13 +156,13 @@ fn validate_block_with_extra_extrinsics() { let TestBlockData { block, witness, - relay_storage_root, + relay_parent_storage_root, } = build_block_with_witness(&client, extra_extrinsics, parent_head.clone()); let (header, extrinsics) = block.deconstruct(); let block_data = ParachainBlockData::new(header.clone(), extrinsics, witness); - let res_header = call_validate_block(parent_head, block_data, relay_storage_root) + let res_header = call_validate_block(parent_head, block_data, relay_parent_storage_root) .expect("Calls `validate_block`"); assert_eq!(header, res_header); } @@ -179,12 +177,12 @@ fn validate_block_invalid_parent_hash() { let TestBlockData { block, witness, - relay_storage_root, + relay_parent_storage_root, } = build_block_with_witness(&client, vec![], parent_head.clone()); let (mut header, extrinsics) = block.deconstruct(); header.set_parent_hash(Hash::from_low_u64_be(1)); let block_data = ParachainBlockData::new(header, extrinsics, witness); - call_validate_block(parent_head, block_data, relay_storage_root) + call_validate_block(parent_head, block_data, relay_parent_storage_root) .expect("Calls `validate_block`"); } diff --git a/test/client/src/block_builder.rs b/test/client/src/block_builder.rs index 12f0f000ebb..cd532cf36d6 100644 --- a/test/client/src/block_builder.rs +++ b/test/client/src/block_builder.rs @@ -88,16 +88,16 @@ impl InitBlockBuilder for Client { .put_data(sp_timestamp::INHERENT_IDENTIFIER, ×tamp) .expect("Put timestamp failed"); - let (relay_storage_root, relay_chain_state) = + let (relay_parent_storage_root, relay_chain_state) = relay_sproof_builder.into_state_root_and_proof(); let mut validation_data = validation_data.unwrap_or_default(); assert_eq!( - validation_data.relay_storage_root, + validation_data.relay_parent_storage_root, Default::default(), "Overriding the relay storage root is not implemented", ); - validation_data.relay_storage_root = relay_storage_root; + validation_data.relay_parent_storage_root = relay_parent_storage_root; inherent_data .put_data( diff --git a/test/relay-sproof-builder/src/lib.rs b/test/relay-sproof-builder/src/lib.rs index cb17bf4aa95..148540a6822 100644 --- a/test/relay-sproof-builder/src/lib.rs +++ b/test/relay-sproof-builder/src/lib.rs @@ -22,9 +22,20 @@ use sp_std::collections::btree_map::BTreeMap; /// Builds a sproof (portmanteau of 'spoof' and 'proof') of the relay chain state. #[derive(Clone)] pub struct RelayStateSproofBuilder { + /// The para id of the current parachain. + /// + /// This doesn't get into the storage proof produced by the builder, however, it is used for + /// generation of the storage image and by auxilary methods. + /// + /// It's recommended to change this value once in the very beginning of usage. + /// + /// The default value is 200. pub para_id: ParaId, + pub host_config: AbridgedHostConfiguration, + pub dmq_mqc_head: Option, pub relay_dispatch_queue_size: Option<(u32, u32)>, + pub hrmp_ingress_channel_index: Option>, pub hrmp_egress_channel_index: Option>, pub hrmp_channels: BTreeMap, } @@ -44,7 +55,9 @@ impl Default for RelayStateSproofBuilder { validation_upgrade_frequency: 6, validation_upgrade_delay: 6, }, + dmq_mqc_head: None, relay_dispatch_queue_size: None, + hrmp_ingress_channel_index: None, hrmp_egress_channel_index: None, hrmp_channels: BTreeMap::new(), } @@ -52,6 +65,32 @@ impl Default for RelayStateSproofBuilder { } impl RelayStateSproofBuilder { + /// Returns a mutable reference to HRMP channel metadata for a channel (`sender`, `self.para_id`). + /// + /// If there is no channel, a new default one is created. + /// + /// It also updates the `hrmp_ingress_channel_index`, creating it if needed. + pub fn upsert_inbound_channel(&mut self, sender: ParaId) -> &mut AbridgedHrmpChannel { + let in_index = self.hrmp_ingress_channel_index.get_or_insert_with(Vec::new); + if let Err(idx) = in_index.binary_search(&sender) { + in_index.insert(idx, sender); + } + + self.hrmp_channels + .entry(relay_chain::v1::HrmpChannelId { + sender, + recipient: self.para_id, + }) + .or_insert_with(|| AbridgedHrmpChannel { + max_capacity: 0, + max_total_size: 0, + max_message_size: 0, + msg_count: 0, + total_size: 0, + mqc_head: None, + }) + } + pub fn into_state_root_and_proof( self, ) -> ( @@ -74,16 +113,32 @@ impl RelayStateSproofBuilder { relay_chain::well_known_keys::ACTIVE_CONFIG.to_vec(), self.host_config.encode(), ); + if let Some(dmq_mqc_head) = self.dmq_mqc_head { + insert( + relay_chain::well_known_keys::dmq_mqc_head(self.para_id), + dmq_mqc_head.encode(), + ); + } if let Some(relay_dispatch_queue_size) = self.relay_dispatch_queue_size { insert( relay_chain::well_known_keys::relay_dispatch_queue_size(self.para_id), relay_dispatch_queue_size.encode(), ); } + if let Some(hrmp_ingress_channel_index) = self.hrmp_ingress_channel_index { + let mut sorted = hrmp_ingress_channel_index.clone(); + sorted.sort(); + assert_eq!(sorted, hrmp_ingress_channel_index); + + insert( + relay_chain::well_known_keys::hrmp_ingress_channel_index(self.para_id), + hrmp_ingress_channel_index.encode(), + ); + } if let Some(hrmp_egress_channel_index) = self.hrmp_egress_channel_index { let mut sorted = hrmp_egress_channel_index.clone(); sorted.sort(); - assert_eq!(sorted, hrmp_egress_channel_index,); + assert_eq!(sorted, hrmp_egress_channel_index); insert( relay_chain::well_known_keys::hrmp_egress_channel_index(self.para_id), diff --git a/test/service/src/lib.rs b/test/service/src/lib.rs index d27a48e629e..d21dacfc3ff 100644 --- a/test/service/src/lib.rs +++ b/test/service/src/lib.rs @@ -87,6 +87,7 @@ pub fn new_partial( let transaction_pool = sc_transaction_pool::BasicPool::new_full( config.transaction_pool.clone(), + config.role.is_authority().into(), config.prometheus_registry(), task_manager.spawn_handle(), client.clone(),