From 59f09017e7147e28657589ad6cc6c10ba7ea4eee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Drwi=C4=99ga?= Date: Mon, 4 Oct 2021 20:13:35 +0200 Subject: [PATCH 01/40] Companion for #9834 (Transaction Priority) (#3901) * Add new associated type. * Update fee multiplier. * Bump Substrate --- Cargo.lock | 322 ++++++++++++++++---------------- runtime/kusama/src/lib.rs | 4 + runtime/polkadot/src/lib.rs | 4 + runtime/rococo/src/lib.rs | 4 + runtime/test-runtime/src/lib.rs | 4 + runtime/westend/src/lib.rs | 4 + 6 files changed, 181 insertions(+), 161 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bf94de083777..601f398c97d1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -461,7 +461,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "beefy-primitives", "fnv", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -509,12 +509,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -1918,7 +1918,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", ] @@ -1936,7 +1936,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -1956,7 +1956,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "Inflector", "chrono", @@ -1982,7 +1982,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -1996,7 +1996,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "bitflags", "frame-metadata", @@ -2051,7 +2051,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2063,7 +2063,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2075,7 +2075,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro2", "quote", @@ -2085,7 +2085,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2108,7 +2108,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -2119,7 +2119,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "log", @@ -2136,7 +2136,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "sp-api", @@ -2160,7 +2160,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "sp-api", @@ -2373,7 +2373,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "chrono", "frame-election-provider-support", @@ -4595,7 +4595,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4609,7 +4609,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -4625,7 +4625,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -4640,7 +4640,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4664,7 +4664,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4684,7 +4684,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4699,7 +4699,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "beefy-primitives", "frame-support", @@ -4715,7 +4715,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4740,7 +4740,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4825,7 +4825,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4842,7 +4842,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4858,7 +4858,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4882,7 +4882,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4900,7 +4900,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4915,7 +4915,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4938,7 +4938,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4954,7 +4954,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4974,7 +4974,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -4991,7 +4991,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5008,7 +5008,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5026,7 +5026,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5042,7 +5042,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5059,7 +5059,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5074,7 +5074,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5088,7 +5088,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5105,7 +5105,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5128,7 +5128,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5143,7 +5143,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5157,7 +5157,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5173,7 +5173,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5194,7 +5194,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5210,7 +5210,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5224,7 +5224,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5247,7 +5247,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5258,7 +5258,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "log", "sp-arithmetic", @@ -5267,7 +5267,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5281,7 +5281,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5299,7 +5299,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5318,7 +5318,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-support", "frame-system", @@ -5335,7 +5335,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5352,7 +5352,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5363,7 +5363,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5380,7 +5380,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -5396,7 +5396,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-benchmarking", "frame-support", @@ -7793,7 +7793,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8056,7 +8056,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "log", "sp-core", @@ -8067,7 +8067,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "derive_more", @@ -8094,7 +8094,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8117,7 +8117,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8133,7 +8133,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8149,7 +8149,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8160,7 +8160,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "chrono", "fdlimit", @@ -8198,7 +8198,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "fnv", "futures 0.3.17", @@ -8226,7 +8226,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "hash-db", "kvdb", @@ -8251,7 +8251,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "futures 0.3.17", @@ -8275,7 +8275,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "derive_more", @@ -8318,7 +8318,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "derive_more", "futures 0.3.17", @@ -8342,7 +8342,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8355,7 +8355,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "assert_matches", "async-trait", @@ -8389,7 +8389,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "futures 0.3.17", @@ -8415,7 +8415,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "sc-client-api", "sp-authorship", @@ -8426,7 +8426,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8452,7 +8452,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "derive_more", "environmental", @@ -8470,7 +8470,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "log", "parity-scale-codec", @@ -8486,7 +8486,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8504,7 +8504,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "derive_more", @@ -8541,7 +8541,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "derive_more", "finality-grandpa", @@ -8565,7 +8565,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8582,7 +8582,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "derive_more", @@ -8597,7 +8597,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "hash-db", "parity-scale-codec", @@ -8615,7 +8615,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-std", "async-trait", @@ -8666,7 +8666,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8682,7 +8682,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "bytes 1.0.1", "fnv", @@ -8709,7 +8709,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "libp2p", @@ -8722,7 +8722,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8731,7 +8731,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "hash-db", @@ -8762,7 +8762,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8787,7 +8787,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8804,7 +8804,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "directories", @@ -8869,7 +8869,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "log", "parity-scale-codec", @@ -8883,7 +8883,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8905,7 +8905,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "chrono", "futures 0.3.17", @@ -8923,7 +8923,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8952,7 +8952,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8963,7 +8963,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "intervalier", @@ -8990,7 +8990,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "derive_more", "futures 0.3.17", @@ -9004,7 +9004,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9456,7 +9456,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "hash-db", "log", @@ -9473,7 +9473,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9485,7 +9485,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -9498,7 +9498,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "integer-sqrt", "num-traits", @@ -9513,7 +9513,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -9526,7 +9526,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "parity-scale-codec", @@ -9538,7 +9538,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "sp-api", @@ -9550,7 +9550,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "log", @@ -9568,7 +9568,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "futures 0.3.17", @@ -9587,7 +9587,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "merlin", @@ -9610,7 +9610,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -9621,7 +9621,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9633,7 +9633,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "base58", "blake2-rfc", @@ -9678,7 +9678,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9687,7 +9687,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro2", "quote", @@ -9697,7 +9697,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "environmental", "parity-scale-codec", @@ -9708,7 +9708,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "finality-grandpa", "log", @@ -9726,7 +9726,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9740,7 +9740,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "hash-db", @@ -9764,7 +9764,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "lazy_static", "sp-core", @@ -9775,7 +9775,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "derive_more", @@ -9792,7 +9792,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "zstd", ] @@ -9800,7 +9800,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -9815,7 +9815,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9826,7 +9826,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "sp-api", "sp-core", @@ -9836,7 +9836,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "backtrace", ] @@ -9844,7 +9844,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "rustc-hash", "serde", @@ -9854,7 +9854,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "either", "hash256-std-hasher", @@ -9876,7 +9876,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9893,7 +9893,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9905,7 +9905,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "serde", "serde_json", @@ -9914,7 +9914,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -9928,7 +9928,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "scale-info", @@ -9939,7 +9939,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "hash-db", "log", @@ -9962,12 +9962,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9980,7 +9980,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "log", "sp-core", @@ -9993,7 +9993,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10009,7 +10009,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "erased-serde", "log", @@ -10027,7 +10027,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "sp-api", "sp-runtime", @@ -10036,7 +10036,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "log", @@ -10052,7 +10052,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "hash-db", "memory-db", @@ -10067,7 +10067,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10083,7 +10083,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10094,7 +10094,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10290,7 +10290,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "platforms", ] @@ -10298,7 +10298,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10320,7 +10320,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-std", "derive_more", @@ -10334,7 +10334,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "async-trait", "futures 0.3.17", @@ -10361,7 +10361,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10371,7 +10371,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10382,7 +10382,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10535,7 +10535,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "frame-system", "futures 0.3.17", @@ -10975,7 +10975,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#9be8fdd36a70e19cd286bec00df740331b637546" +source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" dependencies = [ "jsonrpsee-ws-client", "log", diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index ad97e499e958..5f461a88ea2e 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -276,11 +276,15 @@ impl pallet_balances::Config for Runtime { parameter_types! { pub const TransactionByteFee: Balance = 10 * MILLICENTS; + /// This value increases the priority of `Operational` transactions by adding + /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`. + pub const OperationalFeeMultiplier: u8 = 5; } impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = CurrencyAdapter>; type TransactionByteFee = TransactionByteFee; + type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = WeightToFee; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 3addbf6932d7..7a772733809e 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -302,11 +302,15 @@ impl pallet_balances::Config for Runtime { parameter_types! { pub const TransactionByteFee: Balance = 10 * MILLICENTS; + /// This value increases the priority of `Operational` transactions by adding + /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`. + pub const OperationalFeeMultiplier: u8 = 5; } impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = CurrencyAdapter>; type TransactionByteFee = TransactionByteFee; + type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = WeightToFee; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; } diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index 900d53150ef6..fc8f8b2c138b 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -452,11 +452,15 @@ impl pallet_timestamp::Config for Runtime { parameter_types! { pub const TransactionByteFee: Balance = 10 * MILLICENTS; + /// This value increases the priority of `Operational` transactions by adding + /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`. + pub const OperationalFeeMultiplier: u8 = 5; } impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = CurrencyAdapter>; type TransactionByteFee = TransactionByteFee; + type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = WeightToFee; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; } diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index 842f451c40ed..560d286e1675 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -223,11 +223,15 @@ impl pallet_balances::Config for Runtime { parameter_types! { pub storage TransactionByteFee: Balance = 10 * MILLICENTS; + /// This value increases the priority of `Operational` transactions by adding + /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`. + pub const OperationalFeeMultiplier: u8 = 5; } impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = CurrencyAdapter; type TransactionByteFee = TransactionByteFee; + type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = WeightToFee; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; } diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 41c9d98e4076..338fa57c52b6 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -262,11 +262,15 @@ impl pallet_balances::Config for Runtime { parameter_types! { pub const TransactionByteFee: Balance = 10 * MILLICENTS; + /// This value increases the priority of `Operational` transactions by adding + /// a "virtual tip" that's equal to the `OperationalFeeMultiplier * final_fee`. + pub const OperationalFeeMultiplier: u8 = 5; } impl pallet_transaction_payment::Config for Runtime { type OnChargeTransaction = CurrencyAdapter>; type TransactionByteFee = TransactionByteFee; + type OperationalFeeMultiplier = OperationalFeeMultiplier; type WeightToFee = WeightToFee; type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; } From 1f50b49268d98ad74d3f60ebad309bdb1b05271d Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 5 Oct 2021 09:49:59 +0000 Subject: [PATCH 02/40] Bump quote from 1.0.9 to 1.0.10 (#4013) Bumps [quote](https://github.com/dtolnay/quote) from 1.0.9 to 1.0.10. - [Release notes](https://github.com/dtolnay/quote/releases) - [Commits](https://github.com/dtolnay/quote/compare/1.0.9...1.0.10) --- updated-dependencies: - dependency-name: quote dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- node/overseer/overseer-gen/proc-macro/Cargo.toml | 2 +- xcm/procedural/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 601f398c97d1..da471c464f6f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7507,9 +7507,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c3d0b9745dc2debf507c8422de05d7226cc1f0644216dfdfead988f9b1ab32a7" +checksum = "38bc8cc6a5f2e3655e0899c1b848643b2562f853f114bfec7be120678e3ace05" dependencies = [ "proc-macro2", ] diff --git a/node/overseer/overseer-gen/proc-macro/Cargo.toml b/node/overseer/overseer-gen/proc-macro/Cargo.toml index 9495fb5a8678..e51f63010f7d 100644 --- a/node/overseer/overseer-gen/proc-macro/Cargo.toml +++ b/node/overseer/overseer-gen/proc-macro/Cargo.toml @@ -13,7 +13,7 @@ proc-macro = true [dependencies] syn = { version = "1.0.78", features = ["full", "extra-traits"] } -quote = "1.0.9" +quote = "1.0.10" proc-macro2 = "1.0.26" proc-macro-crate = "1.1.0" diff --git a/xcm/procedural/Cargo.toml b/xcm/procedural/Cargo.toml index 03b5275c04f6..4eb78cdf23da 100644 --- a/xcm/procedural/Cargo.toml +++ b/xcm/procedural/Cargo.toml @@ -9,5 +9,5 @@ proc-macro = true [dependencies] proc-macro2 = "1.0.28" -quote = "1.0.9" +quote = "1.0.10" syn = "1.0.78" From 2a3fca3c880bc42966c7133b3b5a0f08f7e93cb7 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Tue, 5 Oct 2021 10:07:47 -0400 Subject: [PATCH 03/40] Allow an Offset to Lease Periods (#3980) * add slot offset for slots * trying things out * fix test * improve api to return the first block of a new lease period * add an integration test with offset * de-duplicate test * hide lease period_period_length from public api * fix benchmarks * Update runtime/common/src/slots.rs * support the exact same range of crowdloans * fix docs * fix docs again * introduce offset to runtimes * fix and check edge case w/ offset and lease period first block * remove newline * turn into an option * fix benchmarks Co-authored-by: Robert Habermeier --- runtime/common/src/auctions.rs | 63 +++-- runtime/common/src/crowdloan.rs | 113 ++++++--- runtime/common/src/integration_tests.rs | 320 ++++++++++++------------ runtime/common/src/slots.rs | 89 +++++-- runtime/common/src/traits.rs | 42 ++-- runtime/kusama/src/lib.rs | 1 + runtime/polkadot/src/lib.rs | 7 + runtime/rococo/src/lib.rs | 1 + runtime/westend/src/lib.rs | 1 + 9 files changed, 392 insertions(+), 245 deletions(-) diff --git a/runtime/common/src/auctions.rs b/runtime/common/src/auctions.rs index a3866fed2ba2..e605328885eb 100644 --- a/runtime/common/src/auctions.rs +++ b/runtime/common/src/auctions.rs @@ -34,8 +34,9 @@ use primitives::v1::Id as ParaId; use sp_runtime::traits::{CheckedSub, One, Saturating, Zero}; use sp_std::{mem::swap, prelude::*}; -type CurrencyOf = <::Leaser as Leaser>::Currency; -type BalanceOf = <<::Leaser as Leaser>::Currency as Currency< +type CurrencyOf = + <::Leaser as Leaser<::BlockNumber>>::Currency; +type BalanceOf = <<::Leaser as Leaser<::BlockNumber>>::Currency as Currency< ::AccountId, >>::Balance; @@ -65,7 +66,9 @@ impl WeightInfo for TestWeightInfo { /// An auction index. We count auctions in this type. pub type AuctionIndex = u32; -type LeasePeriodOf = <::Leaser as Leaser>::LeasePeriod; +type LeasePeriodOf = + <::Leaser as Leaser<::BlockNumber>>::LeasePeriod; + // Winning data type. This encodes the top bidders of each range together with their bid. type WinningData = [Option<(::AccountId, ParaId, BalanceOf)>; SlotRange::SLOT_RANGE_COUNT]; @@ -91,7 +94,11 @@ pub mod pallet { type Event: From> + IsType<::Event>; /// The type representing the leasing system. - type Leaser: Leaser; + type Leaser: Leaser< + Self::BlockNumber, + AccountId = Self::AccountId, + LeasePeriod = Self::BlockNumber, + >; /// The parachain registrar type. type Registrar: Registrar; @@ -299,9 +306,8 @@ pub mod pallet { } } -impl Auctioneer for Pallet { +impl Auctioneer for Pallet { type AccountId = T::AccountId; - type BlockNumber = T::BlockNumber; type LeasePeriod = T::BlockNumber; type Currency = CurrencyOf; @@ -313,7 +319,7 @@ impl Auctioneer for Pallet { } // Returns the status of the auction given the current block number. - fn auction_status(now: Self::BlockNumber) -> AuctionStatus { + fn auction_status(now: T::BlockNumber) -> AuctionStatus { let early_end = match AuctionInfo::::get() { Some((_, early_end)) => early_end, None => return AuctionStatus::NotStarted, @@ -346,12 +352,13 @@ impl Auctioneer for Pallet { Self::handle_bid(bidder, para, AuctionCounter::::get(), first_slot, last_slot, amount) } - fn lease_period_index() -> Self::LeasePeriod { - T::Leaser::lease_period_index() + fn lease_period_index(b: T::BlockNumber) -> Option<(Self::LeasePeriod, bool)> { + T::Leaser::lease_period_index(b) } - fn lease_period() -> Self::LeasePeriod { - T::Leaser::lease_period() + #[cfg(any(feature = "runtime-benchmarks", test))] + fn lease_period_length() -> (T::BlockNumber, T::BlockNumber) { + T::Leaser::lease_period_length() } fn has_won_an_auction(para: ParaId, bidder: &T::AccountId) -> bool { @@ -374,10 +381,11 @@ impl Pallet { ) -> DispatchResult { let maybe_auction = AuctionInfo::::get(); ensure!(maybe_auction.is_none(), Error::::AuctionInProgress); - ensure!( - lease_period_index >= T::Leaser::lease_period_index(), - Error::::LeasePeriodInPast - ); + let now = frame_system::Pallet::::block_number(); + if let Some((current_lease_period, _)) = T::Leaser::lease_period_index(now) { + // If there is no active lease period, then we don't need to make this check. + ensure!(lease_period_index >= current_lease_period, Error::::LeasePeriodInPast); + } // Bump the counter. let n = AuctionCounter::::mutate(|n| { @@ -567,7 +575,9 @@ impl Pallet { let period_count = LeasePeriodOf::::from(range.len() as u32); match T::Leaser::lease_out(para, &leaser, amount, period_begin, period_count) { - Err(LeaseError::ReserveFailed) | Err(LeaseError::AlreadyEnded) => { + Err(LeaseError::ReserveFailed) | + Err(LeaseError::AlreadyEnded) | + Err(LeaseError::NoLeasePeriod) => { // Should never happen since we just unreserved this amount (and our offset is from the // present period). But if it does, there's not much we can do. }, @@ -735,7 +745,7 @@ mod tests { } pub struct TestLeaser; - impl Leaser for TestLeaser { + impl Leaser for TestLeaser { type AccountId = u64; type LeasePeriod = BlockNumber; type Currency = Balances; @@ -749,7 +759,10 @@ mod tests { ) -> Result<(), LeaseError> { LEASES.with(|l| { let mut leases = l.borrow_mut(); - if period_begin < Self::lease_period_index() { + let now = System::block_number(); + let (current_lease_period, _) = + Self::lease_period_index(now).ok_or(LeaseError::NoLeasePeriod)?; + if period_begin < current_lease_period { return Err(LeaseError::AlreadyEnded) } for period in period_begin..(period_begin + period_count) { @@ -779,12 +792,18 @@ mod tests { .unwrap_or_default() } - fn lease_period() -> Self::LeasePeriod { - 10 + fn lease_period_length() -> (BlockNumber, BlockNumber) { + (10, 0) } - fn lease_period_index() -> Self::LeasePeriod { - (System::block_number() / Self::lease_period()).into() + fn lease_period_index(b: BlockNumber) -> Option<(Self::LeasePeriod, bool)> { + let (lease_period_length, offset) = Self::lease_period_length(); + let b = b.checked_sub(offset)?; + + let lease_period = b / lease_period_length; + let first_block = (b % lease_period_length).is_zero(); + + Some((lease_period, first_block)) } fn already_leased( diff --git a/runtime/common/src/crowdloan.rs b/runtime/common/src/crowdloan.rs index c45f9750f631..115a89fac542 100644 --- a/runtime/common/src/crowdloan.rs +++ b/runtime/common/src/crowdloan.rs @@ -72,8 +72,11 @@ use sp_runtime::{ }; use sp_std::vec::Vec; -type CurrencyOf = <::Auctioneer as Auctioneer>::Currency; -type LeasePeriodOf = <::Auctioneer as Auctioneer>::LeasePeriod; +type CurrencyOf = + <::Auctioneer as Auctioneer<::BlockNumber>>::Currency; +type LeasePeriodOf = <::Auctioneer as Auctioneer< + ::BlockNumber, +>>::LeasePeriod; type BalanceOf = as Currency<::AccountId>>::Balance; #[allow(dead_code)] @@ -203,8 +206,8 @@ pub mod pallet { /// The type representing the auctioning system. type Auctioneer: Auctioneer< + Self::BlockNumber, AccountId = Self::AccountId, - BlockNumber = Self::BlockNumber, LeasePeriod = Self::BlockNumber, >; @@ -313,6 +316,8 @@ pub mod pallet { AlreadyInNewRaise, /// No contributions allowed during the VRF delay VrfDelayInProgress, + /// A lease period has not started yet, due to an offset in the starting block. + NoLeasePeriod, } #[pallet::hooks] @@ -365,20 +370,31 @@ pub mod pallet { verifier: Option, ) -> DispatchResult { let depositor = ensure_signed(origin)?; + let now = frame_system::Pallet::::block_number(); ensure!(first_period <= last_period, Error::::LastPeriodBeforeFirstPeriod); let last_period_limit = first_period .checked_add(&((SlotRange::LEASE_PERIODS_PER_SLOT as u32) - 1).into()) .ok_or(Error::::FirstPeriodTooFarInFuture)?; ensure!(last_period <= last_period_limit, Error::::LastPeriodTooFarInFuture); - ensure!(end > >::block_number(), Error::::CannotEndInPast); - let last_possible_win_date = (first_period.saturating_add(One::one())) - .saturating_mul(T::Auctioneer::lease_period()); - ensure!(end <= last_possible_win_date, Error::::EndTooFarInFuture); - ensure!( - first_period >= T::Auctioneer::lease_period_index(), - Error::::FirstPeriodInPast - ); + ensure!(end > now, Error::::CannotEndInPast); + + // Here we check the lease period on the ending block is at most the first block of the + // period after `first_period`. If it would be larger, there is no way we could win an + // active auction, thus it would make no sense to have a crowdloan this long. + let (lease_period_at_end, is_first_block) = + T::Auctioneer::lease_period_index(end).ok_or(Error::::NoLeasePeriod)?; + let adjusted_lease_period_at_end = if is_first_block { + lease_period_at_end.saturating_sub(One::one()) + } else { + lease_period_at_end + }; + ensure!(adjusted_lease_period_at_end <= first_period, Error::::EndTooFarInFuture); + + // Can't start a crowdloan for a lease period that already passed. + if let Some((current_lease_period, _)) = T::Auctioneer::lease_period_index(now) { + ensure!(first_period >= current_lease_period, Error::::FirstPeriodInPast); + } // There should not be an existing fund. ensure!(!Funds::::contains_key(index), Error::::FundNotEnded); @@ -439,7 +455,9 @@ pub mod pallet { ensure!(now < fund.end, Error::::ContributionPeriodOver); // Make sure crowdloan is in a valid lease period - let current_lease_period = T::Auctioneer::lease_period_index(); + let now = frame_system::Pallet::::block_number(); + let (current_lease_period, _) = + T::Auctioneer::lease_period_index(now).ok_or(Error::::NoLeasePeriod)?; ensure!(current_lease_period <= fund.first_period, Error::::ContributionPeriodOver); // Make sure crowdloan has not already won. @@ -751,7 +769,8 @@ impl Pallet { // `fund.end` can represent the end of a failed crowdloan or the beginning of retirement // If the current lease period is past the first period they are trying to bid for, then // it is already too late to win the bid. - let current_lease_period = T::Auctioneer::lease_period_index(); + let (current_lease_period, _) = + T::Auctioneer::lease_period_index(now).ok_or(Error::::NoLeasePeriod)?; ensure!( now >= fund.end || current_lease_period > fund.first_period, Error::::FundNotEnded @@ -931,14 +950,16 @@ mod tests { } pub struct TestAuctioneer; - impl Auctioneer for TestAuctioneer { + impl Auctioneer for TestAuctioneer { type AccountId = u64; - type BlockNumber = BlockNumber; type LeasePeriod = u64; type Currency = Balances; fn new_auction(duration: u64, lease_period_index: u64) -> DispatchResult { - assert!(lease_period_index >= Self::lease_period_index()); + let now = System::block_number(); + let (current_lease_period, _) = + Self::lease_period_index(now).ok_or("no lease period yet")?; + assert!(lease_period_index >= current_lease_period); let ending = System::block_number().saturating_add(duration); AUCTION.with(|p| *p.borrow_mut() = Some((lease_period_index, ending))); @@ -991,12 +1012,17 @@ mod tests { Ok(()) } - fn lease_period_index() -> u64 { - System::block_number() / Self::lease_period() + fn lease_period_index(b: BlockNumber) -> Option<(u64, bool)> { + let (lease_period_length, offset) = Self::lease_period_length(); + let b = b.checked_sub(offset)?; + + let lease_period = b / lease_period_length; + let first_block = (b % lease_period_length).is_zero(); + Some((lease_period, first_block)) } - fn lease_period() -> u64 { - 20 + fn lease_period_length() -> (u64, u64) { + (20, 0) } fn has_won_an_auction(para: ParaId, bidder: &u64) -> bool { @@ -1367,7 +1393,8 @@ mod tests { let para_3 = new_para(); assert_ok!(Crowdloan::create(Origin::signed(1), para_3, 1000, 1, 4, 40, None)); run_to_block(40); - assert_eq!(TestAuctioneer::lease_period_index(), 2); + let now = System::block_number(); + assert_eq!(TestAuctioneer::lease_period_index(now).unwrap().0, 2); assert_noop!( Crowdloan::contribute(Origin::signed(1), para_3, 49, None), Error::::ContributionPeriodOver @@ -1842,7 +1869,11 @@ mod benchmarking { fn create_fund(id: u32, end: T::BlockNumber) -> ParaId { let cap = BalanceOf::::max_value(); - let lease_period_index = T::Auctioneer::lease_period_index(); + let (_, offset) = T::Auctioneer::lease_period_length(); + // Set to the very beginning of lease period index 0. + frame_system::Pallet::::set_block_number(offset); + let now = frame_system::Pallet::::block_number(); + let (lease_period_index, _) = T::Auctioneer::lease_period_index(now).unwrap_or_default(); let first_period = lease_period_index; let last_period = lease_period_index + ((SlotRange::LEASE_PERIODS_PER_SLOT as u32) - 1).into(); @@ -1894,7 +1925,8 @@ mod benchmarking { let cap = BalanceOf::::max_value(); let first_period = 0u32.into(); let last_period = 3u32.into(); - let end = T::Auctioneer::lease_period(); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; let caller: T::AccountId = whitelisted_caller(); let head_data = T::Registrar::worst_head_data(); @@ -1913,7 +1945,9 @@ mod benchmarking { // Contribute has two arms: PreEnding and Ending, but both are equal complexity. contribute { - let fund_index = create_fund::(1, 100u32.into()); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; + let fund_index = create_fund::(1, end); let caller: T::AccountId = whitelisted_caller(); let contribution = T::MinContribution::get(); CurrencyOf::::make_free_balance_be(&caller, BalanceOf::::max_value()); @@ -1931,7 +1965,9 @@ mod benchmarking { } withdraw { - let fund_index = create_fund::(1337, 100u32.into()); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; + let fund_index = create_fund::(1337, end); let caller: T::AccountId = whitelisted_caller(); let contributor = account("contributor", 0, 0); contribute_fund::(&contributor, fund_index); @@ -1945,7 +1981,9 @@ mod benchmarking { #[skip_meta] refund { let k in 0 .. T::RemoveKeysLimit::get(); - let fund_index = create_fund::(1337, 100u32.into()); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; + let fund_index = create_fund::(1337, end); // Dissolve will remove at most `RemoveKeysLimit` at once. for i in 0 .. k { @@ -1960,7 +1998,9 @@ mod benchmarking { } dissolve { - let fund_index = create_fund::(1337, 100u32.into()); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; + let fund_index = create_fund::(1337, end); let caller: T::AccountId = whitelisted_caller(); frame_system::Pallet::::set_block_number(T::BlockNumber::max_value()); }: _(RawOrigin::Signed(caller.clone()), fund_index) @@ -1973,7 +2013,8 @@ mod benchmarking { let cap = BalanceOf::::max_value(); let first_period = 0u32.into(); let last_period = 3u32.into(); - let end = T::Auctioneer::lease_period(); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; let caller: T::AccountId = whitelisted_caller(); let head_data = T::Registrar::worst_head_data(); @@ -1997,7 +2038,9 @@ mod benchmarking { } add_memo { - let fund_index = create_fund::(1, 100u32.into()); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; + let fund_index = create_fund::(1, end); let caller: T::AccountId = whitelisted_caller(); contribute_fund::(&caller, fund_index); let worst_memo = vec![42; T::MaxMemoLength::get().into()]; @@ -2011,7 +2054,9 @@ mod benchmarking { } poke { - let fund_index = create_fund::(1, 100u32.into()); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end = lpl + offset; + let fund_index = create_fund::(1, end); let caller: T::AccountId = whitelisted_caller(); contribute_fund::(&caller, fund_index); NewRaise::::kill(); @@ -2028,7 +2073,8 @@ mod benchmarking { on_initialize { // We test the complexity over different number of new raise let n in 2 .. 100; - let end_block: T::BlockNumber = 100u32.into(); + let (lpl, offset) = T::Auctioneer::lease_period_length(); + let end_block = lpl + offset - 1u32.into(); let pubkey = crypto::create_ed25519_pubkey(b"//verifier".to_vec()); @@ -2043,7 +2089,8 @@ mod benchmarking { Crowdloan::::contribute(RawOrigin::Signed(contributor).into(), fund_index, contribution, Some(sig))?; } - let lease_period_index = T::Auctioneer::lease_period_index(); + let now = frame_system::Pallet::::block_number(); + let (lease_period_index, _) = T::Auctioneer::lease_period_index(now).unwrap_or_default(); let duration = end_block .checked_sub(&frame_system::Pallet::::block_number()) .ok_or("duration of auction less than zero")?; @@ -2062,7 +2109,7 @@ mod benchmarking { impl_benchmark_test_suite!( Crowdloan, - crate::integration_tests::new_test_ext(), + crate::integration_tests::new_test_ext_with_offset(10), crate::integration_tests::Test, ); } diff --git a/runtime/common/src/integration_tests.rs b/runtime/common/src/integration_tests.rs index 5653100815aa..f8f84b5f1fbc 100644 --- a/runtime/common/src/integration_tests.rs +++ b/runtime/common/src/integration_tests.rs @@ -203,6 +203,7 @@ impl auctions::Config for Test { parameter_types! { pub const LeasePeriod: BlockNumber = 100; + pub static LeaseOffset: BlockNumber = 0; } impl slots::Config for Test { @@ -210,6 +211,7 @@ impl slots::Config for Test { type Currency = Balances; type Registrar = Registrar; type LeasePeriod = LeasePeriod; + type LeaseOffset = LeaseOffset; type WeightInfo = crate::slots::TestWeightInfo; } @@ -254,6 +256,11 @@ pub fn new_test_ext() -> TestExternalities { ext } +pub fn new_test_ext_with_offset(n: BlockNumber) -> TestExternalities { + LeaseOffset::set(n); + new_test_ext() +} + const BLOCKS_PER_SESSION: u32 = 10; fn maybe_new_session(n: u32) { @@ -298,171 +305,176 @@ fn last_event() -> Event { System::events().pop().expect("Event expected").event } +// Runs an end to end test of the auction, crowdloan, slots, and onboarding process over varying +// lease period offsets. #[test] fn basic_end_to_end_works() { - new_test_ext().execute_with(|| { - let para_1 = LOWEST_PUBLIC_ID; - let para_2 = LOWEST_PUBLIC_ID + 1; - assert!(System::block_number().is_one()); - // User 1 and 2 will own parachains - Balances::make_free_balance_be(&1, 1_000_000_000); - Balances::make_free_balance_be(&2, 1_000_000_000); - // First register 2 parathreads - let genesis_head = Registrar::worst_head_data(); - let validation_code = Registrar::worst_validation_code(); - assert_ok!(Registrar::reserve(Origin::signed(1))); - assert_ok!(Registrar::register( - Origin::signed(1), - ParaId::from(para_1), - genesis_head.clone(), - validation_code.clone(), - )); - assert_ok!(Registrar::reserve(Origin::signed(2))); - assert_ok!(Registrar::register( - Origin::signed(2), - ParaId::from(2001), - genesis_head, - validation_code, - )); - - // Paras should be onboarding - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Onboarding)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Onboarding)); - - // Start a new auction in the future - let duration = 99u32; - let lease_period_index_start = 4u32; - assert_ok!(Auctions::new_auction(Origin::root(), duration, lease_period_index_start)); - - // 2 sessions later they are parathreads - run_to_session(2); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); - - // Para 1 will bid directly for slot 1, 2 - // Open a crowdloan for Para 2 for slot 3, 4 - assert_ok!(Crowdloan::create( - Origin::signed(2), - ParaId::from(para_2), - 1_000, // Cap - lease_period_index_start + 2, // First Slot - lease_period_index_start + 3, // Last Slot - 200, // Block End - None, - )); - let crowdloan_account = Crowdloan::fund_account_id(ParaId::from(para_2)); - - // Auction ending begins on block 100, so we make a bid before then. - run_to_block(90); - - Balances::make_free_balance_be(&10, 1_000_000_000); - Balances::make_free_balance_be(&20, 1_000_000_000); + for offset in [0u32, 50, 100, 200].iter() { + LeaseOffset::set(*offset); + new_test_ext().execute_with(|| { + let para_1 = LOWEST_PUBLIC_ID; + let para_2 = LOWEST_PUBLIC_ID + 1; + assert!(System::block_number().is_one()); + // User 1 and 2 will own parachains + Balances::make_free_balance_be(&1, 1_000_000_000); + Balances::make_free_balance_be(&2, 1_000_000_000); + // First register 2 parathreads + let genesis_head = Registrar::worst_head_data(); + let validation_code = Registrar::worst_validation_code(); + assert_ok!(Registrar::reserve(Origin::signed(1))); + assert_ok!(Registrar::register( + Origin::signed(1), + ParaId::from(para_1), + genesis_head.clone(), + validation_code.clone(), + )); + assert_ok!(Registrar::reserve(Origin::signed(2))); + assert_ok!(Registrar::register( + Origin::signed(2), + ParaId::from(2001), + genesis_head, + validation_code, + )); - // User 10 will bid directly for parachain 1 - assert_ok!(Auctions::bid( - Origin::signed(10), - ParaId::from(para_1), - 1, // Auction Index - lease_period_index_start + 0, // First Slot - lease_period_index_start + 1, // Last slot - 910, // Amount - )); + // Paras should be onboarding + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Onboarding)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Onboarding)); - // User 2 will be a contribute to crowdloan for parachain 2 - Balances::make_free_balance_be(&2, 1_000_000_000); - assert_ok!(Crowdloan::contribute(Origin::signed(2), ParaId::from(para_2), 920, None)); + // Start a new auction in the future + let duration = 99u32 + offset; + let lease_period_index_start = 4u32; + assert_ok!(Auctions::new_auction(Origin::root(), duration, lease_period_index_start)); - // Auction ends at block 110 - run_to_block(109); - assert_eq!( - last_event(), - crowdloan::Event::::HandleBidResult(ParaId::from(para_2), Ok(())).into(), - ); - run_to_block(110); - assert_eq!(last_event(), auctions::Event::::AuctionClosed(1).into()); + // 2 sessions later they are parathreads + run_to_session(2); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); - // Paras should have won slots - assert_eq!( - slots::Leases::::get(ParaId::from(para_1)), - // -- 1 --- 2 --- 3 --------- 4 ------------ 5 -------- - vec![None, None, None, Some((10, 910)), Some((10, 910))], - ); - assert_eq!( - slots::Leases::::get(ParaId::from(para_2)), - // -- 1 --- 2 --- 3 --- 4 --- 5 ---------------- 6 --------------------------- 7 ---------------- - vec![ - None, - None, - None, - None, + // Para 1 will bid directly for slot 1, 2 + // Open a crowdloan for Para 2 for slot 3, 4 + assert_ok!(Crowdloan::create( + Origin::signed(2), + ParaId::from(para_2), + 1_000, // Cap + lease_period_index_start + 2, // First Slot + lease_period_index_start + 3, // Last Slot + 200 + offset, // Block End None, - Some((crowdloan_account, 920)), - Some((crowdloan_account, 920)) - ], - ); - - // Should not be able to contribute to a winning crowdloan - Balances::make_free_balance_be(&3, 1_000_000_000); - assert_noop!( - Crowdloan::contribute(Origin::signed(3), ParaId::from(2001), 10, None), - CrowdloanError::::BidOrLeaseActive - ); - - // New leases will start on block 400 - let lease_start_block = 400; - run_to_block(lease_start_block); - - // First slot, Para 1 should be transitioning to Parachain - assert_eq!( - Paras::lifecycle(ParaId::from(para_1)), - Some(ParaLifecycle::UpgradingParathread) - ); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); - - // Two sessions later, it has upgraded - run_to_block(lease_start_block + 20); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parachain)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); - - // Second slot nothing happens :) - run_to_block(lease_start_block + 100); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parachain)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); - - // Third slot, Para 2 should be upgrading, and Para 1 is downgrading - run_to_block(lease_start_block + 200); - assert_eq!( - Paras::lifecycle(ParaId::from(para_1)), - Some(ParaLifecycle::DowngradingParachain) - ); - assert_eq!( - Paras::lifecycle(ParaId::from(para_2)), - Some(ParaLifecycle::UpgradingParathread) - ); + )); + let crowdloan_account = Crowdloan::fund_account_id(ParaId::from(para_2)); - // Two sessions later, they have transitioned - run_to_block(lease_start_block + 220); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parachain)); + // Auction ending begins on block 100 + offset, so we make a bid before then. + run_to_block(90 + offset); - // Fourth slot nothing happens :) - run_to_block(lease_start_block + 300); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parachain)); + Balances::make_free_balance_be(&10, 1_000_000_000); + Balances::make_free_balance_be(&20, 1_000_000_000); - // Fifth slot, Para 2 is downgrading - run_to_block(lease_start_block + 400); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); - assert_eq!( - Paras::lifecycle(ParaId::from(para_2)), - Some(ParaLifecycle::DowngradingParachain) - ); + // User 10 will bid directly for parachain 1 + assert_ok!(Auctions::bid( + Origin::signed(10), + ParaId::from(para_1), + 1, // Auction Index + lease_period_index_start + 0, // First Slot + lease_period_index_start + 1, // Last slot + 910, // Amount + )); - // Two sessions later, Para 2 is downgraded - run_to_block(lease_start_block + 420); - assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); - assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); - }); + // User 2 will be a contribute to crowdloan for parachain 2 + Balances::make_free_balance_be(&2, 1_000_000_000); + assert_ok!(Crowdloan::contribute(Origin::signed(2), ParaId::from(para_2), 920, None)); + + // Auction ends at block 110 + offset + run_to_block(109 + offset); + assert_eq!( + last_event(), + crowdloan::Event::::HandleBidResult(ParaId::from(para_2), Ok(())).into(), + ); + run_to_block(110 + offset); + assert_eq!(last_event(), auctions::Event::::AuctionClosed(1).into()); + + // Paras should have won slots + assert_eq!( + slots::Leases::::get(ParaId::from(para_1)), + // -- 1 --- 2 --- 3 --------- 4 ------------ 5 -------- + vec![None, None, None, Some((10, 910)), Some((10, 910))], + ); + assert_eq!( + slots::Leases::::get(ParaId::from(para_2)), + // -- 1 --- 2 --- 3 --- 4 --- 5 ---------------- 6 --------------------------- 7 ---------------- + vec![ + None, + None, + None, + None, + None, + Some((crowdloan_account, 920)), + Some((crowdloan_account, 920)) + ], + ); + + // Should not be able to contribute to a winning crowdloan + Balances::make_free_balance_be(&3, 1_000_000_000); + assert_noop!( + Crowdloan::contribute(Origin::signed(3), ParaId::from(2001), 10, None), + CrowdloanError::::BidOrLeaseActive + ); + + // New leases will start on block 400 + let lease_start_block = 400 + offset; + run_to_block(lease_start_block); + + // First slot, Para 1 should be transitioning to Parachain + assert_eq!( + Paras::lifecycle(ParaId::from(para_1)), + Some(ParaLifecycle::UpgradingParathread) + ); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); + + // Two sessions later, it has upgraded + run_to_block(lease_start_block + 20); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parachain)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); + + // Second slot nothing happens :) + run_to_block(lease_start_block + 100); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parachain)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); + + // Third slot, Para 2 should be upgrading, and Para 1 is downgrading + run_to_block(lease_start_block + 200); + assert_eq!( + Paras::lifecycle(ParaId::from(para_1)), + Some(ParaLifecycle::DowngradingParachain) + ); + assert_eq!( + Paras::lifecycle(ParaId::from(para_2)), + Some(ParaLifecycle::UpgradingParathread) + ); + + // Two sessions later, they have transitioned + run_to_block(lease_start_block + 220); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parachain)); + + // Fourth slot nothing happens :) + run_to_block(lease_start_block + 300); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parachain)); + + // Fifth slot, Para 2 is downgrading + run_to_block(lease_start_block + 400); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); + assert_eq!( + Paras::lifecycle(ParaId::from(para_2)), + Some(ParaLifecycle::DowngradingParachain) + ); + + // Two sessions later, Para 2 is downgraded + run_to_block(lease_start_block + 420); + assert_eq!(Paras::lifecycle(ParaId::from(para_1)), Some(ParaLifecycle::Parathread)); + assert_eq!(Paras::lifecycle(ParaId::from(para_2)), Some(ParaLifecycle::Parathread)); + }); + } } #[test] diff --git a/runtime/common/src/slots.rs b/runtime/common/src/slots.rs index 8fe4a77f187e..35c520afeaf1 100644 --- a/runtime/common/src/slots.rs +++ b/runtime/common/src/slots.rs @@ -83,6 +83,10 @@ pub mod pallet { #[pallet::constant] type LeasePeriod: Get; + /// The number of blocks to offset each lease period by. + #[pallet::constant] + type LeaseOffset: Get; + /// Weight Information for the Extrinsics in the Pallet type WeightInfo: WeightInfo; } @@ -138,14 +142,15 @@ pub mod pallet { #[pallet::hooks] impl Hooks> for Pallet { fn on_initialize(n: T::BlockNumber) -> Weight { - // If we're beginning a new lease period then handle that. - let lease_period = T::LeasePeriod::get(); - if (n % lease_period).is_zero() { - let lease_period_index = n / lease_period; - Self::manage_lease_period_start(lease_period_index) - } else { - 0 + if let Some((lease_period, first_block)) = Self::lease_period_index(n) { + // If we're beginning a new lease period then handle that. + if first_block { + return Self::manage_lease_period_start(lease_period) + } } + + // We didn't return early above, so we didn't do anything. + 0 } } @@ -321,7 +326,7 @@ impl crate::traits::OnSwap for Pallet { } } -impl Leaser for Pallet { +impl Leaser for Pallet { type AccountId = T::AccountId; type LeasePeriod = T::BlockNumber; type Currency = T::Currency; @@ -333,7 +338,9 @@ impl Leaser for Pallet { period_begin: Self::LeasePeriod, period_count: Self::LeasePeriod, ) -> Result<(), LeaseError> { - let current_lease_period = Self::lease_period_index(); + let now = frame_system::Pallet::::block_number(); + let (current_lease_period, _) = + Self::lease_period_index(now).ok_or(LeaseError::NoLeasePeriod)?; // Finally, we update the deposit held so it is `amount` for the new lease period // indices that were won in the auction. let offset = period_begin @@ -427,12 +434,18 @@ impl Leaser for Pallet { .unwrap_or_else(Zero::zero) } - fn lease_period() -> Self::LeasePeriod { - T::LeasePeriod::get() + #[cfg(any(feature = "runtime-benchmarks", test))] + fn lease_period_length() -> (T::BlockNumber, T::BlockNumber) { + (T::LeasePeriod::get(), T::LeaseOffset::get()) } - fn lease_period_index() -> Self::LeasePeriod { - >::block_number() / T::LeasePeriod::get() + fn lease_period_index(b: T::BlockNumber) -> Option<(Self::LeasePeriod, bool)> { + // Note that blocks before `LeaseOffset` do not count as any lease period. + let offset_block_now = b.checked_sub(&T::LeaseOffset::get())?; + let lease_period = offset_block_now / T::LeasePeriod::get(); + let first_block = (offset_block_now % T::LeasePeriod::get()).is_zero(); + + Some((lease_period, first_block)) } fn already_leased( @@ -440,7 +453,11 @@ impl Leaser for Pallet { first_period: Self::LeasePeriod, last_period: Self::LeasePeriod, ) -> bool { - let current_lease_period = Self::lease_period_index(); + let now = frame_system::Pallet::::block_number(); + let (current_lease_period, _) = match Self::lease_period_index(now) { + Some(clp) => clp, + None => return true, + }; // Can't look in the past, so we pick whichever is the biggest. let start_period = first_period.max(current_lease_period); @@ -545,6 +562,7 @@ mod tests { parameter_types! { pub const LeasePeriod: BlockNumber = 10; + pub static LeaseOffset: BlockNumber = 0; pub const ParaDeposit: u64 = 1; } @@ -553,6 +571,7 @@ mod tests { type Currency = Balances; type Registrar = TestRegistrar; type LeasePeriod = LeasePeriod; + type LeaseOffset = LeaseOffset; type WeightInfo = crate::slots::TestWeightInfo; } @@ -584,12 +603,14 @@ mod tests { fn basic_setup_works() { new_test_ext().execute_with(|| { run_to_block(1); - assert_eq!(Slots::lease_period(), 10); - assert_eq!(Slots::lease_period_index(), 0); + assert_eq!(Slots::lease_period_length(), (10, 0)); + let now = System::block_number(); + assert_eq!(Slots::lease_period_index(now).unwrap().0, 0); assert_eq!(Slots::deposit_held(1.into(), &1), 0); run_to_block(10); - assert_eq!(Slots::lease_period_index(), 1); + let now = System::block_number(); + assert_eq!(Slots::lease_period_index(now).unwrap().0, 1); }); } @@ -850,7 +871,8 @@ mod tests { )); run_to_block(20); - assert_eq!(Slots::lease_period_index(), 2); + let now = System::block_number(); + assert_eq!(Slots::lease_period_index(now).unwrap().0, 2); // Can't lease from the past assert!(Slots::lease_out(1.into(), &1, 1, 1, 1).is_err()); // Lease in the current period triggers onboarding @@ -913,6 +935,37 @@ mod tests { assert_eq!(TestRegistrar::::operations(), vec![(2.into(), 1, true),]); }); } + + #[test] + fn lease_period_offset_works() { + new_test_ext().execute_with(|| { + let (lpl, offset) = Slots::lease_period_length(); + assert_eq!(offset, 0); + assert_eq!(Slots::lease_period_index(0), Some((0, true))); + assert_eq!(Slots::lease_period_index(1), Some((0, false))); + assert_eq!(Slots::lease_period_index(lpl - 1), Some((0, false))); + assert_eq!(Slots::lease_period_index(lpl), Some((1, true))); + assert_eq!(Slots::lease_period_index(lpl + 1), Some((1, false))); + assert_eq!(Slots::lease_period_index(2 * lpl - 1), Some((1, false))); + assert_eq!(Slots::lease_period_index(2 * lpl), Some((2, true))); + assert_eq!(Slots::lease_period_index(2 * lpl + 1), Some((2, false))); + + // Lease period is 10, and we add an offset of 5. + LeaseOffset::set(5); + let (lpl, offset) = Slots::lease_period_length(); + assert_eq!(offset, 5); + assert_eq!(Slots::lease_period_index(0), None); + assert_eq!(Slots::lease_period_index(1), None); + assert_eq!(Slots::lease_period_index(offset), Some((0, true))); + assert_eq!(Slots::lease_period_index(lpl), Some((0, false))); + assert_eq!(Slots::lease_period_index(lpl - 1 + offset), Some((0, false))); + assert_eq!(Slots::lease_period_index(lpl + offset), Some((1, true))); + assert_eq!(Slots::lease_period_index(lpl + offset + 1), Some((1, false))); + assert_eq!(Slots::lease_period_index(2 * lpl - 1 + offset), Some((1, false))); + assert_eq!(Slots::lease_period_index(2 * lpl + offset), Some((2, true))); + assert_eq!(Slots::lease_period_index(2 * lpl + offset + 1), Some((2, false))); + }); + } } #[cfg(feature = "runtime-benchmarks")] diff --git a/runtime/common/src/traits.rs b/runtime/common/src/traits.rs index 938fefd963c0..98abe62c2a11 100644 --- a/runtime/common/src/traits.rs +++ b/runtime/common/src/traits.rs @@ -94,10 +94,12 @@ pub enum LeaseError { AlreadyLeased, /// The period to be leased has already ended. AlreadyEnded, + /// A lease period has not started yet, due to an offset in the starting block. + NoLeasePeriod, } /// Lease manager. Used by the auction module to handle parachain slot leases. -pub trait Leaser { +pub trait Leaser { /// An account identifier for a leaser. type AccountId; @@ -133,11 +135,16 @@ pub trait Leaser { leaser: &Self::AccountId, ) -> >::Balance; - /// The lease period. This is constant, but can't be a `const` due to it being a runtime configurable quantity. - fn lease_period() -> Self::LeasePeriod; + /// The length of a lease period, and any offset which may be introduced. + /// This is only used in benchmarking to automate certain calls. + #[cfg(any(feature = "runtime-benchmarks", test))] + fn lease_period_length() -> (BlockNumber, BlockNumber); - /// Returns the current lease period. - fn lease_period_index() -> Self::LeasePeriod; + /// Returns the lease period at `block`, and if this is the first block of a new lease period. + /// + /// Will return `None` if the first lease period has not started yet, for example when an offset + /// is placed. + fn lease_period_index(block: BlockNumber) -> Option<(Self::LeasePeriod, bool)>; /// Returns true if the parachain already has a lease in any of lease periods in the inclusive /// range `[first_period, last_period]`, intersected with the unbounded range [`current_lease_period`..] . @@ -189,13 +196,10 @@ impl AuctionStatus { } } -pub trait Auctioneer { +pub trait Auctioneer { /// An account identifier for a leaser. type AccountId; - /// The measurement type for counting blocks. - type BlockNumber; - /// The measurement type for counting lease periods (generally the same as `BlockNumber`). type LeasePeriod; @@ -207,13 +211,10 @@ pub trait Auctioneer { /// This can only happen when there isn't already an auction in progress. Accepts the `duration` /// of this auction and the `lease_period_index` of the initial lease period of the four that /// are to be auctioned. - fn new_auction( - duration: Self::BlockNumber, - lease_period_index: Self::LeasePeriod, - ) -> DispatchResult; + fn new_auction(duration: BlockNumber, lease_period_index: Self::LeasePeriod) -> DispatchResult; /// Given the current block number, return the current auction status. - fn auction_status(now: Self::BlockNumber) -> AuctionStatus; + fn auction_status(now: BlockNumber) -> AuctionStatus; /// Place a bid in the current auction. /// @@ -234,11 +235,16 @@ pub trait Auctioneer { amount: >::Balance, ) -> DispatchResult; - /// Returns the current lease period. - fn lease_period_index() -> Self::LeasePeriod; + /// The length of a lease period, and any offset which may be introduced. + /// This is only used in benchmarking to automate certain calls. + #[cfg(any(feature = "runtime-benchmarks", test))] + fn lease_period_length() -> (BlockNumber, BlockNumber); - /// Returns the length of a lease period. - fn lease_period() -> Self::LeasePeriod; + /// Returns the lease period at `block`, and if this is the first block of a new lease period. + /// + /// Will return `None` if the first lease period has not started yet, for example when an offset + /// is placed. + fn lease_period_index(block: BlockNumber) -> Option<(Self::LeasePeriod, bool)>; /// Check if the para and user combination has won an auction in the past. fn has_won_an_auction(para: ParaId, bidder: &Self::AccountId) -> bool; diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 5f461a88ea2e..bbf0aae53123 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -1212,6 +1212,7 @@ impl slots::Config for Runtime { type Currency = Balances; type Registrar = Registrar; type LeasePeriod = LeasePeriod; + type LeaseOffset = (); type WeightInfo = weights::runtime_common_slots::WeightInfo; } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 7a772733809e..e57f4564e7a2 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -1173,6 +1173,12 @@ impl paras_registrar::Config for Runtime { parameter_types! { // 12 weeks = 3 months per lease period -> 8 lease periods ~ 2 years pub const LeasePeriod: BlockNumber = 12 * WEEKS; + // Polkadot Genesis was on May 26, 2020. + // Target Parachain Onboarding Date: Dec 15, 2021. + // Difference is 568 days. + // We want a lease period to start on the target onboarding date. + // 568 % (12 * 7) = 64 day offset + pub const LeaseOffset: BlockNumber = 64 * DAYS; } impl slots::Config for Runtime { @@ -1180,6 +1186,7 @@ impl slots::Config for Runtime { type Currency = Balances; type Registrar = Registrar; type LeasePeriod = LeasePeriod; + type LeaseOffset = LeaseOffset; type WeightInfo = weights::runtime_common_slots::WeightInfo; } diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index fc8f8b2c138b..db00630ede9f 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -1003,6 +1003,7 @@ impl slots::Config for Runtime { type Currency = Balances; type Registrar = Registrar; type LeasePeriod = LeasePeriod; + type LeaseOffset = (); type WeightInfo = slots::TestWeightInfo; } diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 338fa57c52b6..17138875a7c2 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -883,6 +883,7 @@ impl slots::Config for Runtime { type Currency = Balances; type Registrar = Registrar; type LeasePeriod = LeasePeriod; + type LeaseOffset = (); type WeightInfo = weights::runtime_common_slots::WeightInfo; } From f520483aa3e7ca93f7adabc0149d880712834eab Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Tue, 5 Oct 2021 15:53:20 -0400 Subject: [PATCH 04/40] individual benchmark tests (#4018) --- runtime/common/src/auctions.rs | 14 +++++++------- runtime/common/src/claims.rs | 7 +------ runtime/common/src/crowdloan.rs | 14 +++++++------- runtime/common/src/paras_registrar.rs | 14 +++++++------- runtime/common/src/slots.rs | 14 +++++++------- .../parachains/src/configuration/benchmarking.rs | 14 +++++++------- runtime/parachains/src/disputes/benchmarking.rs | 14 +++++++------- .../parachains/src/initializer/benchmarking.rs | 14 +++++++------- runtime/parachains/src/paras/benchmarking.rs | 14 +++++++------- .../src/fungible/benchmarking.rs | 16 +++++++--------- 10 files changed, 64 insertions(+), 71 deletions(-) diff --git a/runtime/common/src/auctions.rs b/runtime/common/src/auctions.rs index e605328885eb..1dddacc92c1f 100644 --- a/runtime/common/src/auctions.rs +++ b/runtime/common/src/auctions.rs @@ -1708,7 +1708,7 @@ mod benchmarking { use frame_system::RawOrigin; use sp_runtime::{traits::Bounded, SaturatedConversion}; - use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite, whitelisted_caller}; + use frame_benchmarking::{account, benchmarks, whitelisted_caller}; fn assert_last_event(generic_event: ::Event) { let events = frame_system::Pallet::::events(); @@ -1883,11 +1883,11 @@ mod benchmarking { verify { assert!(AuctionInfo::::get().is_none()); } - } - impl_benchmark_test_suite!( - Auctions, - crate::integration_tests::new_test_ext(), - crate::integration_tests::Test, - ); + impl_benchmark_test_suite!( + Auctions, + crate::integration_tests::new_test_ext(), + crate::integration_tests::Test, + ); + } } diff --git a/runtime/common/src/claims.rs b/runtime/common/src/claims.rs index a89bd0b4d03a..cd62e204854b 100644 --- a/runtime/common/src/claims.rs +++ b/runtime/common/src/claims.rs @@ -1589,13 +1589,8 @@ mod benchmarking { assert!(super::Pallet::::eth_recover(&signature, &data, extra).is_some()); } } - } - - #[cfg(test)] - mod tests { - use super::*; - frame_benchmarking::impl_benchmark_test_suite!( + impl_benchmark_test_suite!( Pallet, crate::claims::tests::new_test_ext(), crate::claims::tests::Test, diff --git a/runtime/common/src/crowdloan.rs b/runtime/common/src/crowdloan.rs index 115a89fac542..d496617730fa 100644 --- a/runtime/common/src/crowdloan.rs +++ b/runtime/common/src/crowdloan.rs @@ -1857,7 +1857,7 @@ mod benchmarking { use sp_runtime::traits::{Bounded, CheckedSub}; use sp_std::prelude::*; - use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite, whitelisted_caller}; + use frame_benchmarking::{account, benchmarks, whitelisted_caller}; fn assert_last_event(generic_event: ::Event) { let events = frame_system::Pallet::::events(); @@ -2105,11 +2105,11 @@ mod benchmarking { assert_eq!(EndingsCount::::get(), old_endings_count + 1); assert_last_event::(Event::::HandleBidResult((n - 1).into(), Ok(())).into()); } - } - impl_benchmark_test_suite!( - Crowdloan, - crate::integration_tests::new_test_ext_with_offset(10), - crate::integration_tests::Test, - ); + impl_benchmark_test_suite!( + Crowdloan, + crate::integration_tests::new_test_ext_with_offset(10), + crate::integration_tests::Test, + ); + } } diff --git a/runtime/common/src/paras_registrar.rs b/runtime/common/src/paras_registrar.rs index 448bc5092403..6b6c8fd493ed 100644 --- a/runtime/common/src/paras_registrar.rs +++ b/runtime/common/src/paras_registrar.rs @@ -1048,7 +1048,7 @@ mod benchmarking { use runtime_parachains::{paras, shared, Origin as ParaOrigin}; use sp_runtime::traits::Bounded; - use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite, whitelisted_caller}; + use frame_benchmarking::{account, benchmarks, whitelisted_caller}; fn assert_last_event(generic_event: ::Event) { let events = frame_system::Pallet::::events(); @@ -1160,11 +1160,11 @@ mod benchmarking { assert_eq!(paras::Pallet::::lifecycle(parachain), Some(ParaLifecycle::Parathread)); assert_eq!(paras::Pallet::::lifecycle(parathread), Some(ParaLifecycle::Parachain)); } - } - impl_benchmark_test_suite!( - Registrar, - crate::integration_tests::new_test_ext(), - crate::integration_tests::Test, - ); + impl_benchmark_test_suite!( + Registrar, + crate::integration_tests::new_test_ext(), + crate::integration_tests::Test, + ); + } } diff --git a/runtime/common/src/slots.rs b/runtime/common/src/slots.rs index 35c520afeaf1..26ada547c7fe 100644 --- a/runtime/common/src/slots.rs +++ b/runtime/common/src/slots.rs @@ -975,7 +975,7 @@ mod benchmarking { use frame_system::RawOrigin; use sp_runtime::traits::Bounded; - use frame_benchmarking::{account, benchmarks, impl_benchmark_test_suite, whitelisted_caller}; + use frame_benchmarking::{account, benchmarks, whitelisted_caller}; use crate::slots::Pallet as Slots; @@ -1112,11 +1112,11 @@ mod benchmarking { T::Registrar::execute_pending_transitions(); assert!(T::Registrar::is_parachain(para)); } - } - impl_benchmark_test_suite!( - Slots, - crate::integration_tests::new_test_ext(), - crate::integration_tests::Test, - ); + impl_benchmark_test_suite!( + Slots, + crate::integration_tests::new_test_ext(), + crate::integration_tests::Test, + ); + } } diff --git a/runtime/parachains/src/configuration/benchmarking.rs b/runtime/parachains/src/configuration/benchmarking.rs index 8b319cb8fabb..4b98f22c7f76 100644 --- a/runtime/parachains/src/configuration/benchmarking.rs +++ b/runtime/parachains/src/configuration/benchmarking.rs @@ -15,7 +15,7 @@ // along with Polkadot. If not, see . use crate::configuration::*; -use frame_benchmarking::{benchmarks, impl_benchmark_test_suite, BenchmarkError, BenchmarkResult}; +use frame_benchmarking::{benchmarks, BenchmarkError, BenchmarkResult}; use frame_system::RawOrigin; use sp_runtime::traits::One; @@ -35,10 +35,10 @@ benchmarks! { } set_config_with_balance {}: set_hrmp_sender_deposit(RawOrigin::Root, 100_000_000_000) -} -impl_benchmark_test_suite!( - Pallet, - crate::mock::new_test_ext(Default::default()), - crate::mock::Test -); + impl_benchmark_test_suite!( + Pallet, + crate::mock::new_test_ext(Default::default()), + crate::mock::Test + ); +} diff --git a/runtime/parachains/src/disputes/benchmarking.rs b/runtime/parachains/src/disputes/benchmarking.rs index b884d1a6e799..fc54c4929323 100644 --- a/runtime/parachains/src/disputes/benchmarking.rs +++ b/runtime/parachains/src/disputes/benchmarking.rs @@ -16,7 +16,7 @@ use super::*; -use frame_benchmarking::{benchmarks, impl_benchmark_test_suite}; +use frame_benchmarking::benchmarks; use frame_system::RawOrigin; use sp_runtime::traits::One; @@ -27,10 +27,10 @@ benchmarks! { verify { assert!(Frozen::::get().is_none()) } -} -impl_benchmark_test_suite!( - Pallet, - crate::mock::new_test_ext(Default::default()), - crate::mock::Test -); + impl_benchmark_test_suite!( + Pallet, + crate::mock::new_test_ext(Default::default()), + crate::mock::Test + ); +} diff --git a/runtime/parachains/src/initializer/benchmarking.rs b/runtime/parachains/src/initializer/benchmarking.rs index d73c427f133d..c6fb38d68f86 100644 --- a/runtime/parachains/src/initializer/benchmarking.rs +++ b/runtime/parachains/src/initializer/benchmarking.rs @@ -15,7 +15,7 @@ // along with Polkadot. If not, see . use super::*; -use frame_benchmarking::{benchmarks, impl_benchmark_test_suite}; +use frame_benchmarking::benchmarks; use frame_system::{DigestItemOf, RawOrigin}; use primitives::v1::ConsensusLog; @@ -35,10 +35,10 @@ benchmarks! { &>::from(ConsensusLog::ForceApprove(d + 1)), ); } -} -impl_benchmark_test_suite!( - Pallet, - crate::mock::new_test_ext(Default::default()), - crate::mock::Test -); + impl_benchmark_test_suite!( + Pallet, + crate::mock::new_test_ext(Default::default()), + crate::mock::Test + ); +} diff --git a/runtime/parachains/src/paras/benchmarking.rs b/runtime/parachains/src/paras/benchmarking.rs index 2e9a26c260a3..b37ee5b83618 100644 --- a/runtime/parachains/src/paras/benchmarking.rs +++ b/runtime/parachains/src/paras/benchmarking.rs @@ -16,7 +16,7 @@ use super::*; use crate::{configuration::HostConfiguration, shared}; -use frame_benchmarking::{benchmarks, impl_benchmark_test_suite}; +use frame_benchmarking::benchmarks; use frame_system::RawOrigin; use primitives::v1::{HeadData, Id as ParaId, ValidationCode, MAX_CODE_SIZE, MAX_HEAD_DATA_SIZE}; use sp_runtime::traits::{One, Saturating}; @@ -126,10 +126,10 @@ benchmarks! { let next_session = crate::shared::Pallet::::session_index().saturating_add(One::one()); assert_last_event::(Event::ActionQueued(para_id, next_session).into()); } -} -impl_benchmark_test_suite!( - Pallet, - crate::mock::new_test_ext(Default::default()), - crate::mock::Test -); + impl_benchmark_test_suite!( + Pallet, + crate::mock::new_test_ext(Default::default()), + crate::mock::Test + ); +} diff --git a/xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs b/xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs index b93184e0455d..3a71d771c11d 100644 --- a/xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs +++ b/xcm/pallet-xcm-benchmarks/src/fungible/benchmarking.rs @@ -16,9 +16,7 @@ use super::*; use crate::{account_and_location, new_executor, worst_case_holding, AssetTransactorOf, XcmCallOf}; -use frame_benchmarking::{ - benchmarks_instance_pallet, impl_benchmark_test_suite, BenchmarkError, BenchmarkResult, -}; +use frame_benchmarking::{benchmarks_instance_pallet, BenchmarkError, BenchmarkResult}; use frame_support::{pallet_prelude::Get, traits::fungible::Inspect}; use sp_runtime::traits::Zero; use sp_std::{convert::TryInto, prelude::*, vec}; @@ -210,10 +208,10 @@ benchmarks_instance_pallet! { assert!(!T::TransactAsset::balance(&checked_account).is_zero()); } } -} -impl_benchmark_test_suite!( - Pallet, - crate::fungible::mock::new_test_ext(), - crate::fungible::mock::Test -); + impl_benchmark_test_suite!( + Pallet, + crate::fungible::mock::new_test_ext(), + crate::fungible::mock::Test + ); +} From 8216c795b3aa648451bf4735de84a436721783b3 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Oct 2021 11:06:12 +0200 Subject: [PATCH 05/40] Bump lru from 0.6.6 to 0.7.0 (#4012) Bumps [lru](https://github.com/jeromefroe/lru-rs) from 0.6.6 to 0.7.0. - [Release notes](https://github.com/jeromefroe/lru-rs/releases) - [Changelog](https://github.com/jeromefroe/lru-rs/blob/master/CHANGELOG.md) - [Commits](https://github.com/jeromefroe/lru-rs/compare/0.6.6...0.7.0) --- updated-dependencies: - dependency-name: lru dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 35 ++++++++++++------- node/core/approval-voting/Cargo.toml | 2 +- .../availability-distribution/Cargo.toml | 2 +- node/network/availability-recovery/Cargo.toml | 2 +- node/network/dispute-distribution/Cargo.toml | 2 +- node/overseer/Cargo.toml | 2 +- node/service/Cargo.toml | 2 +- node/subsystem-util/Cargo.toml | 2 +- 8 files changed, 29 insertions(+), 20 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index da471c464f6f..96cb2835a4ee 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3643,7 +3643,7 @@ dependencies = [ "libp2p-core", "libp2p-swarm", "log", - "lru", + "lru 0.6.6", "minicbor", "rand 0.7.3", "smallvec", @@ -3965,6 +3965,15 @@ dependencies = [ "hashbrown", ] +[[package]] +name = "lru" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6c748cfe47cb8da225c37595b3108bea1c198c84aaae8ea0ba76d01dda9fc803" +dependencies = [ + "hashbrown", +] + [[package]] name = "lru-cache" version = "0.1.2" @@ -4095,7 +4104,7 @@ version = "0.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "beeb98b3d1ed2c0054bd81b5ba949a0243c3ccad751d45ea898fa8059fa2860a" dependencies = [ - "lru", + "lru 0.6.6", ] [[package]] @@ -5530,7 +5539,7 @@ dependencies = [ "ethereum-types", "hashbrown", "impl-trait-for-tuples", - "lru", + "lru 0.6.6", "parity-util-mem-derive", "parking_lot 0.11.1", "primitive-types", @@ -5867,7 +5876,7 @@ dependencies = [ "derive_more", "futures 0.3.17", "futures-timer 3.0.2", - "lru", + "lru 0.7.0", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -5895,7 +5904,7 @@ dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", "log", - "lru", + "lru 0.7.0", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -6013,7 +6022,7 @@ dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", "lazy_static", - "lru", + "lru 0.7.0", "parity-scale-codec", "polkadot-erasure-coding", "polkadot-node-network-protocol", @@ -6123,7 +6132,7 @@ dependencies = [ "futures-timer 3.0.2", "kvdb", "kvdb-memorydb", - "lru", + "lru 0.7.0", "merlin", "parity-scale-codec", "parking_lot 0.11.1", @@ -6523,7 +6532,7 @@ dependencies = [ "futures 0.3.17", "itertools", "log", - "lru", + "lru 0.7.0", "metered-channel", "parity-scale-codec", "pin-project 1.0.8", @@ -6550,7 +6559,7 @@ dependencies = [ "femme", "futures 0.3.17", "futures-timer 3.0.2", - "lru", + "lru 0.7.0", "metered-channel", "parity-util-mem", "parking_lot 0.11.1", @@ -6860,7 +6869,7 @@ dependencies = [ "kvdb", "kvdb-rocksdb", "log", - "lru", + "lru 0.7.0", "pallet-babe", "pallet-im-online", "pallet-mmr-primitives", @@ -8635,7 +8644,7 @@ dependencies = [ "linked-hash-map", "linked_hash_set", "log", - "lru", + "lru 0.6.6", "parity-scale-codec", "parking_lot 0.11.1", "pin-project 1.0.8", @@ -8672,7 +8681,7 @@ dependencies = [ "futures-timer 3.0.2", "libp2p", "log", - "lru", + "lru 0.6.6", "sc-network", "sp-runtime", "substrate-prometheus-endpoint", @@ -9554,7 +9563,7 @@ source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c1 dependencies = [ "futures 0.3.17", "log", - "lru", + "lru 0.6.6", "parity-scale-codec", "parking_lot 0.11.1", "sp-api", diff --git a/node/core/approval-voting/Cargo.toml b/node/core/approval-voting/Cargo.toml index 2b12c4279210..e240346a7e6a 100644 --- a/node/core/approval-voting/Cargo.toml +++ b/node/core/approval-voting/Cargo.toml @@ -10,7 +10,7 @@ futures-timer = "3.0.2" parity-scale-codec = { version = "2.3.1", default-features = false, features = ["bit-vec", "derive"] } tracing = "0.1.28" bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } -lru = "0.6" +lru = "0.7" merlin = "2.0" schnorrkel = "0.9.1" kvdb = "0.10.0" diff --git a/node/network/availability-distribution/Cargo.toml b/node/network/availability-distribution/Cargo.toml index 1f7d89c5ddb3..829e68aafc12 100644 --- a/node/network/availability-distribution/Cargo.toml +++ b/node/network/availability-distribution/Cargo.toml @@ -19,7 +19,7 @@ sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "maste thiserror = "1.0.26" rand = "0.8.3" derive_more = "0.99.11" -lru = "0.6.6" +lru = "0.7.0" [dev-dependencies] polkadot-subsystem-testhelpers = { package = "polkadot-node-subsystem-test-helpers", path = "../../subsystem-test-helpers" } diff --git a/node/network/availability-recovery/Cargo.toml b/node/network/availability-recovery/Cargo.toml index d23d29a8dd29..573058e2d98e 100644 --- a/node/network/availability-recovery/Cargo.toml +++ b/node/network/availability-recovery/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -lru = "0.6.6" +lru = "0.7.0" rand = "0.8.3" thiserror = "1.0.26" tracing = "0.1.28" diff --git a/node/network/dispute-distribution/Cargo.toml b/node/network/dispute-distribution/Cargo.toml index 11443b069a71..02ca246fbfbc 100644 --- a/node/network/dispute-distribution/Cargo.toml +++ b/node/network/dispute-distribution/Cargo.toml @@ -19,7 +19,7 @@ sc-network = { git = "https://github.com/paritytech/substrate", branch = "master sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } thiserror = "1.0.26" -lru = "0.6.6" +lru = "0.7.0" [dev-dependencies] async-trait = "0.1.51" diff --git a/node/overseer/Cargo.toml b/node/overseer/Cargo.toml index 5345fb031811..5fb2d4ab7515 100644 --- a/node/overseer/Cargo.toml +++ b/node/overseer/Cargo.toml @@ -17,7 +17,7 @@ polkadot-node-metrics = { path = "../metrics" } polkadot-primitives = { path = "../../primitives" } polkadot-overseer-gen = { path = "./overseer-gen" } tracing = "0.1.28" -lru = "0.6" +lru = "0.7" parity-util-mem = { version = ">= 0.10.1", default-features = false } [dev-dependencies] diff --git a/node/service/Cargo.toml b/node/service/Cargo.toml index 4b2162fa29ee..8ad093412bf4 100644 --- a/node/service/Cargo.toml +++ b/node/service/Cargo.toml @@ -68,7 +68,7 @@ thiserror = "1.0.26" kvdb = "0.10.0" kvdb-rocksdb = { version = "0.14.0", optional = true } async-trait = "0.1.51" -lru = "0.6" +lru = "0.7" # Polkadot polkadot-node-core-parachains-inherent = { path = "../core/parachains-inherent" } diff --git a/node/subsystem-util/Cargo.toml b/node/subsystem-util/Cargo.toml index 8fb43e7946f7..2d53208c3db0 100644 --- a/node/subsystem-util/Cargo.toml +++ b/node/subsystem-util/Cargo.toml @@ -15,7 +15,7 @@ rand = "0.8.3" thiserror = "1.0.26" tracing = "0.1.28" derive_more = "0.99.11" -lru = "0.6.6" +lru = "0.7.0" polkadot-node-subsystem = { package = "polkadot-node-subsystem", path = "../subsystem" } polkadot-node-jaeger = { path = "../jaeger" } From c764a21d97496c421e1f0d52c266e79fa4c741b0 Mon Sep 17 00:00:00 2001 From: Zeke Mostov <32168567+emostov@users.noreply.github.com> Date: Wed, 6 Oct 2021 02:38:29 -0700 Subject: [PATCH 06/40] Add benchmarking to rococo; Remove weights from runtime_parachains (#3914) * Add benchmarking to rococo; Remove weights from runtime_parachains * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt * Impl TestWeightInfo for Paras and Configuration * fmt * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_configuration.rs --header=./file_header.txt * Fix CI complaint: error: unused variable: `c` * polkadot-runtime-common & polkadot-test-runtime compile * xcm-simulator compile * change TestWeightInfo to max_block * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt * ordering * cargo run --quiet --release --features runtime-benchmarks -- benchmark --chain=rococo-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs --header=./file_header.txt * Replace max_block with Weight::MAX Co-authored-by: Parity Bot Co-authored-by: Keith Yeung --- runtime/common/src/integration_tests.rs | 4 +- runtime/common/src/paras_registrar.rs | 4 +- runtime/parachains/src/configuration.rs | 23 +++++++- runtime/parachains/src/mock.rs | 4 +- runtime/parachains/src/paras.rs | 20 ++++++- runtime/rococo/src/lib.rs | 8 ++- runtime/rococo/src/weights/mod.rs | 19 +++++++ .../runtime_parachains_configuration.rs} | 53 ++++++++++------- .../src/weights/runtime_parachains_paras.rs} | 57 +++++++++++-------- runtime/test-runtime/src/lib.rs | 4 +- xcm/xcm-builder/tests/mock/mod.rs | 2 +- xcm/xcm-simulator/example/src/relay_chain.rs | 2 +- 12 files changed, 140 insertions(+), 60 deletions(-) rename runtime/{parachains/src/configuration/weights.rs => rococo/src/weights/runtime_parachains_configuration.rs} (64%) rename runtime/{parachains/src/paras/weights.rs => rococo/src/weights/runtime_parachains_paras.rs} (67%) diff --git a/runtime/common/src/integration_tests.rs b/runtime/common/src/integration_tests.rs index f8f84b5f1fbc..87d15bb99233 100644 --- a/runtime/common/src/integration_tests.rs +++ b/runtime/common/src/integration_tests.rs @@ -159,7 +159,7 @@ impl pallet_balances::Config for Test { } impl configuration::Config for Test { - type WeightInfo = configuration::weights::WeightInfo; + type WeightInfo = configuration::TestWeightInfo; } impl shared::Config for Test {} @@ -167,7 +167,7 @@ impl shared::Config for Test {} impl paras::Config for Test { type Origin = Origin; type Event = Event; - type WeightInfo = paras::weights::WeightInfo; + type WeightInfo = paras::TestWeightInfo; } parameter_types! { diff --git a/runtime/common/src/paras_registrar.rs b/runtime/common/src/paras_registrar.rs index 6b6c8fd493ed..a714a45a5577 100644 --- a/runtime/common/src/paras_registrar.rs +++ b/runtime/common/src/paras_registrar.rs @@ -657,11 +657,11 @@ mod tests { impl paras::Config for Test { type Origin = Origin; type Event = Event; - type WeightInfo = paras::weights::WeightInfo; + type WeightInfo = paras::TestWeightInfo; } impl configuration::Config for Test { - type WeightInfo = configuration::weights::WeightInfo; + type WeightInfo = configuration::TestWeightInfo; } parameter_types! { diff --git a/runtime/parachains/src/configuration.rs b/runtime/parachains/src/configuration.rs index 69ff43615678..3a58ddfdc8f5 100644 --- a/runtime/parachains/src/configuration.rs +++ b/runtime/parachains/src/configuration.rs @@ -28,7 +28,6 @@ use sp_std::prelude::*; #[cfg(feature = "runtime-benchmarks")] mod benchmarking; -pub mod weights; pub use pallet::*; @@ -278,6 +277,28 @@ pub trait WeightInfo { fn set_hrmp_open_request_ttl() -> Weight; } +pub struct TestWeightInfo; +impl WeightInfo for TestWeightInfo { + fn set_config_with_block_number() -> Weight { + Weight::MAX + } + fn set_config_with_u32() -> Weight { + Weight::MAX + } + fn set_config_with_option_u32() -> Weight { + Weight::MAX + } + fn set_config_with_weight() -> Weight { + Weight::MAX + } + fn set_config_with_balance() -> Weight { + Weight::MAX + } + fn set_hrmp_open_request_ttl() -> Weight { + Weight::MAX + } +} + #[frame_support::pallet] pub mod pallet { use super::*; diff --git a/runtime/parachains/src/mock.rs b/runtime/parachains/src/mock.rs index 9e646dbbc1ca..a5b58cc54b00 100644 --- a/runtime/parachains/src/mock.rs +++ b/runtime/parachains/src/mock.rs @@ -116,7 +116,7 @@ impl crate::initializer::Config for Test { } impl crate::configuration::Config for Test { - type WeightInfo = crate::configuration::weights::WeightInfo; + type WeightInfo = crate::configuration::TestWeightInfo; } impl crate::shared::Config for Test {} @@ -124,7 +124,7 @@ impl crate::shared::Config for Test {} impl crate::paras::Config for Test { type Origin = Origin; type Event = Event; - type WeightInfo = crate::paras::weights::WeightInfo; + type WeightInfo = crate::paras::TestWeightInfo; } impl crate::dmp::Config for Test {} diff --git a/runtime/parachains/src/paras.rs b/runtime/parachains/src/paras.rs index 666012a3b4e3..4582e3e99c44 100644 --- a/runtime/parachains/src/paras.rs +++ b/runtime/parachains/src/paras.rs @@ -43,7 +43,6 @@ pub use crate::Origin as ParachainOrigin; #[cfg(feature = "runtime-benchmarks")] mod benchmarking; -pub mod weights; pub use pallet::*; @@ -279,6 +278,25 @@ pub trait WeightInfo { fn force_queue_action() -> Weight; } +pub struct TestWeightInfo; +impl WeightInfo for TestWeightInfo { + fn force_set_current_code(_c: u32) -> Weight { + Weight::MAX + } + fn force_set_current_head(_s: u32) -> Weight { + Weight::MAX + } + fn force_schedule_code_upgrade(_c: u32) -> Weight { + Weight::MAX + } + fn force_note_new_head(_s: u32) -> Weight { + Weight::MAX + } + fn force_queue_action() -> Weight { + Weight::MAX + } +} + #[frame_support::pallet] pub mod pallet { use super::*; diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index db00630ede9f..febdfb016028 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -578,7 +578,7 @@ impl pallet_authorship::Config for Runtime { impl parachains_origin::Config for Runtime {} impl parachains_configuration::Config for Runtime { - type WeightInfo = parachains_configuration::weights::WeightInfo; + type WeightInfo = weights::runtime_parachains_configuration::WeightInfo; } impl parachains_shared::Config for Runtime {} @@ -599,7 +599,7 @@ impl parachains_inclusion::Config for Runtime { impl parachains_paras::Config for Runtime { type Origin = Origin; type Event = Event; - type WeightInfo = parachains_paras::weights::WeightInfo; + type WeightInfo = weights::runtime_parachains_paras::WeightInfo; } parameter_types! { @@ -1599,7 +1599,9 @@ sp_api::impl_runtime_apis! { let mut list = Vec::::new(); + list_benchmark!(list, extra, runtime_parachains::configuration, Configuration); list_benchmark!(list, extra, runtime_parachains::disputes, ParasDisputes); + list_benchmark!(list, extra, runtime_parachains::paras, Paras); let storage_info = AllPalletsWithSystem::storage_info(); @@ -1629,7 +1631,9 @@ sp_api::impl_runtime_apis! { ]; let params = (&config, &whitelist); + add_benchmark!(params, batches, runtime_parachains::configuration, Configuration); add_benchmark!(params, batches, runtime_parachains::disputes, ParasDisputes); + add_benchmark!(params, batches, runtime_parachains::paras, Paras); if batches.is_empty() { return Err("Benchmark not found for this pallet.".into()) } Ok(batches) diff --git a/runtime/rococo/src/weights/mod.rs b/runtime/rococo/src/weights/mod.rs index bcd0ec248a5f..0c18d1ff9201 100644 --- a/runtime/rococo/src/weights/mod.rs +++ b/runtime/rococo/src/weights/mod.rs @@ -1 +1,20 @@ +// Copyright (C) 2020 Parity Technologies (UK) Ltd. +// SPDX-License-Identifier: Apache-2.0 + +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +//! A list of the different weight modules for our runtime. + +pub mod runtime_parachains_configuration; pub mod runtime_parachains_disputes; +pub mod runtime_parachains_paras; diff --git a/runtime/parachains/src/configuration/weights.rs b/runtime/rococo/src/weights/runtime_parachains_configuration.rs similarity index 64% rename from runtime/parachains/src/configuration/weights.rs rename to runtime/rococo/src/weights/runtime_parachains_configuration.rs index da70d6cb29d1..c783fb4131a3 100644 --- a/runtime/parachains/src/configuration/weights.rs +++ b/runtime/rococo/src/weights/runtime_parachains_configuration.rs @@ -1,28 +1,37 @@ +// Copyright 2017-2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . //! Autogenerated weights for `runtime_parachains::configuration` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-09-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128 +//! DATE: 2021-09-23, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 128 // Executed Command: -// ./target/release/polkadot +// target/release/polkadot // benchmark -// --chain -// westend-dev +// --chain=rococo-dev +// --steps=50 +// --repeat=20 +// --pallet=runtime_parachains::configuration +// --extrinsic=* // --execution=wasm // --wasm-execution=compiled -// --pallet -// runtime_parachains::configuration -// --steps -// 50 -// --repeat -// 20 -// --raw -// --extrinsic -// * -// --output -// runtime/parachains/src/configuration/weights.rs +// --heap-pages=4096 +// --output=./runtime/rococo/src/weights/runtime_parachains_configuration.rs +// --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -34,12 +43,12 @@ use sp_std::marker::PhantomData; /// Weight functions for `runtime_parachains::configuration`. pub struct WeightInfo(PhantomData); -impl super::WeightInfo for WeightInfo { +impl runtime_parachains::configuration::WeightInfo for WeightInfo { // Storage: ParasShared CurrentSessionIndex (r:1 w:0) // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_block_number() -> Weight { - (16_730_000 as Weight) + (13_098_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -47,7 +56,7 @@ impl super::WeightInfo for WeightInfo { // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_u32() -> Weight { - (16_592_000 as Weight) + (13_216_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -55,7 +64,7 @@ impl super::WeightInfo for WeightInfo { // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_option_u32() -> Weight { - (16_419_000 as Weight) + (13_080_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -63,7 +72,7 @@ impl super::WeightInfo for WeightInfo { // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_weight() -> Weight { - (16_732_000 as Weight) + (13_178_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -75,7 +84,7 @@ impl super::WeightInfo for WeightInfo { // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_balance() -> Weight { - (16_752_000 as Weight) + (13_080_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/runtime/parachains/src/paras/weights.rs b/runtime/rococo/src/weights/runtime_parachains_paras.rs similarity index 67% rename from runtime/parachains/src/paras/weights.rs rename to runtime/rococo/src/weights/runtime_parachains_paras.rs index d02acf4bc687..b3d93dd5c60d 100644 --- a/runtime/parachains/src/paras/weights.rs +++ b/runtime/rococo/src/weights/runtime_parachains_paras.rs @@ -1,28 +1,37 @@ +// Copyright 2017-2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . //! Autogenerated weights for `runtime_parachains::paras` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-09-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("westend-dev"), DB CACHE: 128 +//! DATE: 2021-09-24, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("rococo-dev"), DB CACHE: 128 // Executed Command: -// ./target/release/polkadot +// target/release/polkadot // benchmark -// --chain -// westend-dev +// --chain=rococo-dev +// --steps=50 +// --repeat=20 +// --pallet=runtime_parachains::paras +// --extrinsic=* // --execution=wasm // --wasm-execution=compiled -// --pallet -// runtime_parachains::paras -// --steps -// 50 -// --repeat -// 20 -// --raw -// --extrinsic -// * -// --output -// runtime/parachains/src/paras/weights.rs +// --heap-pages=4096 +// --output=./runtime/rococo/src/weights/runtime_parachains_paras.rs +// --header=./file_header.txt #![cfg_attr(rustfmt, rustfmt_skip)] @@ -34,7 +43,7 @@ use sp_std::marker::PhantomData; /// Weight functions for `runtime_parachains::paras`. pub struct WeightInfo(PhantomData); -impl super::WeightInfo for WeightInfo { +impl runtime_parachains::paras::WeightInfo for WeightInfo { // Storage: Paras CurrentCodeHash (r:1 w:1) // Storage: Paras CodeByHashRefs (r:1 w:1) // Storage: Paras PastCodeMeta (r:1 w:1) @@ -42,7 +51,7 @@ impl super::WeightInfo for WeightInfo { // Storage: Paras PastCodeHash (r:0 w:1) // Storage: Paras CodeByHash (r:0 w:1) fn force_set_current_code(c: u32, ) -> Weight { - (14_669_000 as Weight) + (0 as Weight) // Standard Error: 0 .saturating_add((3_000 as Weight).saturating_mul(c as Weight)) .saturating_add(T::DbWeight::get().reads(4 as Weight)) @@ -50,9 +59,9 @@ impl super::WeightInfo for WeightInfo { } // Storage: Paras Heads (r:0 w:1) fn force_set_current_head(s: u32, ) -> Weight { - (0 as Weight) + (18_653_000 as Weight) // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(s as Weight)) + .saturating_add((1_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } // Storage: Configuration ActiveConfig (r:1 w:0) @@ -65,7 +74,7 @@ impl super::WeightInfo for WeightInfo { // Storage: Paras FutureCodeHash (r:0 w:1) // Storage: Paras UpgradeRestrictionSignal (r:0 w:1) fn force_schedule_code_upgrade(c: u32, ) -> Weight { - (37_383_000 as Weight) + (0 as Weight) // Standard Error: 0 .saturating_add((3_000 as Weight).saturating_mul(c as Weight)) .saturating_add(T::DbWeight::get().reads(6 as Weight)) @@ -81,16 +90,16 @@ impl super::WeightInfo for WeightInfo { // Storage: Paras PastCodeHash (r:0 w:1) // Storage: Paras UpgradeGoAheadSignal (r:0 w:1) fn force_note_new_head(s: u32, ) -> Weight { - (60_855_000 as Weight) + (69_515_000 as Weight) // Standard Error: 0 - .saturating_add((2_000 as Weight).saturating_mul(s as Weight)) + .saturating_add((1_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(6 as Weight)) .saturating_add(T::DbWeight::get().writes(9 as Weight)) } // Storage: ParasShared CurrentSessionIndex (r:1 w:0) // Storage: Paras ActionsQueue (r:1 w:1) fn force_queue_action() -> Weight { - (32_014_000 as Weight) + (26_804_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index 560d286e1675..ccecc33f4a7a 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -461,7 +461,7 @@ impl pallet_sudo::Config for Runtime { } impl parachains_configuration::Config for Runtime { - type WeightInfo = parachains_configuration::weights::WeightInfo; + type WeightInfo = parachains_configuration::TestWeightInfo; } impl parachains_shared::Config for Runtime {} @@ -492,7 +492,7 @@ impl parachains_session_info::Config for Runtime {} impl parachains_paras::Config for Runtime { type Origin = Origin; type Event = Event; - type WeightInfo = parachains_paras::weights::WeightInfo; + type WeightInfo = parachains_paras::TestWeightInfo; } impl parachains_dmp::Config for Runtime {} diff --git a/xcm/xcm-builder/tests/mock/mod.rs b/xcm/xcm-builder/tests/mock/mod.rs index 1f0a5942045c..69ef0088a91d 100644 --- a/xcm/xcm-builder/tests/mock/mod.rs +++ b/xcm/xcm-builder/tests/mock/mod.rs @@ -108,7 +108,7 @@ impl pallet_balances::Config for Runtime { impl shared::Config for Runtime {} impl configuration::Config for Runtime { - type WeightInfo = configuration::weights::WeightInfo; + type WeightInfo = configuration::TestWeightInfo; } // aims to closely emulate the Kusama XcmConfig diff --git a/xcm/xcm-simulator/example/src/relay_chain.rs b/xcm/xcm-simulator/example/src/relay_chain.rs index cc50aec90d18..8dcb5f1f310b 100644 --- a/xcm/xcm-simulator/example/src/relay_chain.rs +++ b/xcm/xcm-simulator/example/src/relay_chain.rs @@ -89,7 +89,7 @@ impl pallet_balances::Config for Runtime { impl shared::Config for Runtime {} impl configuration::Config for Runtime { - type WeightInfo = configuration::weights::WeightInfo; + type WeightInfo = configuration::TestWeightInfo; } parameter_types! { From 1f850b0c8e59925e7a2b05ec67d3b5ead853a127 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Oct 2021 10:04:00 +0000 Subject: [PATCH 07/40] Bump syn from 1.0.78 to 1.0.80 (#4025) Bumps [syn](https://github.com/dtolnay/syn) from 1.0.78 to 1.0.80. - [Release notes](https://github.com/dtolnay/syn/releases) - [Commits](https://github.com/dtolnay/syn/compare/1.0.78...1.0.80) --- updated-dependencies: - dependency-name: syn dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- node/overseer/overseer-gen/proc-macro/Cargo.toml | 2 +- xcm/procedural/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 96cb2835a4ee..3f3539f9dc95 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10417,9 +10417,9 @@ checksum = "6bdef32e8150c2a081110b42772ffe7d7c9032b606bc226c8260fd97e0976601" [[package]] name = "syn" -version = "1.0.78" +version = "1.0.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4eac2e6c19f5c3abc0c229bea31ff0b9b091c7b14990e8924b92902a303a0c0" +checksum = "d010a1623fbd906d51d650a9916aaefc05ffa0e4053ff7fe601167f3e715d194" dependencies = [ "proc-macro2", "quote", diff --git a/node/overseer/overseer-gen/proc-macro/Cargo.toml b/node/overseer/overseer-gen/proc-macro/Cargo.toml index e51f63010f7d..5ea6b724d173 100644 --- a/node/overseer/overseer-gen/proc-macro/Cargo.toml +++ b/node/overseer/overseer-gen/proc-macro/Cargo.toml @@ -12,7 +12,7 @@ targets = ["x86_64-unknown-linux-gnu"] proc-macro = true [dependencies] -syn = { version = "1.0.78", features = ["full", "extra-traits"] } +syn = { version = "1.0.80", features = ["full", "extra-traits"] } quote = "1.0.10" proc-macro2 = "1.0.26" proc-macro-crate = "1.1.0" diff --git a/xcm/procedural/Cargo.toml b/xcm/procedural/Cargo.toml index 4eb78cdf23da..3611431bf691 100644 --- a/xcm/procedural/Cargo.toml +++ b/xcm/procedural/Cargo.toml @@ -10,4 +10,4 @@ proc-macro = true [dependencies] proc-macro2 = "1.0.28" quote = "1.0.10" -syn = "1.0.78" +syn = "1.0.80" From 6da1cf6233728a8142e4b9cebdcf29cd67eb8352 Mon Sep 17 00:00:00 2001 From: Falco Hirschenberger Date: Wed, 6 Oct 2021 12:15:19 +0200 Subject: [PATCH 08/40] Add call-decoding weight to benchmarks (#3866) * Add add call-decoding weight to benchmarks fixes #3864 * Change order as suggested by @thiolliere * More reordering as @KiChjang suggested * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=kusama-dev --steps=50 --repeat=20 --pallet=runtime_common::claims --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/kusama/src/weights/runtime_common_claims.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_common::claims --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_common_claims.rs Co-authored-by: Parity Bot --- runtime/common/src/claims.rs | 27 +++++++--- .../src/weights/runtime_common_claims.rs | 50 +++++++++++++++---- .../src/weights/runtime_common_claims.rs | 50 +++++++++++++++---- 3 files changed, 103 insertions(+), 24 deletions(-) diff --git a/runtime/common/src/claims.rs b/runtime/common/src/claims.rs index cd62e204854b..66a9e12d71d7 100644 --- a/runtime/common/src/claims.rs +++ b/runtime/common/src/claims.rs @@ -1388,6 +1388,7 @@ mod benchmarking { use super::*; use crate::claims::Call; use frame_benchmarking::{account, benchmarks}; + use frame_support::dispatch::UnfilteredDispatchable; use frame_system::RawOrigin; use secp_utils::*; use sp_runtime::{traits::ValidateUnsigned, DispatchResult}; @@ -1443,10 +1444,15 @@ mod benchmarking { super::Pallet::::mint_claim(RawOrigin::Root.into(), eth_address, VALUE.into(), vesting, None)?; assert_eq!(Claims::::get(eth_address), Some(VALUE.into())); let source = sp_runtime::transaction_validity::TransactionSource::External; - let call = Call::::claim { dest: account.clone(), ethereum_signature: signature.clone() }; + let call_enc = Call::::claim { + dest: account.clone(), + ethereum_signature: signature.clone() + }.encode(); }: { + let call = as Decode>::decode(&mut &*call_enc) + .expect("call is encoded above, encoding must be correct"); super::Pallet::::validate_unsigned(source, &call).map_err(|e| -> &'static str { e.into() })?; - super::Pallet::::claim(RawOrigin::None.into(), account, signature)?; + call.dispatch_bypass_filter(RawOrigin::None.into())?; } verify { assert_eq!(Claims::::get(eth_address), None); @@ -1488,11 +1494,17 @@ mod benchmarking { let signature = sig::(&secret_key, &account.encode(), statement.to_text()); super::Pallet::::mint_claim(RawOrigin::Root.into(), eth_address, VALUE.into(), vesting, Some(statement))?; assert_eq!(Claims::::get(eth_address), Some(VALUE.into())); - let call = Call::::claim_attest { dest: account.clone(), ethereum_signature: signature.clone(), statement: StatementKind::Regular.to_text().to_vec() }; + let call_enc = Call::::claim_attest { + dest: account.clone(), + ethereum_signature: signature.clone(), + statement: StatementKind::Regular.to_text().to_vec() + }.encode(); let source = sp_runtime::transaction_validity::TransactionSource::External; }: { + let call = as Decode>::decode(&mut &*call_enc) + .expect("call is encoded above, encoding must be correct"); super::Pallet::::validate_unsigned(source, &call).map_err(|e| -> &'static str { e.into() })?; - super::Pallet::::claim_attest(RawOrigin::None.into(), account, signature, statement.to_text().to_vec())?; + call.dispatch_bypass_filter(RawOrigin::None.into())?; } verify { assert_eq!(Claims::::get(eth_address), None); @@ -1518,7 +1530,7 @@ mod benchmarking { Preclaims::::insert(&account, eth_address); assert_eq!(Claims::::get(eth_address), Some(VALUE.into())); - let call = super::Call::attest { statement: StatementKind::Regular.to_text().to_vec() }; + let call = super::Call::::attest { statement: StatementKind::Regular.to_text().to_vec() }; // We have to copy the validate statement here because of trait issues... :( let validate = |who: &T::AccountId, call: &super::Call| -> DispatchResult { if let Call::attest{ statement: attested_statement } = call { @@ -1529,9 +1541,12 @@ mod benchmarking { } Ok(()) }; + let call_enc = call.encode(); }: { + let call = as Decode>::decode(&mut &*call_enc) + .expect("call is encoded above, encoding must be correct"); validate(&account, &call)?; - super::Pallet::::attest(RawOrigin::Signed(account).into(), statement.to_text().to_vec())?; + call.dispatch_bypass_filter(RawOrigin::Signed(account).into())?; } verify { assert_eq!(Claims::::get(eth_address), None); diff --git a/runtime/kusama/src/weights/runtime_common_claims.rs b/runtime/kusama/src/weights/runtime_common_claims.rs index 9b2ea68299d0..26e37dcf27d3 100644 --- a/runtime/kusama/src/weights/runtime_common_claims.rs +++ b/runtime/kusama/src/weights/runtime_common_claims.rs @@ -1,4 +1,4 @@ -// Copyright 2017-2020 Parity Technologies (UK) Ltd. +// Copyright 2017-2021 Parity Technologies (UK) Ltd. // This file is part of Polkadot. // Polkadot is free software: you can redistribute it and/or modify @@ -15,8 +15,8 @@ // along with Polkadot. If not, see . //! Autogenerated weights for `runtime_common::claims` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-10-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 // Executed Command: @@ -31,8 +31,10 @@ // --wasm-execution=compiled // --heap-pages=4096 // --header=./file_header.txt -// --output=./runtime/kusama/src/weights/ +// --output=./runtime/kusama/src/weights/runtime_common_claims.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -42,28 +44,58 @@ use sp_std::marker::PhantomData; /// Weight functions for `runtime_common::claims`. pub struct WeightInfo(PhantomData); impl runtime_common::claims::WeightInfo for WeightInfo { + // Storage: Claims Claims (r:1 w:1) + // Storage: Claims Signing (r:1 w:1) + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:0) + // Storage: Balances Locks (r:1 w:1) fn claim() -> Weight { - (438_457_000 as Weight) + (442_992_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(6 as Weight)) } + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:0 w:1) + // Storage: Claims Claims (r:0 w:1) + // Storage: Claims Signing (r:0 w:1) fn mint_claim() -> Weight { - (13_035_000 as Weight) + (12_098_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } + // Storage: Claims Claims (r:1 w:1) + // Storage: Claims Signing (r:1 w:1) + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:0) + // Storage: Balances Locks (r:1 w:1) fn claim_attest() -> Weight { - (439_894_000 as Weight) + (442_328_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(6 as Weight)) } + // Storage: Claims Preclaims (r:1 w:1) + // Storage: Claims Signing (r:1 w:1) + // Storage: Claims Claims (r:1 w:1) + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:0) + // Storage: Balances Locks (r:1 w:1) fn attest() -> Weight { - (132_760_000 as Weight) + (126_506_000 as Weight) .saturating_add(T::DbWeight::get().reads(8 as Weight)) .saturating_add(T::DbWeight::get().writes(7 as Weight)) } + // Storage: Claims Claims (r:1 w:2) + // Storage: Claims Vesting (r:1 w:2) + // Storage: Claims Signing (r:1 w:2) + // Storage: Claims Preclaims (r:1 w:1) fn move_claim() -> Weight { - (28_459_000 as Weight) + (26_618_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(7 as Weight)) } diff --git a/runtime/polkadot/src/weights/runtime_common_claims.rs b/runtime/polkadot/src/weights/runtime_common_claims.rs index 1086ebdee551..7f352a3661cb 100644 --- a/runtime/polkadot/src/weights/runtime_common_claims.rs +++ b/runtime/polkadot/src/weights/runtime_common_claims.rs @@ -1,4 +1,4 @@ -// Copyright 2017-2020 Parity Technologies (UK) Ltd. +// Copyright 2017-2021 Parity Technologies (UK) Ltd. // This file is part of Polkadot. // Polkadot is free software: you can redistribute it and/or modify @@ -15,8 +15,8 @@ // along with Polkadot. If not, see . //! Autogenerated weights for `runtime_common::claims` //! -//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 3.0.0 -//! DATE: 2021-07-01, STEPS: `[50, ]`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev +//! DATE: 2021-10-06, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` //! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 // Executed Command: @@ -31,8 +31,10 @@ // --wasm-execution=compiled // --heap-pages=4096 // --header=./file_header.txt -// --output=./runtime/polkadot/src/weights/ +// --output=./runtime/polkadot/src/weights/runtime_common_claims.rs + +#![cfg_attr(rustfmt, rustfmt_skip)] #![allow(unused_parens)] #![allow(unused_imports)] @@ -42,28 +44,58 @@ use sp_std::marker::PhantomData; /// Weight functions for `runtime_common::claims`. pub struct WeightInfo(PhantomData); impl runtime_common::claims::WeightInfo for WeightInfo { + // Storage: Claims Claims (r:1 w:1) + // Storage: Claims Signing (r:1 w:1) + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:0) + // Storage: Balances Locks (r:1 w:1) fn claim() -> Weight { - (447_705_000 as Weight) + (440_159_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(6 as Weight)) } + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:0 w:1) + // Storage: Claims Claims (r:0 w:1) + // Storage: Claims Signing (r:0 w:1) fn mint_claim() -> Weight { - (11_995_000 as Weight) + (11_988_000 as Weight) .saturating_add(T::DbWeight::get().reads(1 as Weight)) .saturating_add(T::DbWeight::get().writes(4 as Weight)) } + // Storage: Claims Claims (r:1 w:1) + // Storage: Claims Signing (r:1 w:1) + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:0) + // Storage: Balances Locks (r:1 w:1) fn claim_attest() -> Weight { - (439_703_000 as Weight) + (443_037_000 as Weight) .saturating_add(T::DbWeight::get().reads(7 as Weight)) .saturating_add(T::DbWeight::get().writes(6 as Weight)) } + // Storage: Claims Preclaims (r:1 w:1) + // Storage: Claims Signing (r:1 w:1) + // Storage: Claims Claims (r:1 w:1) + // Storage: Claims Total (r:1 w:1) + // Storage: Claims Vesting (r:1 w:1) + // Storage: Vesting Vesting (r:1 w:1) + // Storage: System Account (r:1 w:0) + // Storage: Balances Locks (r:1 w:1) fn attest() -> Weight { - (128_588_000 as Weight) + (125_350_000 as Weight) .saturating_add(T::DbWeight::get().reads(8 as Weight)) .saturating_add(T::DbWeight::get().writes(7 as Weight)) } + // Storage: Claims Claims (r:1 w:2) + // Storage: Claims Vesting (r:1 w:2) + // Storage: Claims Signing (r:1 w:2) + // Storage: Claims Preclaims (r:1 w:1) fn move_claim() -> Weight { - (26_297_000 as Weight) + (26_261_000 as Weight) .saturating_add(T::DbWeight::get().reads(4 as Weight)) .saturating_add(T::DbWeight::get().writes(7 as Weight)) } From a14bdf134379f0c1f7f32730e503db10621cde0d Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Wed, 6 Oct 2021 17:51:47 +0200 Subject: [PATCH 09/40] Re-configure offchain repeat frequency for elections (#3966) --- runtime/kusama/src/lib.rs | 4 ++-- runtime/polkadot/src/lib.rs | 4 ++-- runtime/westend/src/lib.rs | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index bbf0aae53123..e496f3166671 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -361,8 +361,8 @@ parameter_types! { pub SignedRewardBase: Balance = UNITS / 10; pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); - // miner configs - pub OffchainRepeat: BlockNumber = 5; + // 1 hour session, 15 minutes unsigned phase, 8 offchain executions. + pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 8; /// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a /// very large value. Once the `BagsList` is in full motion, staking might open its door to many diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index e57f4564e7a2..6f7906451349 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -385,8 +385,8 @@ parameter_types! { pub SignedRewardBase: Balance = 1 * UNITS; pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); - // miner configs - pub OffchainRepeat: BlockNumber = 5; + // 4 hour session, 1 hour unsigned phase, 32 offchain executions. + pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 32; /// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a /// very large value. Once the `BagsList` is in full motion, staking might open its door to many diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 17138875a7c2..c6187cf82c96 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -347,8 +347,8 @@ parameter_types! { pub SignedRewardBase: Balance = 1 * UNITS; pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); - // miner configs - pub OffchainRepeat: BlockNumber = 5; + // 1 hour session, 15 minutes unsigned phase, 4 offchain executions. + pub OffchainRepeat: BlockNumber = UnsignedPhase::get() / 4; /// Whilst `UseNominatorsAndUpdateBagsList` or `UseNominatorsMap` is in use, this can still be a /// very large value. Once the `BagsList` is in full motion, staking might open its door to many From dcb81807b42afc369818905db96e1431f45e541c Mon Sep 17 00:00:00 2001 From: Robert Klotzner Date: Wed, 6 Oct 2021 19:00:51 +0200 Subject: [PATCH 10/40] Silence some alerts due to overly verbose warnings. (#3946) * statement-distribution: Only warn on relevant stuff. * Silence warnings in availability-distribution. * Demote more warnings. * More consistency. * info -> debug --- .../availability-distribution/src/error.rs | 13 +++++++- .../src/requester/fetch_task/mod.rs | 4 +-- .../src/validator_side/mod.rs | 4 +-- .../statement-distribution/src/error.rs | 12 +++++-- .../network/statement-distribution/src/lib.rs | 32 ++++++------------- 5 files changed, 36 insertions(+), 29 deletions(-) diff --git a/node/network/availability-distribution/src/error.rs b/node/network/availability-distribution/src/error.rs index 881e00ac28a0..d9db0ec42fae 100644 --- a/node/network/availability-distribution/src/error.rs +++ b/node/network/availability-distribution/src/error.rs @@ -117,7 +117,18 @@ pub fn log_error(result: Result<()>, ctx: &'static str) -> std::result::Result<( match result { Err(Error::Fatal(f)) => Err(f), Err(Error::NonFatal(error)) => { - tracing::warn!(target: LOG_TARGET, error = ?error, ctx); + match error { + NonFatal::UnexpectedPoV | + NonFatal::InvalidValidatorIndex | + NonFatal::NoSuchCachedSession | + NonFatal::QueryAvailableDataResponseChannel(_) | + NonFatal::QueryChunkResponseChannel(_) => + tracing::warn!(target: LOG_TARGET, error = %error, ctx), + NonFatal::FetchPoV(_) | + NonFatal::SendResponse | + NonFatal::NoSuchPoV | + NonFatal::Runtime(_) => tracing::debug!(target: LOG_TARGET, error = ?error, ctx), + } Ok(()) }, Ok(()) => Ok(()), diff --git a/node/network/availability-distribution/src/requester/fetch_task/mod.rs b/node/network/availability-distribution/src/requester/fetch_task/mod.rs index f1615d1f33ae..0c5dd6e684c1 100644 --- a/node/network/availability-distribution/src/requester/fetch_task/mod.rs +++ b/node/network/availability-distribution/src/requester/fetch_task/mod.rs @@ -344,7 +344,7 @@ impl RunningTask { Err(TaskError::PeerError) }, Err(RequestError::NetworkError(err)) => { - tracing::warn!( + tracing::debug!( target: LOG_TARGET, origin= ?validator, err= ?err, @@ -353,7 +353,7 @@ impl RunningTask { Err(TaskError::PeerError) }, Err(RequestError::Canceled(oneshot::Canceled)) => { - tracing::warn!(target: LOG_TARGET, + tracing::debug!(target: LOG_TARGET, origin= ?validator, "Erasure chunk request got canceled"); Err(TaskError::PeerError) diff --git a/node/network/collator-protocol/src/validator_side/mod.rs b/node/network/collator-protocol/src/validator_side/mod.rs index 3f77e499de08..d9e1de062552 100644 --- a/node/network/collator-protocol/src/validator_side/mod.rs +++ b/node/network/collator-protocol/src/validator_side/mod.rs @@ -1362,7 +1362,7 @@ where .await; }, Err(RequestError::NetworkError(err)) => { - tracing::warn!( + tracing::debug!( target: LOG_TARGET, hash = ?pending_collation.relay_parent, para_id = ?pending_collation.para_id, @@ -1377,7 +1377,7 @@ where modify_reputation(ctx, pending_collation.peer_id.clone(), COST_NETWORK_ERROR).await; }, Err(RequestError::Canceled(_)) => { - tracing::warn!( + tracing::debug!( target: LOG_TARGET, hash = ?pending_collation.relay_parent, para_id = ?pending_collation.para_id, diff --git a/node/network/statement-distribution/src/error.rs b/node/network/statement-distribution/src/error.rs index 819440e6f29c..ac997544b5c8 100644 --- a/node/network/statement-distribution/src/error.rs +++ b/node/network/statement-distribution/src/error.rs @@ -87,8 +87,12 @@ pub enum NonFatal { #[error("Relay parent could not be found in active heads")] NoSuchHead(Hash), + /// Received message from actually disconnected peer. + #[error("Message from not connected peer")] + NoSuchPeer(PeerId), + /// Peer requested statement data for candidate that was never announced to it. - #[error("Peer requested data for candidate it never received a notification for")] + #[error("Peer requested data for candidate it never received a notification for (malicious?)")] RequestedUnannouncedCandidate(PeerId, CandidateHash), /// A large statement status was requested, which could not be found. @@ -112,7 +116,11 @@ pub fn log_error(result: Result<()>, ctx: &'static str) -> std::result::Result<( match result { Err(Error::Fatal(f)) => Err(f), Err(Error::NonFatal(error)) => { - tracing::warn!(target: LOG_TARGET, error = ?error, ctx); + match error { + NonFatal::RequestedUnannouncedCandidate(_, _) => + tracing::warn!(target: LOG_TARGET, error = %error, ctx), + _ => tracing::debug!(target: LOG_TARGET, error = %error, ctx), + } Ok(()) }, Ok(()) => Ok(()), diff --git a/node/network/statement-distribution/src/lib.rs b/node/network/statement-distribution/src/lib.rs index e2c08c8216bc..a810a663a87d 100644 --- a/node/network/statement-distribution/src/lib.rs +++ b/node/network/statement-distribution/src/lib.rs @@ -1625,7 +1625,7 @@ impl StatementDistribution { &requesting_peer, &relay_parent, &candidate_hash, - ) { + )? { return Err(NonFatal::RequestedUnannouncedCandidate( requesting_peer, candidate_hash, @@ -1896,27 +1896,15 @@ fn requesting_peer_knows_about_candidate( requesting_peer: &PeerId, relay_parent: &Hash, candidate_hash: &CandidateHash, -) -> bool { - requesting_peer_knows_about_candidate_inner( - peers, - requesting_peer, - relay_parent, - candidate_hash, - ) - .is_some() -} - -/// Helper function for `requesting_peer_knows_about_statement`. -fn requesting_peer_knows_about_candidate_inner( - peers: &HashMap, - requesting_peer: &PeerId, - relay_parent: &Hash, - candidate_hash: &CandidateHash, -) -> Option<()> { - let peer_data = peers.get(requesting_peer)?; - let knowledge = peer_data.view_knowledge.get(relay_parent)?; - knowledge.sent_candidates.get(&candidate_hash)?; - Some(()) +) -> NonFatalResult { + let peer_data = peers + .get(requesting_peer) + .ok_or_else(|| NonFatal::NoSuchPeer(*requesting_peer))?; + let knowledge = peer_data + .view_knowledge + .get(relay_parent) + .ok_or_else(|| NonFatal::NoSuchHead(*relay_parent))?; + Ok(knowledge.sent_candidates.get(&candidate_hash).is_some()) } #[derive(Clone)] From 0ef8806901e62422c9496537fe4755e53f3116d8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Silva?= <123550+andresilva@users.noreply.github.com> Date: Wed, 6 Oct 2021 18:06:53 +0100 Subject: [PATCH 11/40] Companion for substrate#9448 (#3527) * Companion for substrate#9448 * fix on_disabled * use temporary beefy branch * revert beefy updates * update Substrate Co-authored-by: Andronik Ordian Co-authored-by: parity-processbot <> --- Cargo.lock | 352 +++++++++--------- bridges/bin/millau/runtime/src/lib.rs | 1 - bridges/bin/rialto/runtime/src/lib.rs | 1 - .../modules/shift-session-manager/src/lib.rs | 3 +- runtime/common/src/lib.rs | 4 +- runtime/kusama/src/lib.rs | 7 +- runtime/parachains/src/initializer.rs | 2 +- runtime/parachains/src/session_info.rs | 2 +- runtime/polkadot/src/lib.rs | 7 +- runtime/rococo/src/lib.rs | 7 +- runtime/test-runtime/src/lib.rs | 7 +- runtime/westend/src/lib.rs | 7 +- 12 files changed, 190 insertions(+), 210 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3f3539f9dc95..dc2f7837931f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -461,7 +461,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "beefy-primitives", "fnv", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -509,12 +509,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -1918,7 +1918,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", ] @@ -1936,7 +1936,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -1956,7 +1956,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "Inflector", "chrono", @@ -1982,7 +1982,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -1996,7 +1996,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -2024,7 +2024,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "bitflags", "frame-metadata", @@ -2051,7 +2051,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2063,7 +2063,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2075,7 +2075,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro2", "quote", @@ -2085,7 +2085,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2108,7 +2108,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -2119,7 +2119,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "log", @@ -2136,7 +2136,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -2151,7 +2151,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "sp-api", @@ -2160,7 +2160,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "sp-api", @@ -2373,7 +2373,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "chrono", "frame-election-provider-support", @@ -2427,6 +2427,7 @@ dependencies = [ "cfg-if 0.1.10", "libc", "wasi 0.9.0+wasi-snapshot-preview1", + "wasm-bindgen", ] [[package]] @@ -4543,12 +4544,9 @@ dependencies = [ [[package]] name = "once_cell" -version = "1.6.0" +version = "1.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4ad167a2f54e832b82dbe003a046280dceffe5227b5f79e08e363a29638cfddd" -dependencies = [ - "parking_lot 0.11.1", -] +checksum = "692fcb63b64b1758029e0a96ee63e049ce8c5948587f2f7208df04625e5f6b56" [[package]] name = "opaque-debug" @@ -4604,7 +4602,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4618,7 +4616,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -4634,7 +4632,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -4649,7 +4647,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4673,7 +4671,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4693,7 +4691,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4708,7 +4706,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "beefy-primitives", "frame-support", @@ -4724,7 +4722,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4749,7 +4747,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4834,7 +4832,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4851,7 +4849,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4867,7 +4865,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4891,7 +4889,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4909,7 +4907,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4924,7 +4922,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4947,7 +4945,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4963,7 +4961,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -4983,7 +4981,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5000,7 +4998,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5017,7 +5015,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5035,7 +5033,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5051,7 +5049,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5068,7 +5066,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5083,7 +5081,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5097,7 +5095,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5114,7 +5112,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5137,7 +5135,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5152,7 +5150,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5166,7 +5164,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5182,7 +5180,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5203,7 +5201,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5219,7 +5217,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5233,7 +5231,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5256,7 +5254,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5267,7 +5265,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "log", "sp-arithmetic", @@ -5276,7 +5274,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5290,7 +5288,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5308,7 +5306,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5327,7 +5325,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-support", "frame-system", @@ -5344,7 +5342,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5361,7 +5359,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5372,7 +5370,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5389,7 +5387,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -5405,7 +5403,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-benchmarking", "frame-support", @@ -7802,7 +7800,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8065,7 +8063,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "log", "sp-core", @@ -8076,7 +8074,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "derive_more", @@ -8103,7 +8101,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8126,7 +8124,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8142,7 +8140,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8158,7 +8156,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8169,7 +8167,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "chrono", "fdlimit", @@ -8207,7 +8205,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "fnv", "futures 0.3.17", @@ -8235,7 +8233,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "hash-db", "kvdb", @@ -8260,7 +8258,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "futures 0.3.17", @@ -8284,7 +8282,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "derive_more", @@ -8327,7 +8325,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "derive_more", "futures 0.3.17", @@ -8351,7 +8349,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8364,7 +8362,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "assert_matches", "async-trait", @@ -8398,7 +8396,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "futures 0.3.17", @@ -8424,7 +8422,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "sc-client-api", "sp-authorship", @@ -8435,7 +8433,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8461,7 +8459,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "derive_more", "environmental", @@ -8479,7 +8477,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "log", "parity-scale-codec", @@ -8495,7 +8493,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8513,7 +8511,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "derive_more", @@ -8550,7 +8548,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "derive_more", "finality-grandpa", @@ -8574,7 +8572,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8591,7 +8589,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "derive_more", @@ -8606,7 +8604,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "hash-db", "parity-scale-codec", @@ -8624,7 +8622,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-std", "async-trait", @@ -8675,7 +8673,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8691,7 +8689,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "bytes 1.0.1", "fnv", @@ -8718,7 +8716,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "libp2p", @@ -8731,7 +8729,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8740,7 +8738,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "hash-db", @@ -8771,7 +8769,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8796,7 +8794,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8813,7 +8811,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "directories", @@ -8878,7 +8876,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "log", "parity-scale-codec", @@ -8892,7 +8890,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8914,7 +8912,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "chrono", "futures 0.3.17", @@ -8932,10 +8930,11 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "ansi_term 0.12.1", "atty", + "chrono", "lazy_static", "log", "once_cell", @@ -8961,7 +8960,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8972,7 +8971,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "intervalier", @@ -8999,7 +8998,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "derive_more", "futures 0.3.17", @@ -9013,7 +9012,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9119,9 +9118,9 @@ dependencies = [ [[package]] name = "secrecy" -version = "0.7.0" +version = "0.8.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0673d6a6449f5e7d12a1caf424fd9363e2af3a4953023ed455e3c4beef4597c0" +checksum = "9bd1c54ea06cfd2f6b63219704de0b9b4f72dcc2b8fdef820be6cd799780e91e" dependencies = [ "zeroize", ] @@ -9465,7 +9464,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "hash-db", "log", @@ -9482,7 +9481,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9494,7 +9493,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9507,7 +9506,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "integer-sqrt", "num-traits", @@ -9522,7 +9521,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9535,7 +9534,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "parity-scale-codec", @@ -9547,7 +9546,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "sp-api", @@ -9559,7 +9558,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "log", @@ -9577,7 +9576,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "futures 0.3.17", @@ -9596,7 +9595,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "merlin", @@ -9619,7 +9618,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9630,7 +9629,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9642,7 +9641,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "base58", "blake2-rfc", @@ -9687,7 +9686,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9696,7 +9695,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro2", "quote", @@ -9706,7 +9705,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "environmental", "parity-scale-codec", @@ -9717,7 +9716,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "finality-grandpa", "log", @@ -9735,7 +9734,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9749,7 +9748,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "hash-db", @@ -9773,7 +9772,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "lazy_static", "sp-core", @@ -9784,7 +9783,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "derive_more", @@ -9801,7 +9800,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "zstd", ] @@ -9809,7 +9808,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9824,7 +9823,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9835,7 +9834,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "sp-api", "sp-core", @@ -9845,7 +9844,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "backtrace", ] @@ -9853,7 +9852,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "rustc-hash", "serde", @@ -9863,7 +9862,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "either", "hash256-std-hasher", @@ -9885,7 +9884,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9902,7 +9901,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9914,7 +9913,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "serde", "serde_json", @@ -9923,7 +9922,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9937,7 +9936,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "scale-info", @@ -9948,7 +9947,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "hash-db", "log", @@ -9971,12 +9970,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9989,7 +9988,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "log", "sp-core", @@ -10002,7 +10001,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10018,7 +10017,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "erased-serde", "log", @@ -10036,7 +10035,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "sp-api", "sp-runtime", @@ -10045,7 +10044,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "log", @@ -10061,7 +10060,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "hash-db", "memory-db", @@ -10076,7 +10075,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10092,7 +10091,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10103,7 +10102,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10299,7 +10298,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "platforms", ] @@ -10307,7 +10306,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10329,7 +10328,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-std", "derive_more", @@ -10343,7 +10342,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "async-trait", "futures 0.3.17", @@ -10370,7 +10369,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10380,7 +10379,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10391,7 +10390,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10544,7 +10543,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "frame-system", "futures 0.3.17", @@ -10690,9 +10689,9 @@ dependencies = [ [[package]] name = "tiny-bip39" -version = "0.8.0" +version = "0.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d9e44c4759bae7f1032e286a7ef990bd9ed23fe831b7eeba0beb97484c2e59b8" +checksum = "ffc59cb9dfc85bb312c3a78fd6aa8a8582e310b0fa885d5bb877f6dcc601839d" dependencies = [ "anyhow", "hmac 0.8.1", @@ -10703,6 +10702,7 @@ dependencies = [ "sha2 0.9.2", "thiserror", "unicode-normalization", + "wasm-bindgen", "zeroize", ] @@ -10984,7 +10984,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#125092f355c11166c57deeef0e1841301a351889" +source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" dependencies = [ "jsonrpsee-ws-client", "log", @@ -11021,12 +11021,12 @@ dependencies = [ [[package]] name = "twox-hash" -version = "1.6.0" +version = "1.6.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04f8ab788026715fa63b31960869617cba39117e520eb415b0139543e325ab59" +checksum = "1f559b464de2e2bdabcac6a210d12e9b5a5973c251e102c44c585c71d51bd78e" dependencies = [ - "cfg-if 0.1.10", - "rand 0.7.3", + "cfg-if 1.0.0", + "rand 0.8.4", "static_assertions", ] @@ -11927,9 +11927,9 @@ dependencies = [ [[package]] name = "zeroize" -version = "1.4.1" +version = "1.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "377db0846015f7ae377174787dd452e1c5f5a9050bc6f954911d01f116daa0cd" +checksum = "bf68b08513768deaa790264a7fac27a58cbf2705cfcdc9448362229217d7e970" dependencies = [ "zeroize_derive", ] diff --git a/bridges/bin/millau/runtime/src/lib.rs b/bridges/bin/millau/runtime/src/lib.rs index 6e561e8719e4..65c54c3046c1 100644 --- a/bridges/bin/millau/runtime/src/lib.rs +++ b/bridges/bin/millau/runtime/src/lib.rs @@ -307,7 +307,6 @@ impl pallet_session::Config for Runtime { type SessionManager = pallet_shift_session_manager::Pallet; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = (); // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); } diff --git a/bridges/bin/rialto/runtime/src/lib.rs b/bridges/bin/rialto/runtime/src/lib.rs index e0a1e176c3ae..3a8b8651e346 100644 --- a/bridges/bin/rialto/runtime/src/lib.rs +++ b/bridges/bin/rialto/runtime/src/lib.rs @@ -423,7 +423,6 @@ impl pallet_session::Config for Runtime { type SessionManager = pallet_shift_session_manager::Pallet; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = (); // TODO: update me (https://github.com/paritytech/parity-bridges-common/issues/78) type WeightInfo = (); } diff --git a/bridges/modules/shift-session-manager/src/lib.rs b/bridges/modules/shift-session-manager/src/lib.rs index 7cf05e99f3a0..3635e6223d7f 100644 --- a/bridges/modules/shift-session-manager/src/lib.rs +++ b/bridges/modules/shift-session-manager/src/lib.rs @@ -162,7 +162,6 @@ mod tests { type SessionManager = (); type SessionHandler = TestSessionHandler; type Keys = UintAuthorityId; - type DisabledValidatorsThreshold = (); type WeightInfo = (); } @@ -176,7 +175,7 @@ mod tests { fn on_new_session(_: bool, _: &[(AccountId, Ks)], _: &[(AccountId, Ks)]) {} - fn on_disabled(_: usize) {} + fn on_disabled(_: u32) {} } fn new_test_ext() -> TestExternalities { diff --git a/runtime/common/src/lib.rs b/runtime/common/src/lib.rs index 704924a411db..ac32b64f85f1 100644 --- a/runtime/common/src/lib.rs +++ b/runtime/common/src/lib.rs @@ -150,7 +150,7 @@ impl OneSessionHandler { } - fn on_disabled(_: usize) {} + fn on_disabled(_: u32) {} } /// A placeholder since there is currently no provided session key handler for parachain validator @@ -179,7 +179,7 @@ impl OneSessionHandler { } - fn on_disabled(_: usize) {} + fn on_disabled(_: u32) {} } #[cfg(test)] diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index e496f3166671..f8b296bf6695 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -326,10 +326,6 @@ impl_opaque_keys! { } } -parameter_types! { - pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); -} - impl pallet_session::Config for Runtime { type Event = Event; type ValidatorId = AccountId; @@ -339,7 +335,6 @@ impl pallet_session::Config for Runtime { type SessionManager = pallet_session::historical::NoteHistoricalRoot; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = weights::pallet_session::WeightInfo; } @@ -497,6 +492,7 @@ parameter_types! { // 27 eras in which slashes can be cancelled (slightly less than 7 days). pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const MaxNominatorRewardedPerValidator: u32 = 256; + pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); } type SlashCancelOrigin = EnsureOneOf< @@ -531,6 +527,7 @@ impl pallet_staking::Config for Runtime { type EraPayout = EraPayout; type NextNewSession = Session; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; + type OffendingValidatorsThreshold = OffendingValidatorsThreshold; // Use the nominators map to iter voters, but also perform the bags-list migration and keep // it up-to-date. type SortedListProvider = runtime_common::elections::UseNominatorsAndUpdateBagsList; diff --git a/runtime/parachains/src/initializer.rs b/runtime/parachains/src/initializer.rs index ebaa68b46ba5..95e3310e37fe 100644 --- a/runtime/parachains/src/initializer.rs +++ b/runtime/parachains/src/initializer.rs @@ -329,7 +329,7 @@ impl OneSessionHandler for Pal >::on_new_session(changed, session_index, validators, Some(queued)); } - fn on_disabled(_i: usize) {} + fn on_disabled(_i: u32) {} } #[cfg(test)] diff --git a/runtime/parachains/src/session_info.rs b/runtime/parachains/src/session_info.rs index 93f0ba736577..d69f71e827b9 100644 --- a/runtime/parachains/src/session_info.rs +++ b/runtime/parachains/src/session_info.rs @@ -166,7 +166,7 @@ impl OneSessionHandler for Pal AssignmentKeysUnsafe::::set(assignment_keys); } - fn on_disabled(_i: usize) {} + fn on_disabled(_i: u32) {} } #[cfg(test)] diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 6f7906451349..20f8ac789bf9 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -348,10 +348,6 @@ impl_opaque_keys! { } } -parameter_types! { - pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); -} - impl pallet_session::Config for Runtime { type Event = Event; type ValidatorId = AccountId; @@ -361,7 +357,6 @@ impl pallet_session::Config for Runtime { type SessionManager = pallet_session::historical::NoteHistoricalRoot; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = weights::pallet_session::WeightInfo; } @@ -464,6 +459,7 @@ parameter_types! { pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub const MaxNominatorRewardedPerValidator: u32 = 256; + pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); } type SlashCancelOrigin = EnsureOneOf< @@ -495,6 +491,7 @@ impl pallet_staking::Config for Runtime { type SessionInterface = Self; type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; + type OffendingValidatorsThreshold = OffendingValidatorsThreshold; type NextNewSession = Session; type ElectionProvider = ElectionProviderMultiPhase; type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf; diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index febdfb016028..5825bca2bbd0 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -55,7 +55,7 @@ use sp_runtime::{ OpaqueKeys, SaturatedConversion, Verify, }, transaction_validity::{TransactionPriority, TransactionSource, TransactionValidity}, - ApplyExtrinsicResult, KeyTypeId, Perbill, + ApplyExtrinsicResult, KeyTypeId, }; use sp_staking::SessionIndex; use sp_std::{collections::btree_map::BTreeMap, prelude::*}; @@ -465,10 +465,6 @@ impl pallet_transaction_payment::Config for Runtime { type FeeMultiplierUpdate = SlowAdjustingFeeUpdate; } -parameter_types! { - pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); -} - /// Special `ValidatorIdOf` implementation that is just returning the input as result. pub struct ValidatorIdOf; impl sp_runtime::traits::Convert> for ValidatorIdOf { @@ -486,7 +482,6 @@ impl pallet_session::Config for Runtime { type SessionManager = pallet_session::historical::NoteHistoricalRoot; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = (); } diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index ccecc33f4a7a..fd4742136c13 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -273,10 +273,6 @@ impl_opaque_keys! { } } -parameter_types! { - pub storage DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); -} - impl pallet_session::Config for Runtime { type Event = Event; type ValidatorId = AccountId; @@ -286,7 +282,6 @@ impl pallet_session::Config for Runtime { type SessionManager = Staking; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = (); } @@ -315,6 +310,7 @@ parameter_types! { pub storage SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub storage MaxNominatorRewardedPerValidator: u32 = 64; + pub storage OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); pub const MaxAuthorities: u32 = 100_000; } @@ -340,6 +336,7 @@ impl pallet_staking::Config for Runtime { type SessionInterface = Self; type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; + type OffendingValidatorsThreshold = OffendingValidatorsThreshold; type NextNewSession = Session; type ElectionProvider = frame_election_provider_support::onchain::OnChainSequentialPhragmen; diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index c6187cf82c96..23c085f5783a 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -312,10 +312,6 @@ impl_opaque_keys! { } } -parameter_types! { - pub const DisabledValidatorsThreshold: Perbill = Perbill::from_percent(17); -} - impl pallet_session::Config for Runtime { type Event = Event; type ValidatorId = AccountId; @@ -325,7 +321,6 @@ impl pallet_session::Config for Runtime { type SessionManager = pallet_session::historical::NoteHistoricalRoot; type SessionHandler = ::KeyTypeIdProviders; type Keys = SessionKeys; - type DisabledValidatorsThreshold = DisabledValidatorsThreshold; type WeightInfo = weights::pallet_session::WeightInfo; } @@ -429,6 +424,7 @@ parameter_types! { pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub const MaxNominatorRewardedPerValidator: u32 = 64; + pub const OffendingValidatorsThreshold: Perbill = Perbill::from_percent(17); } impl frame_election_provider_support::onchain::Config for Runtime { @@ -454,6 +450,7 @@ impl pallet_staking::Config for Runtime { type SessionInterface = Self; type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; + type OffendingValidatorsThreshold = OffendingValidatorsThreshold; type NextNewSession = Session; type ElectionProvider = ElectionProviderMultiPhase; type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf; From 0559d2d73226fc882eab177d0afbbdfe6a9ae815 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 6 Oct 2021 17:52:24 +0000 Subject: [PATCH 12/40] Bump tracing from 0.1.28 to 0.1.29 (#4023) Bumps [tracing](https://github.com/tokio-rs/tracing) from 0.1.28 to 0.1.29. - [Release notes](https://github.com/tokio-rs/tracing/releases) - [Commits](https://github.com/tokio-rs/tracing/compare/tracing-0.1.28...tracing-0.1.29) --- updated-dependencies: - dependency-name: tracing dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 12 ++++++------ node/collation-generation/Cargo.toml | 2 +- node/core/approval-voting/Cargo.toml | 2 +- node/core/av-store/Cargo.toml | 2 +- node/core/backing/Cargo.toml | 2 +- node/core/bitfield-signing/Cargo.toml | 2 +- node/core/candidate-validation/Cargo.toml | 2 +- node/core/chain-api/Cargo.toml | 2 +- node/core/chain-selection/Cargo.toml | 2 +- node/core/dispute-coordinator/Cargo.toml | 2 +- node/core/dispute-participation/Cargo.toml | 2 +- node/core/parachains-inherent/Cargo.toml | 2 +- node/core/provisioner/Cargo.toml | 2 +- node/core/pvf/Cargo.toml | 2 +- node/core/runtime-api/Cargo.toml | 2 +- node/metered-channel/Cargo.toml | 4 ++-- node/network/approval-distribution/Cargo.toml | 2 +- node/network/availability-distribution/Cargo.toml | 2 +- node/network/availability-recovery/Cargo.toml | 2 +- node/network/bitfield-distribution/Cargo.toml | 2 +- node/network/bridge/Cargo.toml | 2 +- node/network/collator-protocol/Cargo.toml | 2 +- node/network/dispute-distribution/Cargo.toml | 2 +- node/network/gossip-support/Cargo.toml | 2 +- node/network/statement-distribution/Cargo.toml | 2 +- node/overseer/Cargo.toml | 2 +- node/service/Cargo.toml | 2 +- node/subsystem-util/Cargo.toml | 2 +- node/test/service/Cargo.toml | 2 +- 29 files changed, 35 insertions(+), 35 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index dc2f7837931f..b3830c482325 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10820,9 +10820,9 @@ checksum = "e987b6bf443f4b5b3b6f38704195592cca41c5bb7aedd3c3693c7081f8289860" [[package]] name = "tracing" -version = "0.1.28" +version = "0.1.29" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "84f96e095c0c82419687c20ddf5cb3eadb61f4e1405923c9dc8e53a1adacbda8" +checksum = "375a639232caf30edfc78e8d89b2d4c375515393e7af7e16f01cd96917fb2105" dependencies = [ "cfg-if 1.0.0", "log", @@ -10833,9 +10833,9 @@ dependencies = [ [[package]] name = "tracing-attributes" -version = "0.1.16" +version = "0.1.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "98863d0dd09fa59a1b79c6750ad80dbda6b75f4e71c437a6a1a8cb91a8bcbd77" +checksum = "f4f480b8f81512e825f337ad51e94c1eb5d3bbdf2b363dcd01e2b19a9ffe3f8e" dependencies = [ "proc-macro2", "quote", @@ -10844,9 +10844,9 @@ dependencies = [ [[package]] name = "tracing-core" -version = "0.1.20" +version = "0.1.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46125608c26121c81b0c6d693eab5a420e416da7e43c426d2e8f7df8da8a3acf" +checksum = "1f4ed65637b8390770814083d20756f87bfa2c21bf2f110babdc5438351746e4" dependencies = [ "lazy_static", ] diff --git a/node/collation-generation/Cargo.toml b/node/collation-generation/Cargo.toml index 9ff9621fcbf8..6ae417287efb 100644 --- a/node/collation-generation/Cargo.toml +++ b/node/collation-generation/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-erasure-coding = { path = "../../erasure-coding" } polkadot-node-primitives = { path = "../primitives" } polkadot-node-subsystem = { path = "../subsystem" } diff --git a/node/core/approval-voting/Cargo.toml b/node/core/approval-voting/Cargo.toml index e240346a7e6a..51c03a4afca1 100644 --- a/node/core/approval-voting/Cargo.toml +++ b/node/core/approval-voting/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" futures = "0.3.17" futures-timer = "3.0.2" parity-scale-codec = { version = "2.3.1", default-features = false, features = ["bit-vec", "derive"] } -tracing = "0.1.28" +tracing = "0.1.29" bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } lru = "0.7" merlin = "2.0" diff --git a/node/core/av-store/Cargo.toml b/node/core/av-store/Cargo.toml index ebd6529d85c5..5b5c9a2bbf45 100644 --- a/node/core/av-store/Cargo.toml +++ b/node/core/av-store/Cargo.toml @@ -9,7 +9,7 @@ futures = "0.3.17" futures-timer = "3.0.2" kvdb = "0.10.0" thiserror = "1.0.26" -tracing = "0.1.28" +tracing = "0.1.29" bitvec = "0.20.1" parity-scale-codec = { version = "2.3.1", features = ["derive"] } diff --git a/node/core/backing/Cargo.toml b/node/core/backing/Cargo.toml index 83a665da943f..bf2b9b3b3b19 100644 --- a/node/core/backing/Cargo.toml +++ b/node/core/backing/Cargo.toml @@ -14,7 +14,7 @@ polkadot-node-subsystem-util = { path = "../../subsystem-util" } erasure-coding = { package = "polkadot-erasure-coding", path = "../../../erasure-coding" } statement-table = { package = "polkadot-statement-table", path = "../../../statement-table" } bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } -tracing = "0.1.28" +tracing = "0.1.29" thiserror = "1.0.26" [dev-dependencies] diff --git a/node/core/bitfield-signing/Cargo.toml b/node/core/bitfield-signing/Cargo.toml index eae0881d2da3..ad3f821345da 100644 --- a/node/core/bitfield-signing/Cargo.toml +++ b/node/core/bitfield-signing/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-primitives = { path = "../../../primitives" } polkadot-node-subsystem = { path = "../../subsystem" } polkadot-node-subsystem-util = { path = "../../subsystem-util" } diff --git a/node/core/candidate-validation/Cargo.toml b/node/core/candidate-validation/Cargo.toml index 334166bbfb2a..cfdb69dd0119 100644 --- a/node/core/candidate-validation/Cargo.toml +++ b/node/core/candidate-validation/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] async-trait = "0.1.51" futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" sp-maybe-compressed-blob = { package = "sp-maybe-compressed-blob", git = "https://github.com/paritytech/substrate", branch = "master" } parity-scale-codec = { version = "2.3.1", default-features = false, features = ["bit-vec", "derive"] } diff --git a/node/core/chain-api/Cargo.toml b/node/core/chain-api/Cargo.toml index ffea3a4e559a..4f2c235f3c66 100644 --- a/node/core/chain-api/Cargo.toml +++ b/node/core/chain-api/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "master" } polkadot-primitives = { path = "../../../primitives" } polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem" } diff --git a/node/core/chain-selection/Cargo.toml b/node/core/chain-selection/Cargo.toml index 64a84cdf29be..7202e38db0bf 100644 --- a/node/core/chain-selection/Cargo.toml +++ b/node/core/chain-selection/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" [dependencies] futures = "0.3.17" futures-timer = "3" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-primitives = { path = "../../../primitives" } polkadot-node-primitives = { path = "../../primitives" } polkadot-node-subsystem = { path = "../../subsystem" } diff --git a/node/core/dispute-coordinator/Cargo.toml b/node/core/dispute-coordinator/Cargo.toml index 0cb6bcc2bf3f..2185383fe005 100644 --- a/node/core/dispute-coordinator/Cargo.toml +++ b/node/core/dispute-coordinator/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" parity-scale-codec = "2" kvdb = "0.10.0" derive_more = "0.99.14" diff --git a/node/core/dispute-participation/Cargo.toml b/node/core/dispute-participation/Cargo.toml index 5b1843d02b9c..f0eba006e813 100644 --- a/node/core/dispute-participation/Cargo.toml +++ b/node/core/dispute-participation/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] futures = "0.3.17" thiserror = "1.0.26" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-node-primitives = { path = "../../primitives" } polkadot-node-subsystem = { path = "../../subsystem" } diff --git a/node/core/parachains-inherent/Cargo.toml b/node/core/parachains-inherent/Cargo.toml index 4a40d3f1e383..79d7ab48efa2 100644 --- a/node/core/parachains-inherent/Cargo.toml +++ b/node/core/parachains-inherent/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] futures = "0.3.17" futures-timer = "3.0.2" -tracing = "0.1.28" +tracing = "0.1.29" thiserror = "1.0.26" async-trait = "0.1.51" polkadot-node-subsystem = { path = "../../subsystem" } diff --git a/node/core/provisioner/Cargo.toml b/node/core/provisioner/Cargo.toml index a5313e348226..8870b9e93f62 100644 --- a/node/core/provisioner/Cargo.toml +++ b/node/core/provisioner/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" thiserror = "1.0.26" polkadot-primitives = { path = "../../../primitives" } polkadot-node-subsystem = { path = "../../subsystem" } diff --git a/node/core/pvf/Cargo.toml b/node/core/pvf/Cargo.toml index 51f4c8a7b173..2a40547efa5b 100644 --- a/node/core/pvf/Cargo.toml +++ b/node/core/pvf/Cargo.toml @@ -17,7 +17,7 @@ futures = "0.3.17" futures-timer = "3.0.2" libc = "0.2.103" slotmap = "1.0" -tracing = "0.1.28" +tracing = "0.1.29" pin-project = "1.0.8" rand = "0.8.3" parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] } diff --git a/node/core/runtime-api/Cargo.toml b/node/core/runtime-api/Cargo.toml index ed730f70d492..32f561ac16be 100644 --- a/node/core/runtime-api/Cargo.toml +++ b/node/core/runtime-api/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" memory-lru = "0.1.0" parity-util-mem = { version = "0.10.0", default-features = false } diff --git a/node/metered-channel/Cargo.toml b/node/metered-channel/Cargo.toml index dfbea6ba9586..68aa04fa6749 100644 --- a/node/metered-channel/Cargo.toml +++ b/node/metered-channel/Cargo.toml @@ -9,7 +9,7 @@ description = "Channels with attached Meters" futures = "0.3.17" futures-timer = "3.0.2" derive_more = "0.99" -tracing = "0.1.28" +tracing = "0.1.29" thiserror = "1.0.29" [dev-dependencies] @@ -17,4 +17,4 @@ futures = { version = "0.3.17", features = ["thread-pool"] } assert_matches = "1.5" env_logger = "0.9" log = "0.4" -tracing = { version = "0.1.28", features = ["log"] } +tracing = { version = "0.1.29", features = ["log"] } diff --git a/node/network/approval-distribution/Cargo.toml b/node/network/approval-distribution/Cargo.toml index cf3c71faf2cf..a53ae5b36cf1 100644 --- a/node/network/approval-distribution/Cargo.toml +++ b/node/network/approval-distribution/Cargo.toml @@ -12,7 +12,7 @@ polkadot-node-subsystem-util = { path = "../../subsystem-util" } polkadot-primitives = { path = "../../../primitives" } futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" [dev-dependencies] sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["std"] } diff --git a/node/network/availability-distribution/Cargo.toml b/node/network/availability-distribution/Cargo.toml index 829e68aafc12..466da985ab99 100644 --- a/node/network/availability-distribution/Cargo.toml +++ b/node/network/availability-distribution/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" parity-scale-codec = { version = "2.3.1", features = ["std"] } polkadot-primitives = { path = "../../../primitives" } polkadot-erasure-coding = { path = "../../../erasure-coding" } diff --git a/node/network/availability-recovery/Cargo.toml b/node/network/availability-recovery/Cargo.toml index 573058e2d98e..efa30b41c52c 100644 --- a/node/network/availability-recovery/Cargo.toml +++ b/node/network/availability-recovery/Cargo.toml @@ -9,7 +9,7 @@ futures = "0.3.17" lru = "0.7.0" rand = "0.8.3" thiserror = "1.0.26" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-erasure-coding = { path = "../../../erasure-coding" } polkadot-primitives = { path = "../../../primitives" } diff --git a/node/network/bitfield-distribution/Cargo.toml b/node/network/bitfield-distribution/Cargo.toml index 5b951bd8e030..b097a3730533 100644 --- a/node/network/bitfield-distribution/Cargo.toml +++ b/node/network/bitfield-distribution/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-primitives = { path = "../../../primitives" } polkadot-subsystem = { package = "polkadot-node-subsystem", path = "../../subsystem" } polkadot-node-subsystem-util = { path = "../../subsystem-util" } diff --git a/node/network/bridge/Cargo.toml b/node/network/bridge/Cargo.toml index 7758fd7148c7..687ba11d7e28 100644 --- a/node/network/bridge/Cargo.toml +++ b/node/network/bridge/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] async-trait = "0.1.51" futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-primitives = { path = "../../../primitives" } parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/network/collator-protocol/Cargo.toml b/node/network/collator-protocol/Cargo.toml index 295a296911db..c018cbeb16b0 100644 --- a/node/network/collator-protocol/Cargo.toml +++ b/node/network/collator-protocol/Cargo.toml @@ -10,7 +10,7 @@ derive_more = "0.99.14" futures = "0.3.17" futures-timer = "3" thiserror = "1.0.26" -tracing = "0.1.28" +tracing = "0.1.29" sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/network/dispute-distribution/Cargo.toml b/node/network/dispute-distribution/Cargo.toml index 02ca246fbfbc..dd99d4159934 100644 --- a/node/network/dispute-distribution/Cargo.toml +++ b/node/network/dispute-distribution/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" derive_more = "0.99.14" parity-scale-codec = { version = "2.3.1", features = ["std"] } polkadot-primitives = { path = "../../../primitives" } diff --git a/node/network/gossip-support/Cargo.toml b/node/network/gossip-support/Cargo.toml index 71df67b3fa9f..ccf110330d95 100644 --- a/node/network/gossip-support/Cargo.toml +++ b/node/network/gossip-support/Cargo.toml @@ -19,7 +19,7 @@ futures = "0.3.17" futures-timer = "3.0.2" rand = { version = "0.8.3", default-features = false } rand_chacha = { version = "0.3.1", default-features = false } -tracing = "0.1.28" +tracing = "0.1.29" [dev-dependencies] sp-keyring = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/network/statement-distribution/Cargo.toml b/node/network/statement-distribution/Cargo.toml index 5573363956f7..fc594fd18285 100644 --- a/node/network/statement-distribution/Cargo.toml +++ b/node/network/statement-distribution/Cargo.toml @@ -7,7 +7,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -tracing = "0.1.28" +tracing = "0.1.29" polkadot-primitives = { path = "../../../primitives" } sp-staking = { git = "https://github.com/paritytech/substrate", branch = "master", default-features = false } sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/overseer/Cargo.toml b/node/overseer/Cargo.toml index 5fb2d4ab7515..fc8abf8c67cf 100644 --- a/node/overseer/Cargo.toml +++ b/node/overseer/Cargo.toml @@ -16,7 +16,7 @@ polkadot-node-subsystem-types = { path = "../subsystem-types" } polkadot-node-metrics = { path = "../metrics" } polkadot-primitives = { path = "../../primitives" } polkadot-overseer-gen = { path = "./overseer-gen" } -tracing = "0.1.28" +tracing = "0.1.29" lru = "0.7" parity-util-mem = { version = ">= 0.10.1", default-features = false } diff --git a/node/service/Cargo.toml b/node/service/Cargo.toml index 8ad093412bf4..6ca1f6669292 100644 --- a/node/service/Cargo.toml +++ b/node/service/Cargo.toml @@ -62,7 +62,7 @@ prometheus-endpoint = { package = "substrate-prometheus-endpoint", git = "https: # External Crates futures = "0.3.17" hex-literal = "0.3.3" -tracing = "0.1.28" +tracing = "0.1.29" serde = { version = "1.0.130", features = ["derive"] } thiserror = "1.0.26" kvdb = "0.10.0" diff --git a/node/subsystem-util/Cargo.toml b/node/subsystem-util/Cargo.toml index 2d53208c3db0..4da5b8d7171d 100644 --- a/node/subsystem-util/Cargo.toml +++ b/node/subsystem-util/Cargo.toml @@ -13,7 +13,7 @@ parity-scale-codec = { version = "2.3.1", default-features = false, features = [ pin-project = "1.0.8" rand = "0.8.3" thiserror = "1.0.26" -tracing = "0.1.28" +tracing = "0.1.29" derive_more = "0.99.11" lru = "0.7.0" diff --git a/node/test/service/Cargo.toml b/node/test/service/Cargo.toml index 97b885f9dc49..81c8be5c4c74 100644 --- a/node/test/service/Cargo.toml +++ b/node/test/service/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" futures = "0.3.17" futures01 = { package = "futures", version = "0.1.29" } hex = "0.4.3" -tracing = "0.1.28" +tracing = "0.1.29" rand = "0.8.3" tempfile = "3.2.0" tokio = "1.12.0" From b74335acfbae7957fd3b124b358a5ccda1112c3e Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Wed, 6 Oct 2021 21:16:23 +0200 Subject: [PATCH 13/40] collect included disputes from on-chain (#3924) * dummy: impl another runtime API * query the on chain disputes, and inform self * make use of the refactor * minro * SPLIT ME * write dispute values * wip * impl for all runtimes * chore: fmt * [] -> get * fixup mock runtime * fixup * fixup discovery for overseer init * chore: fmt * spellcheck * rename imported_on_chain_disputes -> on_chain_votes * reduction * make it mockable * rename and refactor * don't query on chain info if it's not needed * yikes * fmt * fix test * minimal fix for existing tests * attempt to fetch the session info from the rolling window before falling back * moved * comments * comments * test for backing votes * rename * Update runtime/polkadot/src/lib.rs * chore: spellcheck + dict * chore: fmt * fixup cache size * add warning * logging, rationale, less defense * introduce new unchecked, that still checks in debug builds * fix * draft alt approach * fix unused imports * include the session * Update node/core/dispute-coordinator/src/real/mod.rs Co-authored-by: Robert Habermeier * provide where possible * expand comment * fixin * fixup * ValidityVote <-> ValidityAttestation <-> CompactStatement has a 1:1 representation * mark TODO * Update primitives/src/v1/mod.rs Co-authored-by: Robert Habermeier * address review comments * update docs Co-authored-by: Robert Habermeier --- doc/shell-completion.md | 1 + node/core/dispute-coordinator/src/real/mod.rs | 283 ++++++++++++++++-- .../dispute-coordinator/src/real/tests.rs | 11 + node/core/runtime-api/src/cache.rs | 22 +- node/core/runtime-api/src/lib.rs | 5 + node/core/runtime-api/src/tests.rs | 9 +- node/primitives/src/disputes/mod.rs | 20 ++ node/subsystem-types/src/messages.rs | 2 + primitives/src/v0.rs | 13 + primitives/src/v1/mod.rs | 25 +- .../src/node/disputes/dispute-coordinator.md | 2 + .../src/runtime/parainherent.md | 13 +- .../implementers-guide/src/types/disputes.md | 17 ++ runtime/kusama/src/lib.rs | 8 +- runtime/parachains/src/inclusion.rs | 183 ++++++++--- runtime/parachains/src/paras_inherent.rs | 23 +- runtime/parachains/src/runtime_api_impl/v1.rs | 12 +- runtime/polkadot/src/lib.rs | 8 +- runtime/rococo/src/lib.rs | 9 +- runtime/test-runtime/src/lib.rs | 8 +- runtime/westend/src/lib.rs | 8 +- scripts/gitlab/lingua.dic | 2 + statement-table/src/generic.rs | 6 +- 23 files changed, 606 insertions(+), 84 deletions(-) diff --git a/doc/shell-completion.md b/doc/shell-completion.md index 965a722308c3..986609392e34 100644 --- a/doc/shell-completion.md +++ b/doc/shell-completion.md @@ -10,6 +10,7 @@ source target/release/completion-scripts/polkadot.bash ``` You can find completion scripts for: + - bash - fish - zsh diff --git a/node/core/dispute-coordinator/src/real/mod.rs b/node/core/dispute-coordinator/src/real/mod.rs index b4a1437d7d55..e03fc2edd1e7 100644 --- a/node/core/dispute-coordinator/src/real/mod.rs +++ b/node/core/dispute-coordinator/src/real/mod.rs @@ -31,6 +31,9 @@ use std::{ time::{SystemTime, UNIX_EPOCH}, }; +use futures::{channel::oneshot, prelude::*}; +use kvdb::KeyValueDB; +use parity_scale_codec::{Decode, Encode, Error as CodecError}; use polkadot_node_primitives::{ CandidateVotes, DisputeMessage, DisputeMessageCheckError, SignedDisputeStatement, DISPUTE_WINDOW, @@ -39,7 +42,7 @@ use polkadot_node_subsystem::{ errors::{ChainApiError, RuntimeApiError}, messages::{ BlockDescription, DisputeCoordinatorMessage, DisputeDistributionMessage, - DisputeParticipationMessage, ImportStatementsResult, + DisputeParticipationMessage, ImportStatementsResult, RuntimeApiMessage, RuntimeApiRequest, }, overseer, FromOverseer, OverseerSignal, SpawnedSubsystem, SubsystemContext, SubsystemError, }; @@ -47,13 +50,10 @@ use polkadot_node_subsystem_util::rolling_session_window::{ RollingSessionWindow, SessionWindowUpdate, }; use polkadot_primitives::v1::{ - BlockNumber, CandidateHash, CandidateReceipt, DisputeStatement, Hash, SessionIndex, - SessionInfo, ValidatorId, ValidatorIndex, ValidatorPair, ValidatorSignature, + BlockNumber, CandidateHash, CandidateReceipt, CompactStatement, DisputeStatement, + DisputeStatementSet, Hash, ScrapedOnChainVotes, SessionIndex, SessionInfo, + ValidDisputeStatementKind, ValidatorId, ValidatorIndex, ValidatorPair, ValidatorSignature, }; - -use futures::{channel::oneshot, prelude::*}; -use kvdb::KeyValueDB; -use parity_scale_codec::{Decode, Encode, Error as CodecError}; use sc_keystore::LocalKeystore; use crate::metrics::Metrics; @@ -348,6 +348,8 @@ where &mut overlay_db, &mut state, update.activated.into_iter().map(|a| a.hash), + clock.now(), + &metrics, ) .await?; if !state.recovery_state.complete() { @@ -476,6 +478,8 @@ async fn handle_new_activations( overlay_db: &mut OverlayedBackend<'_, impl Backend>, state: &mut State, new_activations: impl IntoIterator, + now: u64, + metrics: &Metrics, ) -> Result<(), Error> { for new_leaf in new_activations { match state.rolling_session_window.cache_session_info_for_head(ctx, new_leaf).await { @@ -485,7 +489,6 @@ async fn handle_new_activations( err = ?e, "Failed to update session cache for disputes", ); - continue }, Ok(SessionWindowUpdate::Initialized { window_end, .. }) | @@ -499,10 +502,217 @@ async fn handle_new_activations( db::v1::note_current_session(overlay_db, session)?; } }, - _ => {}, + Ok(SessionWindowUpdate::Unchanged) => {}, + }; + scrape_on_chain_votes(ctx, overlay_db, state, new_leaf, now, metrics).await?; + } + + Ok(()) +} + +/// Scrapes on-chain votes (backing votes and concluded disputes) for a active leaf of the relay chain. +async fn scrape_on_chain_votes( + ctx: &mut (impl SubsystemContext + + overseer::SubsystemContext), + overlay_db: &mut OverlayedBackend<'_, impl Backend>, + state: &mut State, + new_leaf: Hash, + now: u64, + metrics: &Metrics, +) -> Result<(), Error> { + // obtain the concluded disputes as well as the candidate backing votes + // from the new leaf + let ScrapedOnChainVotes { session, backing_validators_per_candidate, disputes } = { + let (tx, rx) = oneshot::channel(); + ctx.send_message(RuntimeApiMessage::Request( + new_leaf, + RuntimeApiRequest::FetchOnChainVotes(tx), + )) + .await; + match rx.await { + Ok(Ok(Some(val))) => val, + Ok(Ok(None)) => { + tracing::trace!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + "No on chain votes stored for relay chain leaf"); + return Ok(()) + }, + Ok(Err(e)) => { + tracing::debug!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + error = ?e, + "Could not retrieve on chain votes due to an API error"); + return Ok(()) + }, + Err(e) => { + tracing::debug!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + error = ?e, + "Could not retrieve onchain votes due to oneshot cancellation"); + return Ok(()) + }, + } + }; + + if backing_validators_per_candidate.is_empty() && disputes.is_empty() { + return Ok(()) + } + + // Obtain the session info, for sake of `ValidatorId`s + // either from the rolling session window. + // Must be called _after_ `fn cache_session_info_for_head` + // which guarantees that the session info is available + // for the current session. + let session_info: SessionInfo = + if let Some(session_info) = state.rolling_session_window.session_info(session) { + session_info.clone() + } else { + tracing::warn!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + "Could not retrieve session info from rolling session window"); + return Ok(()) + }; + + // Scraped on-chain backing votes for the candidates with + // the new active leaf as if we received them via gossip. + for (candidate_receipt, backers) in backing_validators_per_candidate { + let candidate_hash = candidate_receipt.hash(); + let statements = backers.into_iter().filter_map(|(validator_index, attestation)| { + let validator_public: ValidatorId = session_info + .validators + .get(validator_index.0 as usize) + .or_else(|| { + tracing::error!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + "Missing public key for validator {:?}", + &validator_index); + None + }) + .cloned()?; + let validator_signature = attestation.signature().clone(); + let valid_statement_kind = match attestation.to_compact_statement(candidate_hash) { + CompactStatement::Seconded(_) => + ValidDisputeStatementKind::BackingSeconded(new_leaf), + CompactStatement::Valid(_) => ValidDisputeStatementKind::BackingValid(new_leaf), + }; + let signed_dispute_statement = + SignedDisputeStatement::new_unchecked_from_trusted_source( + DisputeStatement::Valid(valid_statement_kind), + candidate_hash, + session, + validator_public, + validator_signature, + ); + Some((signed_dispute_statement, validator_index)) + }); + let import_result = handle_import_statements( + ctx, + overlay_db, + state, + candidate_hash, + MaybeCandidateReceipt::Provides(candidate_receipt), + session, + statements, + now, + metrics, + ) + .await?; + match import_result { + ImportStatementsResult::ValidImport => tracing::trace!(target: LOG_TARGET, + relay_parent = ?new_leaf, + ?session, + "Imported backing vote from on-chain"), + ImportStatementsResult::InvalidImport => tracing::warn!(target: LOG_TARGET, + relay_parent = ?new_leaf, + ?session, + "Attempted import of on-chain backing votes failed"), } } + if disputes.is_empty() { + return Ok(()) + } + + // Import concluded disputes from on-chain, this already went through a vote so it's assumed + // as verified. This will only be stored, gossiping it is not necessary. + + // First try to obtain all the backings which ultimately contain the candidate + // receipt which we need. + + for DisputeStatementSet { candidate_hash, session, statements } in disputes { + let statements = statements + .into_iter() + .filter_map(|(dispute_statement, validator_index, validator_signature)| { + let session_info: SessionInfo = if let Some(session_info) = + state.rolling_session_window.session_info(session) + { + session_info.clone() + } else { + tracing::warn!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + ?session, + "Could not retrieve session info from rolling session window for recently concluded dispute"); + return None + }; + + let validator_public: ValidatorId = session_info + .validators + .get(validator_index.0 as usize) + .or_else(|| { + tracing::error!( + target: LOG_TARGET, + relay_parent = ?new_leaf, + ?session, + "Missing public key for validator {:?} that participated in concluded dispute", + &validator_index); + None + }) + .cloned()?; + + Some(( + SignedDisputeStatement::new_unchecked_from_trusted_source( + dispute_statement, + candidate_hash, + session, + validator_public, + validator_signature, + ), + validator_index, + )) + }) + .collect::>(); + let import_result = handle_import_statements( + ctx, + overlay_db, + state, + candidate_hash, + // TODO + MaybeCandidateReceipt::AssumeBackingVotePresent, + session, + statements, + now, + metrics, + ) + .await?; + match import_result { + ImportStatementsResult::ValidImport => tracing::trace!(target: LOG_TARGET, + relay_parent = ?new_leaf, + ?candidate_hash, + ?session, + "Imported statement of conlcuded dispute from on-chain"), + ImportStatementsResult::InvalidImport => tracing::warn!(target: LOG_TARGET, + relay_parent = ?new_leaf, + ?candidate_hash, + ?session, + "Attempted import of on-chain statement of concluded dispute failed"), + } + } Ok(()) } @@ -527,7 +737,7 @@ async fn handle_incoming( overlay_db, state, candidate_hash, - candidate_receipt, + MaybeCandidateReceipt::Provides(candidate_receipt), session, statements, now, @@ -622,14 +832,22 @@ fn insert_into_statement_vec( vec.insert(pos, (tag, val_index, val_signature)); } +#[derive(Debug, Clone)] +enum MaybeCandidateReceipt { + /// Directly provides the candiate receipt. + Provides(CandidateReceipt), + /// Assumes it was seen before by means of seconded message. + AssumeBackingVotePresent, +} + async fn handle_import_statements( ctx: &mut impl SubsystemContext, overlay_db: &mut OverlayedBackend<'_, impl Backend>, state: &mut State, candidate_hash: CandidateHash, - candidate_receipt: CandidateReceipt, + candidate_receipt: MaybeCandidateReceipt, session: SessionIndex, - statements: Vec<(SignedDisputeStatement, ValidatorIndex)>, + statements: impl IntoIterator, now: Timestamp, metrics: &Metrics, ) -> Result { @@ -638,7 +856,7 @@ async fn handle_import_statements( return Ok(ImportStatementsResult::InvalidImport) } - let validators = match state.rolling_session_window.session_info(session) { + let session_info = match state.rolling_session_window.session_info(session) { None => { tracing::warn!( target: LOG_TARGET, @@ -648,21 +866,40 @@ async fn handle_import_statements( return Ok(ImportStatementsResult::InvalidImport) }, - Some(info) => info.validators.clone(), + Some(info) => info, }; + let validators = session_info.validators.clone(); let n_validators = validators.len(); let supermajority_threshold = polkadot_primitives::v1::supermajority_threshold(n_validators); - let mut votes = overlay_db + // In case we are not provided with a candidate receipt + // we operate under the assumption, that a previous vote + // which included a `CandidateReceipt` was seen. + // This holds since every block is preceeded by the `Backing`-phase. + // + // There is one exception: A sufficiently sophisticated attacker could prevent + // us from seeing the backing votes by witholding arbitrary blocks, and hence we do + // not have a `CandidateReceipt` available. + let mut votes = match overlay_db .load_candidate_votes(session, &candidate_hash)? .map(CandidateVotes::from) - .unwrap_or_else(|| CandidateVotes { - candidate_receipt: candidate_receipt.clone(), - valid: Vec::new(), - invalid: Vec::new(), - }); + { + Some(votes) => votes, + None => + if let MaybeCandidateReceipt::Provides(candidate_receipt) = candidate_receipt { + CandidateVotes { candidate_receipt, valid: Vec::new(), invalid: Vec::new() } + } else { + tracing::warn!( + target: LOG_TARGET, + session, + "Missing info for session which has an active dispute", + ); + return Ok(ImportStatementsResult::InvalidImport) + }, + }; + let candidate_receipt = votes.candidate_receipt.clone(); // Update candidate votes. for (statement, val_index) in statements { @@ -906,7 +1143,7 @@ async fn issue_local_statement( overlay_db, state, candidate_hash, - candidate_receipt, + MaybeCandidateReceipt::Provides(candidate_receipt), session, statements, now, @@ -927,7 +1164,7 @@ async fn issue_local_statement( target: LOG_TARGET, ?candidate_hash, ?session, - "handle_import_statements` considers our own votes invalid!" + "`handle_import_statements` considers our own votes invalid!" ); }, Ok(ImportStatementsResult::ValidImport) => { @@ -935,7 +1172,7 @@ async fn issue_local_statement( target: LOG_TARGET, ?candidate_hash, ?session, - "handle_import_statements` successfully imported our vote!" + "`handle_import_statements` successfully imported our vote!" ); }, } diff --git a/node/core/dispute-coordinator/src/real/tests.rs b/node/core/dispute-coordinator/src/real/tests.rs index c8709da92916..147fcede8a58 100644 --- a/node/core/dispute-coordinator/src/real/tests.rs +++ b/node/core/dispute-coordinator/src/real/tests.rs @@ -203,6 +203,17 @@ impl TestState { } ) } + + assert_matches!( + virtual_overseer.recv().await, + AllMessages::RuntimeApi(RuntimeApiMessage::Request( + _new_leaf, + RuntimeApiRequest::FetchOnChainVotes(tx), + )) => { + // add some `BackedCandidates` or resolved disputes here as needed + tx.send(Ok(Some(ScrapedOnChainVotes::default()))).unwrap(); + } + ) } async fn handle_resume_sync( diff --git a/node/core/runtime-api/src/cache.rs b/node/core/runtime-api/src/cache.rs index 962959a23841..9c3aeaa8d819 100644 --- a/node/core/runtime-api/src/cache.rs +++ b/node/core/runtime-api/src/cache.rs @@ -24,7 +24,8 @@ use polkadot_primitives::v1::{ AuthorityDiscoveryId, BlockNumber, CandidateCommitments, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, PersistedValidationData, - SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, + ScrapedOnChainVotes, SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash, + ValidatorId, ValidatorIndex, }; const AUTHORITIES_CACHE_SIZE: usize = 128 * 1024; @@ -41,6 +42,7 @@ const SESSION_INFO_CACHE_SIZE: usize = 64 * 1024; const DMQ_CONTENTS_CACHE_SIZE: usize = 64 * 1024; const INBOUND_HRMP_CHANNELS_CACHE_SIZE: usize = 64 * 1024; const CURRENT_BABE_EPOCH_CACHE_SIZE: usize = 64 * 1024; +const ON_CHAIN_VOTES_CACHE_SIZE: usize = 3 * 1024; struct ResidentSizeOf(T); @@ -98,6 +100,7 @@ pub(crate) struct RequestResultCache { ResidentSizeOf>>>, >, current_babe_epoch: MemoryLruCache>, + on_chain_votes: MemoryLruCache>>, } impl Default for RequestResultCache { @@ -120,6 +123,7 @@ impl Default for RequestResultCache { dmq_contents: MemoryLruCache::new(DMQ_CONTENTS_CACHE_SIZE), inbound_hrmp_channels_contents: MemoryLruCache::new(INBOUND_HRMP_CHANNELS_CACHE_SIZE), current_babe_epoch: MemoryLruCache::new(CURRENT_BABE_EPOCH_CACHE_SIZE), + on_chain_votes: MemoryLruCache::new(ON_CHAIN_VOTES_CACHE_SIZE), } } } @@ -320,6 +324,21 @@ impl RequestResultCache { pub(crate) fn cache_current_babe_epoch(&mut self, relay_parent: Hash, epoch: Epoch) { self.current_babe_epoch.insert(relay_parent, DoesNotAllocate(epoch)); } + + pub(crate) fn on_chain_votes( + &mut self, + relay_parent: &Hash, + ) -> Option<&Option> { + self.on_chain_votes.get(relay_parent).map(|v| &v.0) + } + + pub(crate) fn cache_on_chain_votes( + &mut self, + relay_parent: Hash, + scraped: Option, + ) { + self.on_chain_votes.insert(relay_parent, ResidentSizeOf(scraped)); + } } pub(crate) enum RequestResult { @@ -342,4 +361,5 @@ pub(crate) enum RequestResult { BTreeMap>>, ), CurrentBabeEpoch(Hash, Epoch), + FetchOnChainVotes(Hash, Option), } diff --git a/node/core/runtime-api/src/lib.rs b/node/core/runtime-api/src/lib.rs index cf2ec719c8e5..a24192c2c54f 100644 --- a/node/core/runtime-api/src/lib.rs +++ b/node/core/runtime-api/src/lib.rs @@ -143,6 +143,8 @@ where .cache_inbound_hrmp_channel_contents((relay_parent, para_id), contents), CurrentBabeEpoch(relay_parent, epoch) => self.requests_cache.cache_current_babe_epoch(relay_parent, epoch), + FetchOnChainVotes(relay_parent, scraped) => + self.requests_cache.cache_on_chain_votes(relay_parent, scraped), } } @@ -209,6 +211,8 @@ where .map(|sender| Request::InboundHrmpChannelsContents(id, sender)), Request::CurrentBabeEpoch(sender) => query!(current_babe_epoch(), sender).map(|sender| Request::CurrentBabeEpoch(sender)), + Request::FetchOnChainVotes(sender) => + query!(on_chain_votes(), sender).map(|sender| Request::FetchOnChainVotes(sender)), } } @@ -342,6 +346,7 @@ where Request::InboundHrmpChannelsContents(id, sender) => query!(InboundHrmpChannelsContents, inbound_hrmp_channels_contents(id), sender), Request::CurrentBabeEpoch(sender) => query!(CurrentBabeEpoch, current_epoch(), sender), + Request::FetchOnChainVotes(sender) => query!(FetchOnChainVotes, on_chain_votes(), sender), } } diff --git a/node/core/runtime-api/src/tests.rs b/node/core/runtime-api/src/tests.rs index 18906e196b82..983aa7d89e20 100644 --- a/node/core/runtime-api/src/tests.rs +++ b/node/core/runtime-api/src/tests.rs @@ -22,8 +22,8 @@ use polkadot_node_subsystem_test_helpers as test_helpers; use polkadot_primitives::v1::{ AuthorityDiscoveryId, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, OccupiedCoreAssumption, - PersistedValidationData, SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash, - ValidatorId, ValidatorIndex, + PersistedValidationData, ScrapedOnChainVotes, SessionIndex, SessionInfo, ValidationCode, + ValidationCodeHash, ValidatorId, ValidatorIndex, }; use sp_core::testing::TaskExecutor; use std::{ @@ -49,6 +49,7 @@ struct MockRuntimeApi { dmq_contents: HashMap>, hrmp_channels: HashMap>>, babe_epoch: Option, + on_chain_votes: Option, } impl ProvideRuntimeApi for MockRuntimeApi { @@ -149,6 +150,10 @@ sp_api::mock_impl_runtime_apis! { ) -> Option { self.validation_code_by_hash.get(&hash).map(|c| c.clone()) } + + fn on_chain_votes(&self) -> Option { + self.on_chain_votes.clone() + } } impl BabeApi for MockRuntimeApi { diff --git a/node/primitives/src/disputes/mod.rs b/node/primitives/src/disputes/mod.rs index a787fdd4dd0a..fe5df710c76c 100644 --- a/node/primitives/src/disputes/mod.rs +++ b/node/primitives/src/disputes/mod.rs @@ -66,6 +66,26 @@ impl CandidateVotes { } impl SignedDisputeStatement { + /// Create a new `SignedDisputeStatement` from information + /// that is available on-chain, and hence already can be trusted. + /// + /// Attention: Not to be used other than with guaranteed fetches. + pub fn new_unchecked_from_trusted_source( + dispute_statement: DisputeStatement, + candidate_hash: CandidateHash, + session_index: SessionIndex, + validator_public: ValidatorId, + validator_signature: ValidatorSignature, + ) -> Self { + SignedDisputeStatement { + dispute_statement, + candidate_hash, + validator_public, + validator_signature, + session_index, + } + } + /// Create a new `SignedDisputeStatement`, which is only possible by checking the signature. pub fn new_checked( dispute_statement: DisputeStatement, diff --git a/node/subsystem-types/src/messages.rs b/node/subsystem-types/src/messages.rs index ea70d3b2707a..f9c739f9dbdf 100644 --- a/node/subsystem-types/src/messages.rs +++ b/node/subsystem-types/src/messages.rs @@ -643,6 +643,8 @@ pub enum RuntimeApiRequest { ), /// Get information about the BABE epoch the block was included in. CurrentBabeEpoch(RuntimeApiSender), + /// Get all disputes in relation to a relay parent. + FetchOnChainVotes(RuntimeApiSender>), } /// A message to the Runtime API subsystem. diff --git a/primitives/src/v0.rs b/primitives/src/v0.rs index 7e15a0b87308..2000c173b879 100644 --- a/primitives/src/v0.rs +++ b/primitives/src/v0.rs @@ -735,6 +735,7 @@ impl CompactStatement { /// An either implicit or explicit attestation to the validity of a parachain /// candidate. #[derive(Clone, Eq, PartialEq, Decode, Encode, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(MallocSizeOf))] pub enum ValidityAttestation { /// Implicit validity attestation by issuing. /// This corresponds to issuance of a `Candidate` statement. @@ -747,6 +748,18 @@ pub enum ValidityAttestation { } impl ValidityAttestation { + /// Produce the underlying signed payload of the attestation, given the hash of the candidate, + /// which should be known in context. + pub fn to_compact_statement(&self, candidate_hash: CandidateHash) -> CompactStatement { + // Explicit and implicit map directly from + // `ValidityVote::Valid` and `ValidityVote::Issued`, and hence there is a + // `1:1` relationshow which enables the conversion. + match *self { + ValidityAttestation::Implicit(_) => CompactStatement::Seconded(candidate_hash), + ValidityAttestation::Explicit(_) => CompactStatement::Valid(candidate_hash), + } + } + /// Get a reference to the signature. pub fn signature(&self) -> &ValidatorSignature { match *self { diff --git a/primitives/src/v1/mod.rs b/primitives/src/v1/mod.rs index 40ca368fc6e9..cbea6480efef 100644 --- a/primitives/src/v1/mod.rs +++ b/primitives/src/v1/mod.rs @@ -945,6 +945,22 @@ pub struct SessionInfo { pub needed_approvals: u32, } +/// Scraped runtime backing votes and resolved disputes. +#[derive(Clone, Encode, Decode, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(PartialEq, Default, MallocSizeOf))] +pub struct ScrapedOnChainVotes { + /// The session in which the block was included. + pub session: SessionIndex, + /// Set of backing validators for each candidate, represented by its candidate + /// receipt. + pub backing_validators_per_candidate: + Vec<(CandidateReceipt, Vec<(ValidatorIndex, ValidityAttestation)>)>, + /// On-chain-recorded set of disputes. + /// Note that the above `backing_validators` are + /// unrelated to the backers of the disputes candidates. + pub disputes: MultiDisputeStatementSet, +} + /// A vote of approval on a candidate. #[derive(Clone, RuntimeDebug)] pub struct ApprovalVote(pub CandidateHash); @@ -960,7 +976,7 @@ impl ApprovalVote { sp_api::decl_runtime_apis! { /// The API for querying the state of parachains on-chain. - pub trait ParachainHost { + pub trait ParachainHost { /// Get the current validators. fn validators() -> Vec; @@ -1017,6 +1033,9 @@ sp_api::decl_runtime_apis! { /// Get the validation code from its hash. fn validation_code_by_hash(hash: ValidationCodeHash) -> Option; + + /// Scrape dispute relevant from on-chain, backing votes and resolved disputes. + fn on_chain_votes() -> Option>; } } @@ -1182,6 +1201,7 @@ impl From for runtime_primitives::DigestItem { /// /// Statements are either in favor of the candidate's validity or against it. #[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(MallocSizeOf))] pub enum DisputeStatement { /// A valid statement, of the given kind. #[codec(index = 0)] @@ -1251,6 +1271,7 @@ impl DisputeStatement { /// Different kinds of statements of validity on a candidate. #[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(MallocSizeOf))] pub enum ValidDisputeStatementKind { /// An explicit statement issued as part of a dispute. #[codec(index = 0)] @@ -1268,6 +1289,7 @@ pub enum ValidDisputeStatementKind { /// Different kinds of statements of invalidity on a candidate. #[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(MallocSizeOf))] pub enum InvalidDisputeStatementKind { /// An explicit statement issued as part of a dispute. #[codec(index = 0)] @@ -1296,6 +1318,7 @@ impl ExplicitDisputeStatement { /// A set of statements about a specific candidate. #[derive(Encode, Decode, Clone, PartialEq, RuntimeDebug, TypeInfo)] +#[cfg_attr(feature = "std", derive(MallocSizeOf))] pub struct DisputeStatementSet { /// The candidate referenced by this set. pub candidate_hash: CandidateHash, diff --git a/roadmap/implementers-guide/src/node/disputes/dispute-coordinator.md b/roadmap/implementers-guide/src/node/disputes/dispute-coordinator.md index 2b4f936f1b6e..c8bf0153f494 100644 --- a/roadmap/implementers-guide/src/node/disputes/dispute-coordinator.md +++ b/roadmap/implementers-guide/src/node/disputes/dispute-coordinator.md @@ -89,6 +89,8 @@ For each leaf in the leaves update: * Use `iter_with_prefix` to remove everything from `"earliest-session"` up to `state.highest_session - DISPUTE_WINDOW` from the DB under `"candidate-votes"`. * Update `"earliest-session"` to be equal to `state.highest_session - DISPUTE_WINDOW`. * For each new block, explicitly or implicitly, under the new leaf, scan for a dispute digest which indicates a rollback. If a rollback is detected, use the `ChainApi` subsystem to blacklist the chain. +* For each new block, use the `RuntimeApi` to obtain a `ScrapedOnChainVotes` and handle them as if they were provided by means of a incoming `DisputeCoordinatorMessage::ImportStatement` message. + * In the case of a concluded dispute, there are some cases that do not guarantee the presence of a `CandidateReceipt`, where handling has to be defered . ### On `OverseerSignal::Conclude` diff --git a/roadmap/implementers-guide/src/runtime/parainherent.md b/roadmap/implementers-guide/src/runtime/parainherent.md index f9aacc2c3578..cc5e209362e9 100644 --- a/roadmap/implementers-guide/src/runtime/parainherent.md +++ b/roadmap/implementers-guide/src/runtime/parainherent.md @@ -5,6 +5,7 @@ This module is responsible for providing all data given to the runtime by the bl This module does not have the same initialization/finalization concerns as the others, as it only requires that entry points be triggered after all modules have initialized and that finalization happens after entry points are triggered. Both of these are assumptions we have already made about the runtime's order of operations, so this module doesn't need to be initialized or finalized by the `Initializer`. There are a couple of important notes to the operations in this inherent as they relate to disputes. + 1. We don't accept bitfields or backed candidates if in "governance-only" mode from having a local dispute conclude on this fork. 1. When disputes are initiated, we remove the block from pending availability. This allows us to roll back chains to the block before blocks are included as opposed to backing. It's important to do this before processing bitfields. 1. `Inclusion::collect_disputed` is kind of expensive so it's important to gate this on whether there are actually any new disputes. Which should be never. @@ -13,9 +14,15 @@ There are a couple of important notes to the operations in this inherent as they ## Storage ```rust +/// Whether the para inherent was included or not. Included: Option<()>, ``` +```rust +/// Scraped on chain votes to be used in disputes off-chain. +OnChainVotes: Option, +``` + ## Finalization 1. Take (get and clear) the value of `Included`. If it is not `Some`, throw an unrecoverable error. @@ -27,7 +34,7 @@ Included: Option<()>, 1. Invoke `Disputes::provide_multi_dispute_data`. 1. If `Disputes::is_frozen`, return and set `Included` to `Some(())`. 1. If there are any concluded disputes from the current session, invoke `Inclusion::collect_disputed` with the disputed candidates. Annotate each returned core with `FreedReason::Concluded`, sort them, and invoke `Scheduler::free_cores` with them. - 1. The `Bitfields` are first forwarded to the `Inclusion::process_bitfields` routine, returning a set of freed cores. Provide the number of availability cores (`Scheduler::availability_cores().len()`) as the expected number of bits and a `Scheduler::core_para` as a core-lookup to the `process_bitfields` routine. Annotate each of these freed cores with `FreedReason::Concluded`. + 1. The `Bitfields` are first forwarded to the `Inclusion::process_bitfields` routine, returning a set included candidates and the respective freed cores. Provide the number of availability cores (`Scheduler::availability_cores().len()`) as the expected number of bits and a `Scheduler::core_para` as a core-lookup to the `process_bitfields` routine. Annotate each of these freed cores with `FreedReason::Concluded`. 1. For each freed candidate from the `Inclusion::process_bitfields` call, invoke `Disputes::note_included(current_session, candidate)`. 1. If `Scheduler::availability_timeout_predicate` is `Some`, invoke `Inclusion::collect_pending` using it and annotate each of those freed cores with `FreedReason::TimedOut`. 1. Combine and sort the the bitfield-freed cores and the timed-out cores. @@ -36,6 +43,8 @@ Included: Option<()>, 1. Extract `parent_storage_root` from the parent header, 1. If `Disputes::concluded_invalid(current_session, candidate)` is true for any of the `backed_candidates`, fail. 1. Invoke the `Inclusion::process_candidates` routine with the parameters `(parent_storage_root, backed_candidates, Scheduler::scheduled(), Scheduler::group_validators)`. - 1. Call `Scheduler::occupied` using the return value of the `Inclusion::process_candidates` call above, first sorting the list of assigned core indices. + 1. Deconstruct the returned `ProcessedCandidates` value into `occupied` core indices, and backing validators by candidate `backing_validators_per_candidate` represented by `Vec<(CandidateReceipt, Vec<(ValidatorIndex, ValidityAttestation)>)>`. + 1. Set `OnChainVotes` to `ScrapedOnChainVotes`, based on the `current_session`, concluded `disputes`, and `backing_validators_per_candidate`. + 1. Call `Scheduler::occupied` using the `occupied` core indices of the returned above, first sorting the list of assigned core indices. 1. Call the `Ump::process_pending_upward_messages` routine to execute all messages in upward dispatch queues. 1. If all of the above succeeds, set `Included` to `Some(())`. diff --git a/roadmap/implementers-guide/src/types/disputes.md b/roadmap/implementers-guide/src/types/disputes.md index 3043b7615abd..24f152b1308f 100644 --- a/roadmap/implementers-guide/src/types/disputes.md +++ b/roadmap/implementers-guide/src/types/disputes.md @@ -71,3 +71,20 @@ struct DisputeState { concluded_at: Option, } ``` + +## `ScrapedOnChainVotes` + +```rust +/// Type for transcending recorded on-chain +/// dispute relevant votes and conclusions to +/// the off-chain `DisputesCoordinator`. +struct ScrapedOnChainVotes { + /// The session index at which the block was included. + session: SessionIndex, + /// The backing and seconding validity attestations for all candidates, provigind the full candidate receipt. + backing_validators_per_candidate: Vec<(CandidateReceipt, Vec<(ValidatorIndex, ValidityAttestation)>)> + /// Set of concluded disputes that were recorded + /// on chain within the inherent. + disputes: MultiDisputeStatementSet, +} +``` diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index f8b296bf6695..95381b2b561c 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -25,8 +25,8 @@ use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use primitives::v1::{ AccountId, AccountIndex, Balance, BlockNumber, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, - Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, SessionInfo, Signature, - ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, + Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, ScrapedOnChainVotes, + SessionInfo, Signature, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, }; use runtime_common::{ auctions, claims, crowdloan, impls::DealWithFees, paras_registrar, slots, xcm_sender, @@ -1862,6 +1862,10 @@ sp_api::impl_runtime_apis! { fn validation_code_by_hash(hash: ValidationCodeHash) -> Option { parachains_runtime_api_impl::validation_code_by_hash::(hash) } + + fn on_chain_votes() -> Option> { + parachains_runtime_api_impl::on_chain_votes::() + } } impl beefy_primitives::BeefyApi for Runtime { diff --git a/runtime/parachains/src/inclusion.rs b/runtime/parachains/src/inclusion.rs index 7150dbbfb798..dd865bc8572b 100644 --- a/runtime/parachains/src/inclusion.rs +++ b/runtime/parachains/src/inclusion.rs @@ -25,8 +25,9 @@ use frame_support::pallet_prelude::*; use parity_scale_codec::{Decode, Encode}; use primitives::v1::{ AvailabilityBitfield, BackedCandidate, CandidateCommitments, CandidateDescriptor, - CandidateHash, CandidateReceipt, CommittedCandidateReceipt, CoreIndex, GroupIndex, HeadData, - Id as ParaId, SigningContext, UncheckedSignedAvailabilityBitfields, ValidatorIndex, + CandidateHash, CandidateReceipt, CommittedCandidateReceipt, CoreIndex, GroupIndex, Hash, + HeadData, Id as ParaId, SigningContext, UncheckedSignedAvailabilityBitfields, ValidatorIndex, + ValidityAttestation, }; use scale_info::TypeInfo; use sp_runtime::{ @@ -110,6 +111,24 @@ pub trait RewardValidators { fn reward_bitfields(validators: impl IntoIterator); } +/// Helper return type for `process_candidates`. +#[derive(Encode, Decode, PartialEq, TypeInfo)] +#[cfg_attr(test, derive(Debug))] +pub(crate) struct ProcessedCandidates { + pub(crate) core_indices: Vec, + pub(crate) candidate_receipt_with_backing_validator_indices: + Vec<(CandidateReceipt, Vec<(ValidatorIndex, ValidityAttestation)>)>, +} + +impl Default for ProcessedCandidates { + fn default() -> Self { + Self { + core_indices: Vec::new(), + candidate_receipt_with_backing_validator_indices: Vec::new(), + } + } +} + #[frame_support::pallet] pub mod pallet { use super::*; @@ -392,11 +411,11 @@ impl Pallet { candidates: Vec>, scheduled: Vec, group_validators: impl Fn(GroupIndex) -> Option>, - ) -> Result, DispatchError> { + ) -> Result, DispatchError> { ensure!(candidates.len() <= scheduled.len(), Error::::UnscheduledCandidate); if scheduled.is_empty() { - return Ok(Vec::new()) + return Ok(ProcessedCandidates::default()) } let validators = shared::Pallet::::active_validator_keys(); @@ -408,7 +427,11 @@ impl Pallet { let relay_parent_number = now - One::one(); let check_cx = CandidateCheckContext::::new(now, relay_parent_number); - // do all checks before writing storage. + // Collect candidate receipts with backers. + let mut candidate_receipt_with_backing_validator_indices = + Vec::with_capacity(candidates.len()); + + // Do all checks before writing storage. let core_indices_and_backers = { let mut skip = 0; let mut core_indices_and_backers = Vec::with_capacity(candidates.len()); @@ -437,17 +460,17 @@ impl Pallet { // // In the meantime, we do certain sanity checks on the candidates and on the scheduled // list. - 'a: for (candidate_idx, candidate) in candidates.iter().enumerate() { - let para_id = candidate.descriptor().para_id; + 'a: for (candidate_idx, backed_candidate) in candidates.iter().enumerate() { + let para_id = backed_candidate.descriptor().para_id; let mut backers = bitvec::bitvec![BitOrderLsb0, u8; 0; validators.len()]; // we require that the candidate is in the context of the parent block. ensure!( - candidate.descriptor().relay_parent == parent_hash, + backed_candidate.descriptor().relay_parent == parent_hash, Error::::CandidateNotInParentContext, ); ensure!( - candidate.descriptor().check_collator_signature().is_ok(), + backed_candidate.descriptor().check_collator_signature().is_ok(), Error::::NotCollatorSigned, ); @@ -456,24 +479,24 @@ impl Pallet { // A candidate for a parachain without current validation code is not scheduled. .ok_or_else(|| Error::::UnscheduledCandidate)?; ensure!( - candidate.descriptor().validation_code_hash == validation_code_hash, + backed_candidate.descriptor().validation_code_hash == validation_code_hash, Error::::InvalidValidationCodeHash, ); ensure!( - candidate.descriptor().para_head == - candidate.candidate.commitments.head_data.hash(), + backed_candidate.descriptor().para_head == + backed_candidate.candidate.commitments.head_data.hash(), Error::::ParaHeadMismatch, ); if let Err(err) = check_cx.check_validation_outputs( para_id, - &candidate.candidate.commitments.head_data, - &candidate.candidate.commitments.new_validation_code, - candidate.candidate.commitments.processed_downward_messages, - &candidate.candidate.commitments.upward_messages, - T::BlockNumber::from(candidate.candidate.commitments.hrmp_watermark), - &candidate.candidate.commitments.horizontal_messages, + &backed_candidate.candidate.commitments.head_data, + &backed_candidate.candidate.commitments.new_validation_code, + backed_candidate.candidate.commitments.processed_downward_messages, + &backed_candidate.candidate.commitments.upward_messages, + T::BlockNumber::from(backed_candidate.candidate.commitments.hrmp_watermark), + &backed_candidate.candidate.commitments.horizontal_messages, ) { log::debug!( target: LOG_TARGET, @@ -491,7 +514,7 @@ impl Pallet { if para_id == assignment.para_id { if let Some(required_collator) = assignment.required_collator() { ensure!( - required_collator == &candidate.descriptor().collator, + required_collator == &backed_candidate.descriptor().collator, Error::::WrongCollator, ); } @@ -509,14 +532,15 @@ impl Pallet { // We don't want to error out here because it will // brick the relay-chain. So we return early without // doing anything. - return Ok(Vec::new()) + return Ok(ProcessedCandidates::default()) }, }; let expected = persisted_validation_data.hash(); ensure!( - expected == candidate.descriptor().persisted_validation_data_hash, + expected == + backed_candidate.descriptor().persisted_validation_data_hash, Error::::ValidationDataHashMismatch, ); } @@ -536,7 +560,7 @@ impl Pallet { // check the signatures in the backing and that it is a majority. { let maybe_amount_validated = primitives::v1::check_candidate_backing( - &candidate, + &backed_candidate, &signing_context, group_vals.len(), |idx| { @@ -557,17 +581,28 @@ impl Pallet { }, } - for (bit_idx, _) in candidate + let mut backer_idx_and_attestation = + Vec::<(ValidatorIndex, ValidityAttestation)>::with_capacity( + backed_candidate.validator_indices.count_ones(), + ); + let candidate_receipt = backed_candidate.receipt(); + + for ((bit_idx, _), attestation) in backed_candidate .validator_indices .iter() .enumerate() .filter(|(_, signed)| **signed) + .zip(backed_candidate.validity_votes.iter().cloned()) { - let val_idx = - group_vals.get(bit_idx).expect("this query done above; qed"); + let val_idx = group_vals + .get(bit_idx) + .expect("this query succeeded above; qed"); + backer_idx_and_attestation.push((*val_idx, attestation)); backers.set(val_idx.0 as _, true); } + candidate_receipt_with_backing_validator_indices + .push((candidate_receipt, backer_idx_and_attestation)); } core_indices_and_backers.push(( @@ -625,7 +660,7 @@ impl Pallet { descriptor, availability_votes, relay_parent_number, - backers, + backers: backers.to_bitvec(), backed_in_number: check_cx.now, backing_group: group, }, @@ -633,7 +668,10 @@ impl Pallet { >::insert(¶_id, commitments); } - Ok(core_indices) + Ok(ProcessedCandidates:: { + core_indices, + candidate_receipt_with_backing_validator_indices, + }) } /// Run the acceptance criteria checks on the given candidate commitments. @@ -2386,9 +2424,32 @@ mod tests { BackingKind::Threshold, )); - let occupied_cores = ParaInclusion::process_candidates( + let backed_candidates = vec![backed_a, backed_b, backed_c]; + let get_backing_group_idx = { + // the order defines the group implicitly for this test case + let backed_candidates_with_groups = backed_candidates + .iter() + .enumerate() + .map(|(idx, backed_candidate)| (backed_candidate.hash(), GroupIndex(idx as _))) + .collect::>(); + + move |candidate_hash_x: CandidateHash| -> Option { + backed_candidates_with_groups.iter().find_map(|(candidate_hash, grp)| { + if *candidate_hash == candidate_hash_x { + Some(*grp) + } else { + None + } + }) + } + }; + + let ProcessedCandidates { + core_indices: occupied_cores, + candidate_receipt_with_backing_validator_indices, + } = ParaInclusion::process_candidates( Default::default(), - vec![backed_a, backed_b, backed_c], + backed_candidates.clone(), vec![ chain_a_assignment.clone(), chain_b_assignment.clone(), @@ -2403,6 +2464,55 @@ mod tests { vec![CoreIndex::from(0), CoreIndex::from(1), CoreIndex::from(2)] ); + // Transform the votes into the setup we expect + let expected = { + let mut intermediate = std::collections::HashMap::< + CandidateHash, + (CandidateReceipt, Vec<(ValidatorIndex, ValidityAttestation)>), + >::new(); + backed_candidates.into_iter().for_each(|backed_candidate| { + let candidate_receipt_with_backers = intermediate + .entry(backed_candidate.hash()) + .or_insert_with(|| (backed_candidate.receipt(), Vec::new())); + + assert_eq!( + backed_candidate.validity_votes.len(), + backed_candidate.validator_indices.count_ones() + ); + candidate_receipt_with_backers.1.extend( + backed_candidate + .validator_indices + .iter() + .enumerate() + .filter(|(_, signed)| **signed) + .zip(backed_candidate.validity_votes.iter().cloned()) + .filter_map(|((validator_index_within_group, _), attestation)| { + let grp_idx = + get_backing_group_idx(backed_candidate.hash()).unwrap(); + group_validators(grp_idx).map(|validator_indices| { + (validator_indices[validator_index_within_group], attestation) + }) + }), + ); + }); + intermediate.into_values().collect::>() + }; + + // sort, since we use a hashmap above + let assure_candidate_sorting = |mut candidate_receipts_with_backers: Vec<( + CandidateReceipt, + Vec<(ValidatorIndex, ValidityAttestation)>, + )>| { + candidate_receipts_with_backers.sort_by(|(cr1, _), (cr2, _)| { + cr1.descriptor().para_id.cmp(&cr2.descriptor().para_id) + }); + candidate_receipts_with_backers + }; + assert_eq!( + assure_candidate_sorting(expected), + assure_candidate_sorting(candidate_receipt_with_backing_validator_indices) + ); + assert_eq!( >::get(&chain_a), Some(CandidatePendingAvailability { @@ -2530,13 +2640,14 @@ mod tests { BackingKind::Threshold, )); - let occupied_cores = ParaInclusion::process_candidates( - Default::default(), - vec![backed_a], - vec![chain_a_assignment.clone()], - &group_validators, - ) - .expect("candidates scheduled, in order, and backed"); + let ProcessedCandidates { core_indices: occupied_cores, .. } = + ParaInclusion::process_candidates( + Default::default(), + vec![backed_a], + vec![chain_a_assignment.clone()], + &group_validators, + ) + .expect("candidates scheduled, in order, and backed"); assert_eq!(occupied_cores, vec![CoreIndex::from(0)]); diff --git a/runtime/parachains/src/paras_inherent.rs b/runtime/parachains/src/paras_inherent.rs index cbffb9ff7937..c866a077ccb2 100644 --- a/runtime/parachains/src/paras_inherent.rs +++ b/runtime/parachains/src/paras_inherent.rs @@ -33,7 +33,8 @@ use frame_support::{ }; use frame_system::pallet_prelude::*; use primitives::v1::{ - BackedCandidate, InherentData as ParachainsInherentData, PARACHAINS_INHERENT_IDENTIFIER, + BackedCandidate, InherentData as ParachainsInherentData, ScrapedOnChainVotes, + PARACHAINS_INHERENT_IDENTIFIER, }; use sp_runtime::traits::Header as HeaderT; use sp_std::prelude::*; @@ -79,6 +80,11 @@ pub mod pallet { #[pallet::storage] pub(crate) type Included = StorageValue<_, ()>; + /// Scraped on chain data for extracting resolved disputes as well as backing votes. + #[pallet::storage] + #[pallet::getter(fn on_chain_votes)] + pub(crate) type OnChainVotes = StorageValue<_, ScrapedOnChainVotes>; + #[pallet::hooks] impl Hooks> for Pallet { fn on_initialize(_: T::BlockNumber) -> Weight { @@ -180,7 +186,7 @@ pub mod pallet { .map(|s| (s.session, s.candidate_hash)) .collect(); - let _ = T::DisputesHandler::provide_multi_dispute_data(disputes)?; + let _ = T::DisputesHandler::provide_multi_dispute_data(disputes.clone())?; if T::DisputesHandler::is_frozen() { // The relay chain we are currently on is invalid. Proceed no further on parachains. Included::::set(Some(())); @@ -262,13 +268,24 @@ pub mod pallet { // Process backed candidates according to scheduled cores. let parent_storage_root = parent_header.state_root().clone(); - let occupied = >::process_candidates( + let inclusion::ProcessedCandidates::<::Hash> { + core_indices: occupied, + candidate_receipt_with_backing_validator_indices, + } = >::process_candidates( parent_storage_root, backed_candidates, >::scheduled(), >::group_validators, )?; + // The number of disputes included in a block is + // limited by the weight as well as the number of candidate blocks. + OnChainVotes::::put(ScrapedOnChainVotes::<::Hash> { + session: current_session, + backing_validators_per_candidate: candidate_receipt_with_backing_validator_indices, + disputes, + }); + // Note which of the scheduled cores were actually occupied by a backed candidate. >::occupied(&occupied); diff --git a/runtime/parachains/src/runtime_api_impl/v1.rs b/runtime/parachains/src/runtime_api_impl/v1.rs index 3100a324f3c5..5909ea55290b 100644 --- a/runtime/parachains/src/runtime_api_impl/v1.rs +++ b/runtime/parachains/src/runtime_api_impl/v1.rs @@ -18,14 +18,15 @@ //! functions. use crate::{ - configuration, dmp, hrmp, inclusion, initializer, paras, scheduler, session_info, shared, + configuration, dmp, hrmp, inclusion, initializer, paras, paras_inherent, scheduler, + session_info, shared, }; use primitives::v1::{ AuthorityDiscoveryId, CandidateEvent, CommittedCandidateReceipt, CoreIndex, CoreOccupied, CoreState, GroupIndex, GroupRotationInfo, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, OccupiedCore, OccupiedCoreAssumption, PersistedValidationData, - ScheduledCore, SessionIndex, SessionInfo, ValidationCode, ValidationCodeHash, ValidatorId, - ValidatorIndex, + ScheduledCore, ScrapedOnChainVotes, SessionIndex, SessionInfo, ValidationCode, + ValidationCodeHash, ValidatorId, ValidatorIndex, }; use sp_runtime::traits::One; use sp_std::{collections::btree_map::BTreeMap, prelude::*}; @@ -329,3 +330,8 @@ pub fn validation_code_by_hash( ) -> Option { >::code_by_hash(hash) } + +/// Disputes imported via means of on-chain imports. +pub fn on_chain_votes() -> Option> { + >::on_chain_votes() +} diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 20f8ac789bf9..0c4a7ac38fbc 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -54,8 +54,8 @@ use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use primitives::v1::{ AccountId, AccountIndex, Balance, BlockNumber, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, - Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, SessionInfo, Signature, - ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, + Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, ScrapedOnChainVotes, + SessionInfo, Signature, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, }; use sp_core::{ u32_trait::{_1, _2, _3, _4, _5}, @@ -1694,6 +1694,10 @@ sp_api::impl_runtime_apis! { fn validation_code_by_hash(hash: ValidationCodeHash) -> Option { parachains_runtime_api_impl::validation_code_by_hash::(hash) } + + fn on_chain_votes() -> Option> { + parachains_runtime_api_impl::on_chain_votes::() + } } impl beefy_primitives::BeefyApi for Runtime { diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index 5825bca2bbd0..a7d1014f10c9 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -38,8 +38,9 @@ use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use primitives::v1::{ AccountId, AccountIndex, Balance, BlockNumber, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash, Id, InboundDownwardMessage, InboundHrmpMessage, Moment, - Nonce, OccupiedCoreAssumption, PersistedValidationData, SessionInfo as SessionInfoData, - Signature, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, + Nonce, OccupiedCoreAssumption, PersistedValidationData, ScrapedOnChainVotes, + SessionInfo as SessionInfoData, Signature, ValidationCode, ValidationCodeHash, ValidatorId, + ValidatorIndex, }; use runtime_common::{ auctions, crowdloan, impls::ToAuthor, paras_registrar, paras_sudo_wrapper, slots, xcm_sender, @@ -1285,6 +1286,10 @@ sp_api::impl_runtime_apis! { fn validation_code_by_hash(hash: ValidationCodeHash) -> Option { runtime_api_impl::validation_code_by_hash::(hash) } + + fn on_chain_votes() -> Option> { + runtime_api_impl::on_chain_votes::() + } } impl fg_primitives::GrandpaApi for Runtime { diff --git a/runtime/test-runtime/src/lib.rs b/runtime/test-runtime/src/lib.rs index fd4742136c13..bb1db523d33e 100644 --- a/runtime/test-runtime/src/lib.rs +++ b/runtime/test-runtime/src/lib.rs @@ -48,8 +48,8 @@ use primitives::v1::{ AccountId, AccountIndex, Balance, BlockNumber, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash as HashT, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, - SessionInfo as SessionInfoData, Signature, ValidationCode, ValidationCodeHash, ValidatorId, - ValidatorIndex, + ScrapedOnChainVotes, SessionInfo as SessionInfoData, Signature, ValidationCode, + ValidationCodeHash, ValidatorId, ValidatorIndex, }; use runtime_common::{ claims, paras_sudo_wrapper, BlockHashCount, BlockLength, BlockWeights, SlowAdjustingFeeUpdate, @@ -846,6 +846,10 @@ sp_api::impl_runtime_apis! { fn validation_code_by_hash(hash: ValidationCodeHash) -> Option { runtime_impl::validation_code_by_hash::(hash) } + + fn on_chain_votes() -> Option> { + runtime_impl::on_chain_votes::() + } } impl beefy_primitives::BeefyApi for Runtime { diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index 23c085f5783a..e0ef2e3d1f5f 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -26,8 +26,8 @@ use parity_scale_codec::{Decode, Encode, MaxEncodedLen}; use primitives::v1::{ AccountId, AccountIndex, Balance, BlockNumber, CandidateEvent, CommittedCandidateReceipt, CoreState, GroupRotationInfo, Hash, Id as ParaId, InboundDownwardMessage, InboundHrmpMessage, - Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, SessionInfo, Signature, - ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, + Moment, Nonce, OccupiedCoreAssumption, PersistedValidationData, ScrapedOnChainVotes, + SessionInfo, Signature, ValidationCode, ValidationCodeHash, ValidatorId, ValidatorIndex, }; use runtime_common::{ auctions, crowdloan, impls::ToAuthor, paras_registrar, paras_sudo_wrapper, slots, xcm_sender, @@ -1284,6 +1284,10 @@ sp_api::impl_runtime_apis! { fn validation_code_by_hash(hash: ValidationCodeHash) -> Option { parachains_runtime_api_impl::validation_code_by_hash::(hash) } + + fn on_chain_votes() -> Option> { + parachains_runtime_api_impl::on_chain_votes::() + } } impl beefy_primitives::BeefyApi for Runtime { diff --git a/scripts/gitlab/lingua.dic b/scripts/gitlab/lingua.dic index a32366d63ee6..7c50d1fbc666 100644 --- a/scripts/gitlab/lingua.dic +++ b/scripts/gitlab/lingua.dic @@ -180,6 +180,7 @@ phragmen picosecond/SM PoA/MS polkadot/MS +Polkadot/MS PoS/MS PoV/MS PoW/MS @@ -214,6 +215,7 @@ rpc RPC/MS runtime/MS rustc/MS +sybil SAFT scalable scalability diff --git a/statement-table/src/generic.rs b/statement-table/src/generic.rs index 9120010986a4..db40c88d75c1 100644 --- a/statement-table/src/generic.rs +++ b/statement-table/src/generic.rs @@ -172,12 +172,12 @@ pub type MisbehaviorFor = Misbehavior< ::Signature, >; -// kinds of votes for validity +// Kinds of votes for validity on a particular candidate. #[derive(Clone, PartialEq, Eq)] enum ValidityVote { - // implicit validity vote by issuing + // Implicit validity vote. Issued(Signature), - // direct validity vote + // Direct validity vote. Valid(Signature), } From 054404b7f043937c4ad18bc415b7336e9608a640 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Thu, 7 Oct 2021 09:49:20 +0000 Subject: [PATCH 14/40] Bump trybuild from 1.0.45 to 1.0.48 (#4031) Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.45 to 1.0.48. - [Release notes](https://github.com/dtolnay/trybuild/releases) - [Commits](https://github.com/dtolnay/trybuild/compare/1.0.45...1.0.48) --- updated-dependencies: - dependency-name: trybuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- node/overseer/overseer-gen/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b3830c482325..cea3978fa09e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11007,9 +11007,9 @@ dependencies = [ [[package]] name = "trybuild" -version = "1.0.45" +version = "1.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5bdaf2a1d317f3d58b44b31c7f6436b9b9acafe7bddfeace50897c2b804d7792" +checksum = "4e6088028c71b42d26126c208a072670bcb964cfe73904c331b05e9c26080470" dependencies = [ "glob", "lazy_static", diff --git a/node/overseer/overseer-gen/Cargo.toml b/node/overseer/overseer-gen/Cargo.toml index dfa1d8a508f4..c03b374bddf8 100644 --- a/node/overseer/overseer-gen/Cargo.toml +++ b/node/overseer/overseer-gen/Cargo.toml @@ -19,4 +19,4 @@ futures-timer = "3.0.2" pin-project = "1.0" [dev-dependencies] -trybuild = "1.0.45" +trybuild = "1.0.48" From 105b9f7b1eb78596da56edfd739557493df76a6a Mon Sep 17 00:00:00 2001 From: Arkadiy Paronyan Date: Thu, 7 Oct 2021 12:46:42 +0200 Subject: [PATCH 15/40] Update for warp sync (#3564) * Update for warp sync * update Substrate Co-authored-by: parity-processbot <> --- Cargo.lock | 340 ++++++++++++++++--------------- node/core/chain-api/src/tests.rs | 1 + node/service/src/lib.rs | 7 + 3 files changed, 181 insertions(+), 167 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index cea3978fa09e..a8b54600b942 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -461,7 +461,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "beefy-primitives", "fnv", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -509,12 +509,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -1497,6 +1497,12 @@ dependencies = [ "syn", ] +[[package]] +name = "diff" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "0e25ea47919b1560c4e3b7fe0aaab9becf5b84a10325ddf7db0f0ba5e1026499" + [[package]] name = "difference" version = "2.0.0" @@ -1918,7 +1924,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", ] @@ -1936,7 +1942,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -1956,7 +1962,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "Inflector", "chrono", @@ -1982,7 +1988,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -1996,7 +2002,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -2024,7 +2030,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "bitflags", "frame-metadata", @@ -2051,7 +2057,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2063,7 +2069,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2075,7 +2081,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro2", "quote", @@ -2085,7 +2091,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2108,7 +2114,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -2119,7 +2125,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "log", @@ -2136,7 +2142,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -2151,7 +2157,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "sp-api", @@ -2160,7 +2166,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "sp-api", @@ -2373,7 +2379,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "chrono", "frame-election-provider-support", @@ -4602,7 +4608,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4616,7 +4622,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -4632,7 +4638,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -4647,7 +4653,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4671,7 +4677,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4691,7 +4697,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4706,7 +4712,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "beefy-primitives", "frame-support", @@ -4722,7 +4728,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4747,7 +4753,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4832,7 +4838,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4849,7 +4855,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4865,7 +4871,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4889,7 +4895,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4907,7 +4913,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4922,7 +4928,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4945,7 +4951,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4961,7 +4967,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4981,7 +4987,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -4998,7 +5004,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5015,7 +5021,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5033,7 +5039,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5049,7 +5055,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5066,7 +5072,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5081,7 +5087,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5095,7 +5101,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5112,7 +5118,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5135,7 +5141,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5150,7 +5156,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5164,7 +5170,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5180,7 +5186,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5201,7 +5207,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5217,7 +5223,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5231,7 +5237,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5254,7 +5260,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5265,7 +5271,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "log", "sp-arithmetic", @@ -5274,7 +5280,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5288,7 +5294,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5306,7 +5312,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5325,7 +5331,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-support", "frame-system", @@ -5342,7 +5348,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5359,7 +5365,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5370,7 +5376,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5387,7 +5393,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5403,7 +5409,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-benchmarking", "frame-support", @@ -5464,9 +5470,9 @@ dependencies = [ [[package]] name = "parity-db" -version = "0.3.1" +version = "0.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "241f9c5d25063080f2c02846221f13e1d0e5e18fa00c32c234aad585b744ee55" +checksum = "91b679c6acc14fac74382942e2b73bea441686a33430b951ea03b5aeb6a7f254" dependencies = [ "blake2-rfc", "crc32fast", @@ -7290,13 +7296,13 @@ dependencies = [ [[package]] name = "pretty_assertions" -version = "0.6.1" +version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3f81e1644e1b54f5a68959a29aa86cde704219254669da328ecfdf6a1f09d427" +checksum = "ec0cfe1b2403f172ba0f234e500906ee0a3e493fb81092dac23ebefe129301cc" dependencies = [ - "ansi_term 0.11.0", + "ansi_term 0.12.1", "ctor", - "difference", + "diff", "output_vt100", ] @@ -7800,7 +7806,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8063,7 +8069,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "log", "sp-core", @@ -8074,7 +8080,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "derive_more", @@ -8101,7 +8107,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8124,7 +8130,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8140,7 +8146,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8156,7 +8162,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8167,7 +8173,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "chrono", "fdlimit", @@ -8205,7 +8211,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "fnv", "futures 0.3.17", @@ -8233,7 +8239,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "hash-db", "kvdb", @@ -8258,7 +8264,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "futures 0.3.17", @@ -8282,7 +8288,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "derive_more", @@ -8325,7 +8331,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "derive_more", "futures 0.3.17", @@ -8349,7 +8355,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8362,7 +8368,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "assert_matches", "async-trait", @@ -8396,7 +8402,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "futures 0.3.17", @@ -8422,7 +8428,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "sc-client-api", "sp-authorship", @@ -8433,7 +8439,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8459,7 +8465,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "derive_more", "environmental", @@ -8477,7 +8483,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "log", "parity-scale-codec", @@ -8493,7 +8499,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8511,7 +8517,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "derive_more", @@ -8548,7 +8554,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "derive_more", "finality-grandpa", @@ -8572,7 +8578,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8589,7 +8595,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "derive_more", @@ -8604,7 +8610,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "hash-db", "parity-scale-codec", @@ -8622,7 +8628,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-std", "async-trait", @@ -8673,7 +8679,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8689,7 +8695,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "bytes 1.0.1", "fnv", @@ -8716,7 +8722,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "libp2p", @@ -8729,7 +8735,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8738,7 +8744,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "hash-db", @@ -8769,7 +8775,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8794,7 +8800,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8811,7 +8817,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "directories", @@ -8876,7 +8882,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "log", "parity-scale-codec", @@ -8890,7 +8896,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8912,7 +8918,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "chrono", "futures 0.3.17", @@ -8930,7 +8936,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8960,7 +8966,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8971,7 +8977,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "intervalier", @@ -8998,7 +9004,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "derive_more", "futures 0.3.17", @@ -9012,7 +9018,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9464,7 +9470,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "hash-db", "log", @@ -9481,7 +9487,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9493,7 +9499,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -9506,7 +9512,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "integer-sqrt", "num-traits", @@ -9521,7 +9527,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -9534,7 +9540,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "parity-scale-codec", @@ -9546,7 +9552,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "sp-api", @@ -9558,7 +9564,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "log", @@ -9576,7 +9582,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "futures 0.3.17", @@ -9595,7 +9601,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "merlin", @@ -9618,7 +9624,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -9629,7 +9635,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9641,7 +9647,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "base58", "blake2-rfc", @@ -9686,7 +9692,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9695,7 +9701,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro2", "quote", @@ -9705,7 +9711,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "environmental", "parity-scale-codec", @@ -9716,7 +9722,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "finality-grandpa", "log", @@ -9734,7 +9740,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9748,7 +9754,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "hash-db", @@ -9772,7 +9778,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "lazy_static", "sp-core", @@ -9783,7 +9789,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "derive_more", @@ -9800,7 +9806,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "zstd", ] @@ -9808,7 +9814,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -9823,7 +9829,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9834,7 +9840,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "sp-api", "sp-core", @@ -9844,7 +9850,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "backtrace", ] @@ -9852,7 +9858,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "rustc-hash", "serde", @@ -9862,7 +9868,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "either", "hash256-std-hasher", @@ -9884,7 +9890,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9901,7 +9907,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9913,7 +9919,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "serde", "serde_json", @@ -9922,7 +9928,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -9936,7 +9942,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "scale-info", @@ -9947,7 +9953,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "hash-db", "log", @@ -9970,12 +9976,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9988,7 +9994,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "log", "sp-core", @@ -10001,7 +10007,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10017,7 +10023,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "erased-serde", "log", @@ -10035,7 +10041,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "sp-api", "sp-runtime", @@ -10044,7 +10050,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "log", @@ -10060,7 +10066,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "hash-db", "memory-db", @@ -10075,7 +10081,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10091,7 +10097,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10102,7 +10108,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10298,7 +10304,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "platforms", ] @@ -10306,7 +10312,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10328,7 +10334,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-std", "derive_more", @@ -10342,7 +10348,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "async-trait", "futures 0.3.17", @@ -10369,7 +10375,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10379,7 +10385,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10390,7 +10396,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10543,7 +10549,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "frame-system", "futures 0.3.17", @@ -10984,7 +10990,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#4e5b971771eb9b8a10a95c5540292b1b47874ce9" +source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" dependencies = [ "jsonrpsee-ws-client", "log", diff --git a/node/core/chain-api/src/tests.rs b/node/core/chain-api/src/tests.rs index 22b6dbed546a..3f28a3e269f3 100644 --- a/node/core/chain-api/src/tests.rs +++ b/node/core/chain-api/src/tests.rs @@ -96,6 +96,7 @@ impl HeaderBackend for TestClient { finalized_number, number_leaves: 0, finalized_state: None, + block_gap: None, } } fn number(&self, hash: Hash) -> sp_blockchain::Result> { diff --git a/node/service/src/lib.rs b/node/service/src/lib.rs index a1005f284686..28468cfa021e 100644 --- a/node/service/src/lib.rs +++ b/node/service/src/lib.rs @@ -788,9 +788,16 @@ where let (dispute_req_receiver, cfg) = IncomingRequest::get_config_receiver(); config.network.request_response_protocols.push(cfg); + let grandpa_hard_forks = if config.chain_spec.is_kusama() { + grandpa_support::kusama_hard_forks() + } else { + Vec::new() + }; + let warp_sync = Arc::new(grandpa::warp_proof::NetworkProvider::new( backend.clone(), import_setup.1.shared_authority_set().clone(), + grandpa_hard_forks, )); let (network, system_rpc_tx, network_starter) = From dd4b2e6a34a08a01b876d14641e99e7011be3463 Mon Sep 17 00:00:00 2001 From: Sergei Shulepov Date: Thu, 7 Oct 2021 18:02:29 +0200 Subject: [PATCH 16/40] Polkadot: Remove configuration's runtime migration and just set StorageVersion (#4035) * wip * Remove unused members --- runtime/parachains/src/configuration.rs | 1 + .../parachains/src/configuration/migration.rs | 292 +----------------- runtime/polkadot/src/lib.rs | 20 ++ 3 files changed, 24 insertions(+), 289 deletions(-) diff --git a/runtime/parachains/src/configuration.rs b/runtime/parachains/src/configuration.rs index 3a58ddfdc8f5..f2a70a1b0635 100644 --- a/runtime/parachains/src/configuration.rs +++ b/runtime/parachains/src/configuration.rs @@ -33,6 +33,7 @@ pub use pallet::*; pub mod migration; +#[allow(dead_code)] const LOG_TARGET: &str = "runtime::configuration"; /// All configuration of the runtime with respect to parachains and parathreads. diff --git a/runtime/parachains/src/configuration/migration.rs b/runtime/parachains/src/configuration/migration.rs index 6909eecc15a9..ce7959053d1b 100644 --- a/runtime/parachains/src/configuration/migration.rs +++ b/runtime/parachains/src/configuration/migration.rs @@ -16,299 +16,13 @@ //! A module that is responsible for migration of storage. -use crate::configuration::{self, Config, Pallet, Store}; -use frame_support::{pallet_prelude::*, traits::StorageVersion, weights::Weight}; -use frame_system::pallet_prelude::BlockNumberFor; +use crate::configuration::Config; +use frame_support::{traits::StorageVersion, weights::Weight}; /// The current storage version. pub const STORAGE_VERSION: StorageVersion = StorageVersion::new(1); /// Migrates the pallet storage to the most recent version, checking and setting the `StorageVersion`. pub fn migrate_to_latest() -> Weight { - let mut weight = 0; - - if StorageVersion::get::>() == 0 { - weight += migrate_to_v1::(); - StorageVersion::new(1).put::>(); - } - - weight -} - -mod v0 { - use super::*; - use primitives::v1::{Balance, SessionIndex}; - - #[derive(parity_scale_codec::Encode, parity_scale_codec::Decode, Debug)] - pub struct HostConfiguration { - pub max_code_size: u32, - pub max_head_data_size: u32, - pub max_upward_queue_count: u32, - pub max_upward_queue_size: u32, - pub max_upward_message_size: u32, - pub max_upward_message_num_per_candidate: u32, - pub hrmp_max_message_num_per_candidate: u32, - pub validation_upgrade_frequency: BlockNumber, - pub validation_upgrade_delay: BlockNumber, - pub max_pov_size: u32, - pub max_downward_message_size: u32, - pub ump_service_total_weight: Weight, - pub hrmp_max_parachain_outbound_channels: u32, - pub hrmp_max_parathread_outbound_channels: u32, - pub _hrmp_open_request_ttl: u32, - pub hrmp_sender_deposit: Balance, - pub hrmp_recipient_deposit: Balance, - pub hrmp_channel_max_capacity: u32, - pub hrmp_channel_max_total_size: u32, - pub hrmp_max_parachain_inbound_channels: u32, - pub hrmp_max_parathread_inbound_channels: u32, - pub hrmp_channel_max_message_size: u32, - pub code_retention_period: BlockNumber, - pub parathread_cores: u32, - pub parathread_retries: u32, - pub group_rotation_frequency: BlockNumber, - pub chain_availability_period: BlockNumber, - pub thread_availability_period: BlockNumber, - pub scheduling_lookahead: u32, - pub max_validators_per_core: Option, - pub max_validators: Option, - pub dispute_period: SessionIndex, - pub dispute_post_conclusion_acceptance_period: BlockNumber, - pub dispute_max_spam_slots: u32, - pub dispute_conclusion_by_time_out_period: BlockNumber, - pub no_show_slots: u32, - pub n_delay_tranches: u32, - pub zeroth_delay_tranche_width: u32, - pub needed_approvals: u32, - pub relay_vrf_modulo_samples: u32, - } - - impl> Default for HostConfiguration { - fn default() -> Self { - HostConfiguration { - group_rotation_frequency: 1u32.into(), - chain_availability_period: 1u32.into(), - thread_availability_period: 1u32.into(), - no_show_slots: 1u32.into(), - validation_upgrade_frequency: Default::default(), - validation_upgrade_delay: Default::default(), - code_retention_period: Default::default(), - max_code_size: Default::default(), - max_pov_size: Default::default(), - max_head_data_size: Default::default(), - parathread_cores: Default::default(), - parathread_retries: Default::default(), - scheduling_lookahead: Default::default(), - max_validators_per_core: Default::default(), - max_validators: None, - dispute_period: 6, - dispute_post_conclusion_acceptance_period: 100.into(), - dispute_max_spam_slots: 2, - dispute_conclusion_by_time_out_period: 200.into(), - n_delay_tranches: Default::default(), - zeroth_delay_tranche_width: Default::default(), - needed_approvals: Default::default(), - relay_vrf_modulo_samples: Default::default(), - max_upward_queue_count: Default::default(), - max_upward_queue_size: Default::default(), - max_downward_message_size: Default::default(), - ump_service_total_weight: Default::default(), - max_upward_message_size: Default::default(), - max_upward_message_num_per_candidate: Default::default(), - _hrmp_open_request_ttl: Default::default(), - hrmp_sender_deposit: Default::default(), - hrmp_recipient_deposit: Default::default(), - hrmp_channel_max_capacity: Default::default(), - hrmp_channel_max_total_size: Default::default(), - hrmp_max_parachain_inbound_channels: Default::default(), - hrmp_max_parathread_inbound_channels: Default::default(), - hrmp_channel_max_message_size: Default::default(), - hrmp_max_parachain_outbound_channels: Default::default(), - hrmp_max_parathread_outbound_channels: Default::default(), - hrmp_max_message_num_per_candidate: Default::default(), - } - } - } -} - -/// Migrates the `HostConfiguration` from v0 (with deprecated `hrmp_open_request_ttl` and without -/// `ump_max_individual_weight`) to v1 (without HRMP TTL and with max individual weight). -/// Uses the `Default` implementation of `HostConfiguration` to choose a value for `ump_max_individual_weight`. -/// -/// NOTE: Only use this function if you know what you are doing. Default to using `migrate_to_latest`. -pub fn migrate_to_v1() -> Weight { - // Unusual formatting is justified: - // - make it easier to verify that fields assign what they supposed to assign. - // - this code is transient and will be removed after all migrations are done. - // - this code is important enough to optimize for legibility sacrificing consistency. - #[rustfmt::skip] - let translate = - |pre: v0::HostConfiguration>| -> configuration::HostConfiguration> - { - super::HostConfiguration { - -max_code_size : pre.max_code_size, -max_head_data_size : pre.max_head_data_size, -max_upward_queue_count : pre.max_upward_queue_count, -max_upward_queue_size : pre.max_upward_queue_size, -max_upward_message_size : pre.max_upward_message_size, -max_upward_message_num_per_candidate : pre.max_upward_message_num_per_candidate, -hrmp_max_message_num_per_candidate : pre.hrmp_max_message_num_per_candidate, -validation_upgrade_frequency : pre.validation_upgrade_frequency, -validation_upgrade_delay : pre.validation_upgrade_delay, -max_pov_size : pre.max_pov_size, -max_downward_message_size : pre.max_downward_message_size, -ump_service_total_weight : pre.ump_service_total_weight, -hrmp_max_parachain_outbound_channels : pre.hrmp_max_parachain_outbound_channels, -hrmp_max_parathread_outbound_channels : pre.hrmp_max_parathread_outbound_channels, -hrmp_sender_deposit : pre.hrmp_sender_deposit, -hrmp_recipient_deposit : pre.hrmp_recipient_deposit, -hrmp_channel_max_capacity : pre.hrmp_channel_max_capacity, -hrmp_channel_max_total_size : pre.hrmp_channel_max_total_size, -hrmp_max_parachain_inbound_channels : pre.hrmp_max_parachain_inbound_channels, -hrmp_max_parathread_inbound_channels : pre.hrmp_max_parathread_inbound_channels, -hrmp_channel_max_message_size : pre.hrmp_channel_max_message_size, -code_retention_period : pre.code_retention_period, -parathread_cores : pre.parathread_cores, -parathread_retries : pre.parathread_retries, -group_rotation_frequency : pre.group_rotation_frequency, -chain_availability_period : pre.chain_availability_period, -thread_availability_period : pre.thread_availability_period, -scheduling_lookahead : pre.scheduling_lookahead, -max_validators_per_core : pre.max_validators_per_core, -max_validators : pre.max_validators, -dispute_period : pre.dispute_period, -dispute_post_conclusion_acceptance_period: pre.dispute_post_conclusion_acceptance_period, -dispute_max_spam_slots : pre.dispute_max_spam_slots, -dispute_conclusion_by_time_out_period : pre.dispute_conclusion_by_time_out_period, -no_show_slots : pre.no_show_slots, -n_delay_tranches : pre.n_delay_tranches, -zeroth_delay_tranche_width : pre.zeroth_delay_tranche_width, -needed_approvals : pre.needed_approvals, -relay_vrf_modulo_samples : pre.relay_vrf_modulo_samples, - -ump_max_individual_weight: >>::default().ump_max_individual_weight, - } - }; - - if let Err(_) = as Store>::ActiveConfig::translate(|pre| pre.map(translate)) { - // `Err` is returned when the pre-migration type cannot be deserialized. This - // cannot happen if the migration runs correctly, i.e. against the expected version. - // - // This happening almost surely will lead to a panic somewhere else. Corruption seems - // to be unlikely to be caused by this. So we just log. Maybe it'll work out still? - log::error!( - target: configuration::LOG_TARGET, - "unexpected error when performing translation of the configuration type during storage upgrade to v1." - ); - } - - T::DbWeight::get().reads_writes(1, 1) -} - -#[cfg(test)] -mod tests { - use super::*; - use crate::mock::{new_test_ext, Test}; - - #[test] - fn v0_deserialized_from_actual_data() { - // Fetched at Kusama 9,207,703 (0xbfe5227324c08b3ab67e0473a360acbce43efbd7b42041d0033adaf9ff2c5330) - // - // This exceeds the maximal line width length, but that's fine, since this is not code and - // doesn't need to be read and also leaving it as one line allows to easily copy it. - let raw_config = hex_literal::hex!["0000a000005000000a00000000c8000000c800000a0000000a00000040380000580200000000500000c8000000e87648170000000a0000000000000048000000c09e5d9a2f3d00000000000000000000c09e5d9a2f3d00000000000000000000e8030000009001000a00000000000000009001008070000000000000000000000a0000000a0000000a00000001000000010500000001c8000000060000005802000002000000580200000200000059000000000000001e00000028000000"]; - - let v0 = v0::HostConfiguration::::decode(&mut &raw_config[..]) - .unwrap(); - - // We check only a sample of the values here. If we missed any fields or messed up data types - // that would skew all the fields coming after. - assert_eq!(v0.max_code_size, 10_485_760); - assert_eq!(v0.validation_upgrade_frequency, 14_400); - assert_eq!(v0.max_pov_size, 5_242_880); - assert_eq!(v0._hrmp_open_request_ttl, 72); - assert_eq!(v0.hrmp_channel_max_message_size, 102_400); - assert_eq!(v0.dispute_max_spam_slots, 2); - assert_eq!(v0.n_delay_tranches, 89); - assert_eq!(v0.relay_vrf_modulo_samples, 40); - } - - #[test] - fn test_migrate_to_v1() { - // Host configuration has lots of fields. However, in this migration we add one and remove one - // field. The most important part to check are a couple of the last fields. We also pick - // extra fields to check arbitrarily, e.g. depending on their position (i.e. the middle) and - // also their type. - // - // We specify only the picked fields and the rest should be provided by the `Default` - // implementation. That implementation is copied over between the two types and should work - // fine. - let v0 = v0::HostConfiguration:: { - relay_vrf_modulo_samples: 0xFEEDBEEFu32, - needed_approvals: 69, - thread_availability_period: 55, - hrmp_recipient_deposit: 1337, - max_pov_size: 1111, - ..Default::default() - }; - - new_test_ext(Default::default()).execute_with(|| { - // Implant the v0 version in the state. - frame_support::storage::unhashed::put_raw( - &configuration::ActiveConfig::::hashed_key(), - &v0.encode(), - ); - - migrate_to_v1::(); - - let v1 = configuration::ActiveConfig::::get(); - - // The same motivation as for the migration code. See `migrate_to_v1`. - #[rustfmt::skip] - { - assert_eq!(v0.max_code_size , v1.max_code_size); - assert_eq!(v0.max_head_data_size , v1.max_head_data_size); - assert_eq!(v0.max_upward_queue_count , v1.max_upward_queue_count); - assert_eq!(v0.max_upward_queue_size , v1.max_upward_queue_size); - assert_eq!(v0.max_upward_message_size , v1.max_upward_message_size); - assert_eq!(v0.max_upward_message_num_per_candidate , v1.max_upward_message_num_per_candidate); - assert_eq!(v0.hrmp_max_message_num_per_candidate , v1.hrmp_max_message_num_per_candidate); - assert_eq!(v0.validation_upgrade_frequency , v1.validation_upgrade_frequency); - assert_eq!(v0.validation_upgrade_delay , v1.validation_upgrade_delay); - assert_eq!(v0.max_pov_size , v1.max_pov_size); - assert_eq!(v0.max_downward_message_size , v1.max_downward_message_size); - assert_eq!(v0.ump_service_total_weight , v1.ump_service_total_weight); - assert_eq!(v0.hrmp_max_parachain_outbound_channels , v1.hrmp_max_parachain_outbound_channels); - assert_eq!(v0.hrmp_max_parathread_outbound_channels , v1.hrmp_max_parathread_outbound_channels); - assert_eq!(v0.hrmp_sender_deposit , v1.hrmp_sender_deposit); - assert_eq!(v0.hrmp_recipient_deposit , v1.hrmp_recipient_deposit); - assert_eq!(v0.hrmp_channel_max_capacity , v1.hrmp_channel_max_capacity); - assert_eq!(v0.hrmp_channel_max_total_size , v1.hrmp_channel_max_total_size); - assert_eq!(v0.hrmp_max_parachain_inbound_channels , v1.hrmp_max_parachain_inbound_channels); - assert_eq!(v0.hrmp_max_parathread_inbound_channels , v1.hrmp_max_parathread_inbound_channels); - assert_eq!(v0.hrmp_channel_max_message_size , v1.hrmp_channel_max_message_size); - assert_eq!(v0.code_retention_period , v1.code_retention_period); - assert_eq!(v0.parathread_cores , v1.parathread_cores); - assert_eq!(v0.parathread_retries , v1.parathread_retries); - assert_eq!(v0.group_rotation_frequency , v1.group_rotation_frequency); - assert_eq!(v0.chain_availability_period , v1.chain_availability_period); - assert_eq!(v0.thread_availability_period , v1.thread_availability_period); - assert_eq!(v0.scheduling_lookahead , v1.scheduling_lookahead); - assert_eq!(v0.max_validators_per_core , v1.max_validators_per_core); - assert_eq!(v0.max_validators , v1.max_validators); - assert_eq!(v0.dispute_period , v1.dispute_period); - assert_eq!(v0.dispute_post_conclusion_acceptance_period, v1.dispute_post_conclusion_acceptance_period); - assert_eq!(v0.dispute_max_spam_slots , v1.dispute_max_spam_slots); - assert_eq!(v0.dispute_conclusion_by_time_out_period , v1.dispute_conclusion_by_time_out_period); - assert_eq!(v0.no_show_slots , v1.no_show_slots); - assert_eq!(v0.n_delay_tranches , v1.n_delay_tranches); - assert_eq!(v0.zeroth_delay_tranche_width , v1.zeroth_delay_tranche_width); - assert_eq!(v0.needed_approvals , v1.needed_approvals); - assert_eq!(v0.relay_vrf_modulo_samples , v1.relay_vrf_modulo_samples); - - assert_eq!(v1.ump_max_individual_weight, 20_000_000_000); - }; // ; makes this a statement. `rustfmt::skip` cannot be put on an expression. - }); - } + 0 } diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 0c4a7ac38fbc..91adb47d96d9 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -1543,6 +1543,26 @@ impl OnRuntimeUpgrade for SetInitialHostConfiguration { Configuration::force_set_active_config(active_config); } + { + // At the moment, the `parachains_configuration` crate has already had one runtime + // storage migration (performed as part of [#3575]). As the result a call to + // `StorageVersion::get::` will return `Some(1)` + // + // However, Polkadot is just about to have its first version of parachains runtime + // pallets and thus there is no existing storage which needs to be migrated. Above + // we just have set the active configuration of the actual version, i.e. the same as the + // version 1 on Kusama. + // + // The caveat here is when we deploy a module for the first time, it's runtime version + // will be empty and thus it will be considered as version 0. Since we want to avoid + // the situation where the same storage structure has version 0 on Polkadot and + // version 1 on Kusama we need to set the storage version explicitly. + // + // [#3575]: https://github.com/paritytech/polkadot/pull/3575 + use frame_support::traits::StorageVersion; + StorageVersion::new(1).put::(); + } + RocksDbWeight::get().reads(1) + RocksDbWeight::get().writes(1) } } From 6f6c81d1a69cf369e941c7e515fb35ccb5ac5e64 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko <85877331+sergejparity@users.noreply.github.com> Date: Fri, 8 Oct 2021 14:43:17 +0300 Subject: [PATCH 17/40] Remove bridges from checks (#4040) * Remove bridges from check_line_width * Remove bridges from spellcheck --- .gitlab-ci.yml | 4 ++-- scripts/gitlab/check_line_width.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 6a7d381c0722..ae10e34d6260 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -242,9 +242,9 @@ spellcheck: - cargo spellcheck --version # compare with the commit parent to the PR, given it's from a default branch - git fetch origin +${CI_DEFAULT_BRANCH}:${CI_DEFAULT_BRANCH} - - cargo spellcheck list-files -vvv $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH})) + - cargo spellcheck list-files -vvv $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH} -- :^bridges)) - time cargo spellcheck check -vvv --cfg=scripts/gitlab/spellcheck.toml --checkers hunspell --code 1 - $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH})) + $(git diff --diff-filter=AM --name-only $(git merge-base ${CI_COMMIT_SHA} ${CI_DEFAULT_BRANCH} -- :^bridges)) allow_failure: true build-adder-collator: diff --git a/scripts/gitlab/check_line_width.sh b/scripts/gitlab/check_line_width.sh index c31cab446579..b147488d92db 100755 --- a/scripts/gitlab/check_line_width.sh +++ b/scripts/gitlab/check_line_width.sh @@ -8,7 +8,7 @@ BASE_BRANCH="origin/master" LINE_WIDTH="121" GOOD_LINE_WIDTH="101" -git diff --name-only "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- \*.rs | ( while read -r file +git diff --name-only "${BASE_BRANCH}...${CI_COMMIT_SHA}" -- \*.rs :^bridges | ( while read -r file do if [ ! -f "${file}" ]; then From a54c64244d19b19a33891bcb98b6ea485016e6c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 8 Oct 2021 16:31:25 +0200 Subject: [PATCH 18/40] Bump spec_versions (#4041) --- runtime/kusama/src/lib.rs | 2 +- runtime/polkadot/src/lib.rs | 2 +- runtime/westend/src/lib.rs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 95381b2b561c..978dba51ec69 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -118,7 +118,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("kusama"), impl_name: create_runtime_str!("parity-kusama"), authoring_version: 2, - spec_version: 9110, + spec_version: 9120, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] apis: RUNTIME_API_VERSIONS, diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 91adb47d96d9..47409173e5bb 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -105,7 +105,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("polkadot"), impl_name: create_runtime_str!("parity-polkadot"), authoring_version: 0, - spec_version: 9110, + spec_version: 9120, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] apis: RUNTIME_API_VERSIONS, diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index e0ef2e3d1f5f..fef3560ddf64 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -116,7 +116,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { spec_name: create_runtime_str!("westend"), impl_name: create_runtime_str!("parity-westend"), authoring_version: 2, - spec_version: 9110, + spec_version: 9120, impl_version: 0, #[cfg(not(feature = "disable-runtime-api"))] apis: RUNTIME_API_VERSIONS, From 1f8021af99c905c9d9cbb3ab8fd1e0d24b7e8116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bastian=20K=C3=B6cher?= Date: Fri, 8 Oct 2021 17:29:16 +0200 Subject: [PATCH 19/40] Substrate companion for #9966 (#4037) * Substrate companion for #9966 * Bump spec_versions * Update Substrate --- Cargo.lock | 398 ++++++++++++++++++----------------- node/test/service/src/lib.rs | 1 - 2 files changed, 200 insertions(+), 199 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a8b54600b942..c73b44575a38 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -44,7 +44,7 @@ checksum = "495ee669413bfbe9e8cace80f4d3d78e6d8c8d99579f97fb93bde351b185f2d4" dependencies = [ "cfg-if 1.0.0", "cipher", - "cpufeatures", + "cpufeatures 0.1.4", "opaque-debug 0.3.0", ] @@ -75,9 +75,9 @@ dependencies = [ [[package]] name = "aho-corasick" -version = "0.7.13" +version = "0.7.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "043164d8ba5c4c3035fec9bbee8647c0261d788f3474306f93bb65901cae0e86" +checksum = "1e37cfd5e7657ada45f742d6e99ca5788580b5c529dc78faf11ece6dc702656f" dependencies = [ "memchr", ] @@ -461,7 +461,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "beefy-primitives", "fnv", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -509,12 +509,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -1015,7 +1015,7 @@ checksum = "fee7ad89dc1128635074c268ee661f90c3f7e83d9fd12910608c36b47d6c3412" dependencies = [ "cfg-if 1.0.0", "cipher", - "cpufeatures", + "cpufeatures 0.1.4", "zeroize", ] @@ -1188,10 +1188,13 @@ dependencies = [ ] [[package]] -name = "cpuid-bool" -version = "0.1.0" +name = "cpufeatures" +version = "0.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6d375c433320f6c5057ae04a04376eef4d04ce2801448cf8863a78da99107be4" +checksum = "95059428f66df56b63431fdb4e1947ed2190586af5c5a8a8b71122bdf5a7f469" +dependencies = [ + "libc", +] [[package]] name = "cranelift-bforest" @@ -1645,7 +1648,7 @@ dependencies = [ "ed25519", "rand 0.7.3", "serde", - "sha2 0.9.2", + "sha2 0.9.8", "zeroize", ] @@ -1924,7 +1927,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", ] @@ -1942,7 +1945,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -1962,7 +1965,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "Inflector", "chrono", @@ -1988,7 +1991,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -2002,7 +2005,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -2030,7 +2033,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "bitflags", "frame-metadata", @@ -2057,7 +2060,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2069,7 +2072,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2081,7 +2084,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro2", "quote", @@ -2091,7 +2094,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2114,7 +2117,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -2125,7 +2128,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "log", @@ -2142,7 +2145,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -2157,7 +2160,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "sp-api", @@ -2166,7 +2169,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "sp-api", @@ -2379,7 +2382,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "chrono", "frame-election-provider-support", @@ -3060,9 +3063,9 @@ dependencies = [ [[package]] name = "jsonrpsee-proc-macros" -version = "0.3.0" +version = "0.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f37924e16300e249a52a22cabb5632f846dc9760b39355f5e8bc70cd23dc6300" +checksum = "8edb341d35279b59c79d7fe9e060a51aec29d45af99cc7c72ea7caa350fa71a4" dependencies = [ "Inflector", "bae", @@ -3389,7 +3392,7 @@ dependencies = [ "rand 0.7.3", "ring", "rw-stream-sink", - "sha2 0.9.2", + "sha2 0.9.8", "smallvec", "thiserror", "unsigned-varint 0.7.0", @@ -3460,7 +3463,7 @@ dependencies = [ "prost-build", "rand 0.7.3", "regex", - "sha2 0.9.2", + "sha2 0.9.8", "smallvec", "unsigned-varint 0.7.0", "wasm-timer", @@ -3500,7 +3503,7 @@ dependencies = [ "prost", "prost-build", "rand 0.7.3", - "sha2 0.9.2", + "sha2 0.9.8", "smallvec", "uint", "unsigned-varint 0.7.0", @@ -3562,7 +3565,7 @@ dependencies = [ "prost", "prost-build", "rand 0.8.4", - "sha2 0.9.2", + "sha2 0.9.8", "snow", "static_assertions", "x25519-dalek", @@ -3785,7 +3788,7 @@ dependencies = [ "libsecp256k1-gen-genmult 0.2.1", "rand 0.7.3", "serde", - "sha2 0.9.2", + "sha2 0.9.8", "typenum", ] @@ -3804,7 +3807,7 @@ dependencies = [ "libsecp256k1-gen-genmult 0.2.1", "rand 0.7.3", "serde", - "sha2 0.9.2", + "sha2 0.9.8", "typenum", ] @@ -3823,7 +3826,7 @@ dependencies = [ "libsecp256k1-gen-genmult 0.3.0", "rand 0.8.4", "serde", - "sha2 0.9.2", + "sha2 0.9.8", "typenum", ] @@ -4298,7 +4301,7 @@ dependencies = [ "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2 0.9.2", + "sha2 0.9.8", "sha3", "unsigned-varint 0.5.1", ] @@ -4312,7 +4315,7 @@ dependencies = [ "digest 0.9.0", "generic-array 0.14.4", "multihash-derive", - "sha2 0.9.2", + "sha2 0.9.8", "unsigned-varint 0.7.0", ] @@ -4608,7 +4611,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4622,7 +4625,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -4638,7 +4641,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -4653,7 +4656,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4677,7 +4680,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4697,7 +4700,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4712,7 +4715,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "beefy-primitives", "frame-support", @@ -4728,7 +4731,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4753,7 +4756,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4838,7 +4841,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4855,7 +4858,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4871,7 +4874,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4895,7 +4898,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4913,7 +4916,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4928,7 +4931,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4951,7 +4954,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4967,7 +4970,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -4987,7 +4990,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5004,7 +5007,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5021,7 +5024,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5039,7 +5042,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5055,7 +5058,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5072,7 +5075,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5087,7 +5090,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5101,7 +5104,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5118,7 +5121,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5141,7 +5144,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5156,7 +5159,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5170,7 +5173,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5186,7 +5189,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5207,7 +5210,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5223,7 +5226,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5237,7 +5240,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5260,7 +5263,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5271,7 +5274,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "log", "sp-arithmetic", @@ -5280,7 +5283,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5294,7 +5297,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5312,7 +5315,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5331,7 +5334,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-support", "frame-system", @@ -5348,7 +5351,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5365,7 +5368,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5376,7 +5379,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5393,7 +5396,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -5409,7 +5412,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-benchmarking", "frame-support", @@ -7245,7 +7248,7 @@ version = "0.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9fcffab1f78ebbdf4b93b68c1ffebc24037eedf271edaca795732b24e5e4e349" dependencies = [ - "cpufeatures", + "cpufeatures 0.1.4", "opaque-debug 0.3.0", "universal-hash", ] @@ -7257,7 +7260,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "e597450cbf209787f0e6de80bf3795c6b2356a380ee87837b545aded8dbc1823" dependencies = [ "cfg-if 1.0.0", - "cpufeatures", + "cpufeatures 0.1.4", "opaque-debug 0.3.0", "universal-hash", ] @@ -7412,15 +7415,15 @@ dependencies = [ [[package]] name = "prometheus" -version = "0.11.0" +version = "0.12.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c8425533e7122f0c3cc7a37e6244b16ad3a2cc32ae7ac6276e2a75da0d9c200d" +checksum = "5986aa8d62380092d2f50f8b1cdba9cb9b6731ffd4b25b51fd126b6c3e05b99c" dependencies = [ "cfg-if 1.0.0", "fnv", "lazy_static", + "memchr", "parking_lot 0.11.1", - "regex", "thiserror", ] @@ -7743,14 +7746,13 @@ dependencies = [ [[package]] name = "regex" -version = "1.4.2" +version = "1.5.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "38cf2c13ed4745de91a5eb834e11c00bcc3709e773173b2ce4c56c9fbde04b9c" +checksum = "d07a8629359eb56f1e2fb1652bb04212c072a87ba68546a04065d525673ac461" dependencies = [ "aho-corasick", "memchr", "regex-syntax", - "thread_local", ] [[package]] @@ -7765,9 +7767,9 @@ dependencies = [ [[package]] name = "regex-syntax" -version = "0.6.21" +version = "0.6.25" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3b181ba2dcf07aaccad5448e8ead58db5b742cf85dfe035e2227f137a539a189" +checksum = "f497285884f3fcff424ffc933e56d7cbca511def0c9831a7f9b5f6153e3cc89b" [[package]] name = "region" @@ -7806,7 +7808,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8069,7 +8071,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "log", "sp-core", @@ -8080,7 +8082,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "derive_more", @@ -8107,7 +8109,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8130,7 +8132,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8146,7 +8148,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8162,7 +8164,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8173,7 +8175,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "chrono", "fdlimit", @@ -8211,7 +8213,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "fnv", "futures 0.3.17", @@ -8239,7 +8241,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "hash-db", "kvdb", @@ -8264,7 +8266,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "futures 0.3.17", @@ -8288,7 +8290,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "derive_more", @@ -8331,7 +8333,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "derive_more", "futures 0.3.17", @@ -8355,7 +8357,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8368,7 +8370,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "assert_matches", "async-trait", @@ -8402,7 +8404,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "futures 0.3.17", @@ -8428,7 +8430,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "sc-client-api", "sp-authorship", @@ -8439,7 +8441,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8465,7 +8467,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "derive_more", "environmental", @@ -8483,7 +8485,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "log", "parity-scale-codec", @@ -8499,7 +8501,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8517,7 +8519,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "derive_more", @@ -8554,7 +8556,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "derive_more", "finality-grandpa", @@ -8578,7 +8580,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8595,7 +8597,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "derive_more", @@ -8610,7 +8612,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "hash-db", "parity-scale-codec", @@ -8628,7 +8630,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-std", "async-trait", @@ -8679,7 +8681,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8695,7 +8697,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "bytes 1.0.1", "fnv", @@ -8722,7 +8724,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "libp2p", @@ -8735,7 +8737,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8744,7 +8746,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "hash-db", @@ -8775,7 +8777,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8800,7 +8802,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8817,7 +8819,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "directories", @@ -8882,7 +8884,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "log", "parity-scale-codec", @@ -8896,7 +8898,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8918,7 +8920,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "chrono", "futures 0.3.17", @@ -8936,7 +8938,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8966,7 +8968,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8977,7 +8979,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "intervalier", @@ -9004,7 +9006,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "derive_more", "futures 0.3.17", @@ -9018,7 +9020,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9254,7 +9256,7 @@ checksum = "8c4cfa741c5832d0ef7fab46cabed29c2aae926db0b11bb2069edd8db5e64e16" dependencies = [ "block-buffer 0.9.0", "cfg-if 1.0.0", - "cpufeatures", + "cpufeatures 0.1.4", "digest 0.9.0", "opaque-debug 0.3.0", ] @@ -9273,13 +9275,13 @@ dependencies = [ [[package]] name = "sha2" -version = "0.9.2" +version = "0.9.8" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6e7aab86fe2149bad8c507606bdb3f4ef5e7b2380eb92350f56122cca72a42a8" +checksum = "b69f9a4c9740d74c5baa3fd2e547f9525fa8088a8a958e0ca2409a514e33f5fa" dependencies = [ "block-buffer 0.9.0", "cfg-if 1.0.0", - "cpuid-bool", + "cpufeatures 0.2.1", "digest 0.9.0", "opaque-debug 0.3.0", ] @@ -9409,7 +9411,7 @@ dependencies = [ "rand_core 0.6.1", "ring", "rustc_version 0.3.3", - "sha2 0.9.2", + "sha2 0.9.8", "subtle 2.4.1", "x25519-dalek", ] @@ -9470,7 +9472,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "hash-db", "log", @@ -9487,7 +9489,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9499,7 +9501,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -9512,7 +9514,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "integer-sqrt", "num-traits", @@ -9527,7 +9529,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -9540,7 +9542,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "parity-scale-codec", @@ -9552,7 +9554,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "sp-api", @@ -9564,7 +9566,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "log", @@ -9582,7 +9584,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "futures 0.3.17", @@ -9601,7 +9603,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "merlin", @@ -9624,7 +9626,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -9635,7 +9637,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9647,7 +9649,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "base58", "blake2-rfc", @@ -9674,7 +9676,7 @@ dependencies = [ "schnorrkel", "secrecy", "serde", - "sha2 0.9.2", + "sha2 0.9.8", "sp-debug-derive", "sp-externalities", "sp-runtime-interface", @@ -9692,7 +9694,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9701,7 +9703,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro2", "quote", @@ -9711,7 +9713,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "environmental", "parity-scale-codec", @@ -9722,7 +9724,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "finality-grandpa", "log", @@ -9740,7 +9742,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9754,7 +9756,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "hash-db", @@ -9778,7 +9780,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "lazy_static", "sp-core", @@ -9789,7 +9791,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "derive_more", @@ -9806,7 +9808,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "zstd", ] @@ -9814,7 +9816,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -9829,7 +9831,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9840,7 +9842,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "sp-api", "sp-core", @@ -9850,7 +9852,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "backtrace", ] @@ -9858,7 +9860,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "rustc-hash", "serde", @@ -9868,7 +9870,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "either", "hash256-std-hasher", @@ -9890,7 +9892,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9907,7 +9909,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9919,7 +9921,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "serde", "serde_json", @@ -9928,7 +9930,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -9942,7 +9944,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "scale-info", @@ -9953,7 +9955,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "hash-db", "log", @@ -9976,12 +9978,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9994,7 +9996,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "log", "sp-core", @@ -10007,7 +10009,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10023,7 +10025,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "erased-serde", "log", @@ -10041,7 +10043,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "sp-api", "sp-runtime", @@ -10050,7 +10052,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "log", @@ -10066,7 +10068,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "hash-db", "memory-db", @@ -10081,7 +10083,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10097,7 +10099,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10108,7 +10110,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10304,7 +10306,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "platforms", ] @@ -10312,7 +10314,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10334,7 +10336,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-std", "derive_more", @@ -10348,7 +10350,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "async-trait", "futures 0.3.17", @@ -10375,7 +10377,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10385,7 +10387,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10396,7 +10398,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10549,7 +10551,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "frame-system", "futures 0.3.17", @@ -10705,7 +10707,7 @@ dependencies = [ "pbkdf2 0.4.0", "rand 0.7.3", "rustc-hash", - "sha2 0.9.2", + "sha2 0.9.8", "thiserror", "unicode-normalization", "wasm-bindgen", @@ -10990,7 +10992,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#97818e44c6d3f829fa65e8ab5fc06a8ca9d266c0" +source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" dependencies = [ "jsonrpsee-ws-client", "log", @@ -11431,7 +11433,7 @@ dependencies = [ "libc", "log", "serde", - "sha2 0.9.2", + "sha2 0.9.8", "toml", "winapi 0.3.9", "zstd", diff --git a/node/test/service/src/lib.rs b/node/test/service/src/lib.rs index d52b9ecc3284..5cbad24d55a7 100644 --- a/node/test/service/src/lib.rs +++ b/node/test/service/src/lib.rs @@ -190,7 +190,6 @@ pub fn node_config( announce_block: true, base_path: Some(base_path), informant_output_format: Default::default(), - disable_log_reloading: false, } } From c0d681ccbaba725b02fa9cecc9bf26c4f8f7a190 Mon Sep 17 00:00:00 2001 From: Andronik Ordian Date: Fri, 8 Oct 2021 18:12:57 +0200 Subject: [PATCH 20/40] validator-discovery: don't remove multiaddr of requested `PeerId`s (#4036) * validator-discovery: remove from peer set before inserting * bump spec versions * rework into a companion * fmt * fix * fix * one more time * one more try * one more try * Revert "one more try" This reverts commit ab6568d3b828a33dc06f5650037597fc88dd06b1. * one more try * one more try * Revert "one more try" This reverts commit 8d7369f7b78633bd1b1c5ba3e0f2a0544bdd77a5. * fix a warning * fix another warn * correct log * fix compilation * ffs * less cloning * Apply suggestions from code review Co-authored-by: Pierre Krieger * add comments and a small refactoring * use set_reserved_peers * cargo update -p sp-io * rename added to num_peers * update Substrate Co-authored-by: Pierre Krieger Co-authored-by: parity-processbot <> --- Cargo.lock | 322 +++++++++--------- node/network/bridge/src/network.rs | 27 +- node/network/bridge/src/tests.rs | 10 +- .../network/bridge/src/validator_discovery.rs | 85 +++-- runtime/common/src/integration_tests.rs | 1 + 5 files changed, 227 insertions(+), 218 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index c73b44575a38..a82446c9abd5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -461,7 +461,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "beefy-primitives", "fnv", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -509,12 +509,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -1927,7 +1927,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", ] @@ -1945,7 +1945,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -1965,7 +1965,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "Inflector", "chrono", @@ -1991,7 +1991,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -2005,7 +2005,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -2033,7 +2033,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "bitflags", "frame-metadata", @@ -2060,7 +2060,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2072,7 +2072,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2084,7 +2084,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro2", "quote", @@ -2094,7 +2094,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2117,7 +2117,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -2128,7 +2128,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "log", @@ -2145,7 +2145,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -2160,7 +2160,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "sp-api", @@ -2169,7 +2169,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "sp-api", @@ -2382,7 +2382,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "chrono", "frame-election-provider-support", @@ -4611,7 +4611,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4625,7 +4625,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -4641,7 +4641,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -4656,7 +4656,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4680,7 +4680,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4700,7 +4700,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4715,7 +4715,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "beefy-primitives", "frame-support", @@ -4731,7 +4731,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4756,7 +4756,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4841,7 +4841,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4858,7 +4858,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4874,7 +4874,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4898,7 +4898,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4916,7 +4916,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4931,7 +4931,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4954,7 +4954,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4970,7 +4970,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -4990,7 +4990,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5007,7 +5007,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5024,7 +5024,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5042,7 +5042,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5058,7 +5058,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5075,7 +5075,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5090,7 +5090,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5104,7 +5104,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5121,7 +5121,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5144,7 +5144,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5159,7 +5159,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5173,7 +5173,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5189,7 +5189,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5210,7 +5210,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5226,7 +5226,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5240,7 +5240,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5263,7 +5263,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5274,7 +5274,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "log", "sp-arithmetic", @@ -5283,7 +5283,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5297,7 +5297,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5315,7 +5315,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5334,7 +5334,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-support", "frame-system", @@ -5351,7 +5351,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5368,7 +5368,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5379,7 +5379,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5396,7 +5396,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -5412,7 +5412,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-benchmarking", "frame-support", @@ -7808,7 +7808,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8071,7 +8071,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "log", "sp-core", @@ -8082,7 +8082,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "derive_more", @@ -8109,7 +8109,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8132,7 +8132,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8148,7 +8148,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8164,7 +8164,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8175,7 +8175,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "chrono", "fdlimit", @@ -8213,7 +8213,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "fnv", "futures 0.3.17", @@ -8241,7 +8241,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "hash-db", "kvdb", @@ -8266,7 +8266,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "futures 0.3.17", @@ -8290,7 +8290,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "derive_more", @@ -8333,7 +8333,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "derive_more", "futures 0.3.17", @@ -8357,7 +8357,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8370,7 +8370,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "assert_matches", "async-trait", @@ -8404,7 +8404,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "futures 0.3.17", @@ -8430,7 +8430,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "sc-client-api", "sp-authorship", @@ -8441,7 +8441,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8467,7 +8467,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "derive_more", "environmental", @@ -8485,7 +8485,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "log", "parity-scale-codec", @@ -8501,7 +8501,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8519,7 +8519,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "derive_more", @@ -8556,7 +8556,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "derive_more", "finality-grandpa", @@ -8580,7 +8580,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8597,7 +8597,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "derive_more", @@ -8612,7 +8612,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "hash-db", "parity-scale-codec", @@ -8630,7 +8630,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-std", "async-trait", @@ -8681,7 +8681,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8697,7 +8697,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "bytes 1.0.1", "fnv", @@ -8724,7 +8724,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "libp2p", @@ -8737,7 +8737,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8746,7 +8746,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "hash-db", @@ -8777,7 +8777,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8802,7 +8802,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8819,7 +8819,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "directories", @@ -8884,7 +8884,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "log", "parity-scale-codec", @@ -8898,7 +8898,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8920,7 +8920,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "chrono", "futures 0.3.17", @@ -8938,7 +8938,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8968,7 +8968,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8979,7 +8979,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "intervalier", @@ -9006,7 +9006,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "derive_more", "futures 0.3.17", @@ -9020,7 +9020,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9472,7 +9472,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "hash-db", "log", @@ -9489,7 +9489,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9501,7 +9501,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -9514,7 +9514,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "integer-sqrt", "num-traits", @@ -9529,7 +9529,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -9542,7 +9542,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "parity-scale-codec", @@ -9554,7 +9554,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "sp-api", @@ -9566,7 +9566,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "log", @@ -9584,7 +9584,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "futures 0.3.17", @@ -9603,7 +9603,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "merlin", @@ -9626,7 +9626,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -9637,7 +9637,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9649,7 +9649,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "base58", "blake2-rfc", @@ -9694,7 +9694,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -9703,7 +9703,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro2", "quote", @@ -9713,7 +9713,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "environmental", "parity-scale-codec", @@ -9724,7 +9724,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "finality-grandpa", "log", @@ -9742,7 +9742,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9756,7 +9756,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "hash-db", @@ -9780,7 +9780,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "lazy_static", "sp-core", @@ -9791,7 +9791,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "derive_more", @@ -9808,7 +9808,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "zstd", ] @@ -9816,7 +9816,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -9831,7 +9831,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9842,7 +9842,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "sp-api", "sp-core", @@ -9852,7 +9852,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "backtrace", ] @@ -9860,7 +9860,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "rustc-hash", "serde", @@ -9870,7 +9870,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "either", "hash256-std-hasher", @@ -9892,7 +9892,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9909,7 +9909,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9921,7 +9921,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "serde", "serde_json", @@ -9930,7 +9930,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -9944,7 +9944,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "scale-info", @@ -9955,7 +9955,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "hash-db", "log", @@ -9978,12 +9978,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9996,7 +9996,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "log", "sp-core", @@ -10009,7 +10009,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10025,7 +10025,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "erased-serde", "log", @@ -10043,7 +10043,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "sp-api", "sp-runtime", @@ -10052,7 +10052,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "log", @@ -10068,7 +10068,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "hash-db", "memory-db", @@ -10083,7 +10083,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10099,7 +10099,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10110,7 +10110,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10306,7 +10306,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "platforms", ] @@ -10314,7 +10314,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10336,7 +10336,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-std", "derive_more", @@ -10350,7 +10350,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "async-trait", "futures 0.3.17", @@ -10377,7 +10377,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10387,7 +10387,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10398,7 +10398,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10551,7 +10551,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "frame-system", "futures 0.3.17", @@ -10992,7 +10992,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#b535922ae71c8cd68741ed26d042ba159725fddd" +source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" dependencies = [ "jsonrpsee-ws-client", "log", diff --git a/node/network/bridge/src/network.rs b/node/network/bridge/src/network.rs index 036254cb558e..d5114f72b452 100644 --- a/node/network/bridge/src/network.rs +++ b/node/network/bridge/src/network.rs @@ -81,18 +81,14 @@ pub trait Network: Clone + Send + 'static { /// Ask the network to keep a substream open with these nodes and not disconnect from them /// until removed from the protocol's peer set. /// Note that `out_peers` setting has no effect on this. - async fn add_to_peers_set( + async fn set_reserved_peers( &mut self, protocol: Cow<'static, str>, multiaddresses: HashSet, ) -> Result<(), String>; - /// Cancels the effects of `add_to_peers_set`. - async fn remove_from_peers_set( - &mut self, - protocol: Cow<'static, str>, - multiaddresses: HashSet, - ) -> Result<(), String>; + /// Removes the peers for the protocol's peer set (both reserved and non-reserved). + async fn remove_from_peers_set(&mut self, protocol: Cow<'static, str>, peers: Vec); /// Send a request to a remote peer. async fn start_request( @@ -118,25 +114,16 @@ impl Network for Arc> { NetworkService::event_stream(self, "polkadot-network-bridge").boxed() } - async fn add_to_peers_set( + async fn set_reserved_peers( &mut self, protocol: Cow<'static, str>, multiaddresses: HashSet, ) -> Result<(), String> { - sc_network::NetworkService::add_peers_to_reserved_set(&**self, protocol, multiaddresses) + sc_network::NetworkService::set_reserved_peers(&**self, protocol, multiaddresses) } - async fn remove_from_peers_set( - &mut self, - protocol: Cow<'static, str>, - multiaddresses: HashSet, - ) -> Result<(), String> { - sc_network::NetworkService::remove_peers_from_reserved_set( - &**self, - protocol.clone(), - multiaddresses.clone(), - )?; - sc_network::NetworkService::remove_from_peers_set(&**self, protocol, multiaddresses) + async fn remove_from_peers_set(&mut self, protocol: Cow<'static, str>, peers: Vec) { + sc_network::NetworkService::remove_peers_from_reserved_set(&**self, protocol, peers); } fn report_peer(&self, who: PeerId, cost_benefit: Rep) { diff --git a/node/network/bridge/src/tests.rs b/node/network/bridge/src/tests.rs index 40ade08df2b0..3be01dd8ae76 100644 --- a/node/network/bridge/src/tests.rs +++ b/node/network/bridge/src/tests.rs @@ -98,7 +98,7 @@ impl Network for TestNetwork { .boxed() } - async fn add_to_peers_set( + async fn set_reserved_peers( &mut self, _protocol: Cow<'static, str>, _: HashSet, @@ -106,13 +106,7 @@ impl Network for TestNetwork { Ok(()) } - async fn remove_from_peers_set( - &mut self, - _protocol: Cow<'static, str>, - _: HashSet, - ) -> Result<(), String> { - Ok(()) - } + async fn remove_from_peers_set(&mut self, _protocol: Cow<'static, str>, _: Vec) {} async fn start_request( &self, diff --git a/node/network/bridge/src/validator_discovery.rs b/node/network/bridge/src/validator_discovery.rs index 7f768044ad50..c338e0e62f70 100644 --- a/node/network/bridge/src/validator_discovery.rs +++ b/node/network/bridge/src/validator_discovery.rs @@ -23,10 +23,13 @@ use std::collections::HashSet; use futures::channel::oneshot; -use sc_network::multiaddr::Multiaddr; +use sc_network::multiaddr::{self, Multiaddr}; pub use polkadot_node_network_protocol::authority_discovery::AuthorityDiscovery; -use polkadot_node_network_protocol::peer_set::{PeerSet, PerPeerSet}; +use polkadot_node_network_protocol::{ + peer_set::{PeerSet, PerPeerSet}, + PeerId, +}; use polkadot_primitives::v1::AuthorityDiscoveryId; const LOG_TARGET: &str = "parachain::validator-discovery"; @@ -39,7 +42,7 @@ pub(super) struct Service { #[derive(Default)] struct StatePerPeerSet { - previously_requested: HashSet, + previously_requested: HashSet, } impl Service { @@ -47,7 +50,7 @@ impl Service { Self { state: Default::default(), _phantom: PhantomData } } - /// Connect to already resolved addresses: + /// Connect to already resolved addresses. pub async fn on_resolved_request( &mut self, newly_requested: HashSet, @@ -55,31 +58,32 @@ impl Service { mut network_service: N, ) -> N { let state = &mut self.state[peer_set]; - // clean up revoked requests - let multiaddr_to_remove: HashSet<_> = - state.previously_requested.difference(&newly_requested).cloned().collect(); - let multiaddr_to_add: HashSet<_> = - newly_requested.difference(&state.previously_requested).cloned().collect(); - state.previously_requested = newly_requested; + let new_peer_ids: HashSet = extract_peer_ids(newly_requested.iter().cloned()); + let num_peers = new_peer_ids.len(); + + let peers_to_remove: Vec = + state.previously_requested.difference(&new_peer_ids).cloned().collect(); + let removed = peers_to_remove.len(); + state.previously_requested = new_peer_ids; tracing::debug!( target: LOG_TARGET, ?peer_set, - added = multiaddr_to_add.len(), - removed = multiaddr_to_remove.len(), + ?num_peers, + ?removed, "New ConnectToValidators resolved request", ); // ask the network to connect to these nodes and not disconnect // from them until removed from the set if let Err(e) = network_service - .add_to_peers_set(peer_set.into_protocol_name(), multiaddr_to_add) + .set_reserved_peers(peer_set.into_protocol_name(), newly_requested) .await { tracing::warn!(target: LOG_TARGET, err = ?e, "AuthorityDiscoveryService returned an invalid multiaddress"); } // the addresses are known to be valid let _ = network_service - .remove_from_peers_set(peer_set.into_protocol_name(), multiaddr_to_remove) + .remove_from_peers_set(peer_set.into_protocol_name(), peers_to_remove) .await; network_service @@ -136,6 +140,15 @@ impl Service { } } +fn extract_peer_ids(multiaddr: impl Iterator) -> HashSet { + multiaddr + .filter_map(|mut addr| match addr.pop() { + Some(multiaddr::Protocol::P2p(key)) => PeerId::from_multihash(key).ok(), + _ => None, + }) + .collect() +} + #[cfg(test)] mod tests { use super::*; @@ -158,7 +171,7 @@ mod tests { #[derive(Default, Clone)] struct TestNetwork { - peers_set: HashSet, + peers_set: HashSet, } #[derive(Default, Clone, Debug)] @@ -171,9 +184,14 @@ mod tests { fn new() -> Self { let peer_ids = known_peer_ids(); let authorities = known_authorities(); - let multiaddr = known_multiaddr(); + let multiaddr = known_multiaddr().into_iter().zip(peer_ids.iter().cloned()).map( + |(mut addr, peer_id)| { + addr.push(multiaddr::Protocol::P2p(peer_id.into())); + addr + }, + ); Self { - by_authority_id: authorities.iter().cloned().zip(multiaddr.into_iter()).collect(), + by_authority_id: authorities.iter().cloned().zip(multiaddr).collect(), by_peer_id: peer_ids.into_iter().zip(authorities.into_iter()).collect(), } } @@ -185,22 +203,21 @@ mod tests { panic!() } - async fn add_to_peers_set( + async fn set_reserved_peers( &mut self, _protocol: Cow<'static, str>, multiaddresses: HashSet, ) -> Result<(), String> { - self.peers_set.extend(multiaddresses.into_iter()); + self.peers_set = extract_peer_ids(multiaddresses.into_iter()); Ok(()) } async fn remove_from_peers_set( &mut self, _protocol: Cow<'static, str>, - multiaddresses: HashSet, - ) -> Result<(), String> { - self.peers_set.retain(|elem| !multiaddresses.contains(elem)); - Ok(()) + peers: Vec, + ) { + self.peers_set.retain(|elem| !peers.contains(elem)); } async fn start_request( @@ -281,9 +298,14 @@ mod tests { let state = &service.state[PeerSet::Validation]; assert_eq!(state.previously_requested.len(), 1); - assert!(state - .previously_requested - .contains(ads.by_authority_id.get(&authority_ids[1]).unwrap())); + let peer_1 = extract_peer_ids( + vec![ads.by_authority_id.get(&authority_ids[1]).unwrap().clone()].into_iter(), + ) + .iter() + .cloned() + .next() + .unwrap(); + assert!(state.previously_requested.contains(&peer_1)); }); } @@ -310,9 +332,14 @@ mod tests { let state = &service.state[PeerSet::Validation]; assert_eq!(state.previously_requested.len(), 1); - assert!(state - .previously_requested - .contains(ads.by_authority_id.get(&authority_ids[0]).unwrap())); + let peer_0 = extract_peer_ids( + vec![ads.by_authority_id.get(&authority_ids[0]).unwrap().clone()].into_iter(), + ) + .iter() + .cloned() + .next() + .unwrap(); + assert!(state.previously_requested.contains(&peer_0)); let failed = failed_rx.await.unwrap(); assert_eq!(failed, 1); diff --git a/runtime/common/src/integration_tests.rs b/runtime/common/src/integration_tests.rs index 87d15bb99233..ad750602b0db 100644 --- a/runtime/common/src/integration_tests.rs +++ b/runtime/common/src/integration_tests.rs @@ -256,6 +256,7 @@ pub fn new_test_ext() -> TestExternalities { ext } +#[cfg(feature = "runtime-benchmarks")] pub fn new_test_ext_with_offset(n: BlockNumber) -> TestExternalities { LeaseOffset::set(n); new_test_ext() From 2bbab73a32da58082042a15b8be1649f529b1343 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Fri, 8 Oct 2021 17:43:16 +0000 Subject: [PATCH 21/40] Bump trybuild from 1.0.48 to 1.0.49 (#4039) Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.48 to 1.0.49. - [Release notes](https://github.com/dtolnay/trybuild/releases) - [Commits](https://github.com/dtolnay/trybuild/compare/1.0.48...1.0.49) --- updated-dependencies: - dependency-name: trybuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- node/overseer/overseer-gen/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index a82446c9abd5..eb0ceb710e38 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11015,9 +11015,9 @@ dependencies = [ [[package]] name = "trybuild" -version = "1.0.48" +version = "1.0.49" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4e6088028c71b42d26126c208a072670bcb964cfe73904c331b05e9c26080470" +checksum = "11b533b653278ed89f93da2508e324ce9c7ef4af686521ebe4e6516fc9f3fd8d" dependencies = [ "glob", "lazy_static", diff --git a/node/overseer/overseer-gen/Cargo.toml b/node/overseer/overseer-gen/Cargo.toml index c03b374bddf8..6855e85e69c1 100644 --- a/node/overseer/overseer-gen/Cargo.toml +++ b/node/overseer/overseer-gen/Cargo.toml @@ -19,4 +19,4 @@ futures-timer = "3.0.2" pin-project = "1.0" [dev-dependencies] -trybuild = "1.0.48" +trybuild = "1.0.49" From 01426e4f78d5f45c2f9700d836bdb8aa4be80a45 Mon Sep 17 00:00:00 2001 From: Alan Sapede Date: Fri, 8 Oct 2021 16:43:08 -0400 Subject: [PATCH 22/40] Fixes broken docker link in docker descriptiob (#4043) --- scripts/dockerfiles/polkadot_injected_release.Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dockerfiles/polkadot_injected_release.Dockerfile b/scripts/dockerfiles/polkadot_injected_release.Dockerfile index c4c8aea182ed..4b0ca7ef1329 100644 --- a/scripts/dockerfiles/polkadot_injected_release.Dockerfile +++ b/scripts/dockerfiles/polkadot_injected_release.Dockerfile @@ -11,7 +11,7 @@ LABEL io.parity.image.authors="devops-team@parity.io" \ io.parity.image.vendor="Parity Technologies" \ io.parity.image.title="parity/polkadot" \ io.parity.image.description="Polkadot: a platform for web3. This is the official Parity image with an injected binary." \ - io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/docker/polkadot_injected_release.Dockerfile" \ + io.parity.image.source="https://github.com/paritytech/polkadot/blob/${VCS_REF}/scripts/dockerfiles/polkadot_injected_release.Dockerfile" \ io.parity.image.revision="${VCS_REF}" \ io.parity.image.created="${BUILD_DATE}" \ io.parity.image.documentation="https://github.com/paritytech/polkadot/" From 21dd652ab58e10f649d22eb3088438aa6cb29e2f Mon Sep 17 00:00:00 2001 From: Zeke Mostov <32168567+emostov@users.noreply.github.com> Date: Sun, 10 Oct 2021 21:02:38 -0700 Subject: [PATCH 23/40] Add para pallets to polkadot benchmarks (#4045) * Add para pallets to polkadot benchmarks * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::configuration --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_configuration.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::initializer --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_initializer.rs * cargo run --quiet --release --features=runtime-benchmarks -- benchmark --chain=polkadot-dev --steps=50 --repeat=20 --pallet=runtime_parachains::paras --extrinsic=* --execution=wasm --wasm-execution=compiled --heap-pages=4096 --header=./file_header.txt --output=./runtime/polkadot/src/weights/runtime_parachains_paras.rs Co-authored-by: Parity Bot --- runtime/polkadot/src/lib.rs | 6 ++++++ .../runtime_parachains_configuration.rs | 18 +++++++++--------- .../weights/runtime_parachains_initializer.rs | 10 +++++----- .../src/weights/runtime_parachains_paras.rs | 14 +++++++------- 4 files changed, 27 insertions(+), 21 deletions(-) diff --git a/runtime/polkadot/src/lib.rs b/runtime/polkadot/src/lib.rs index 47409173e5bb..c43fbcb85393 100644 --- a/runtime/polkadot/src/lib.rs +++ b/runtime/polkadot/src/lib.rs @@ -1913,6 +1913,9 @@ sp_api::impl_runtime_apis! { list_benchmark!(list, extra, runtime_common::claims, Claims); list_benchmark!(list, extra, runtime_common::slots, Slots); list_benchmark!(list, extra, runtime_common::paras_registrar, Registrar); + list_benchmark!(list, extra, runtime_parachains::configuration, Configuration); + list_benchmark!(list, extra, runtime_parachains::initializer, Initializer); + list_benchmark!(list, extra, runtime_parachains::paras, Paras); // Substrate list_benchmark!(list, extra, pallet_balances, Balances); list_benchmark!(list, extra, pallet_bounties, Bounties); @@ -1985,6 +1988,9 @@ sp_api::impl_runtime_apis! { add_benchmark!(params, batches, runtime_common::claims, Claims); add_benchmark!(params, batches, runtime_common::slots, Slots); add_benchmark!(params, batches, runtime_common::paras_registrar, Registrar); + add_benchmark!(params, batches, runtime_parachains::configuration, Configuration); + add_benchmark!(params, batches, runtime_parachains::initializer, Initializer); + add_benchmark!(params, batches, runtime_parachains::paras, Paras); // Substrate add_benchmark!(params, batches, pallet_balances, Balances); add_benchmark!(params, batches, pallet_bounties, Bounties); diff --git a/runtime/polkadot/src/weights/runtime_parachains_configuration.rs b/runtime/polkadot/src/weights/runtime_parachains_configuration.rs index ae840f37752d..ad84a780a4d0 100644 --- a/runtime/polkadot/src/weights/runtime_parachains_configuration.rs +++ b/runtime/polkadot/src/weights/runtime_parachains_configuration.rs @@ -16,13 +16,13 @@ //! Autogenerated weights for `runtime_parachains::configuration` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-09-17, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 +//! DATE: 2021-10-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 // Executed Command: // target/release/polkadot // benchmark -// --chain=kusama-dev +// --chain=polkadot-dev // --steps=50 // --repeat=20 // --pallet=runtime_parachains::configuration @@ -31,7 +31,7 @@ // --wasm-execution=compiled // --heap-pages=4096 // --header=./file_header.txt -// --output=./runtime/kusama/src/weights/runtime_parachains_configuration.rs +// --output=./runtime/polkadot/src/weights/runtime_parachains_configuration.rs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -48,7 +48,7 @@ impl runtime_parachains::configuration::WeightInfo for // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_block_number() -> Weight { - (12_378_000 as Weight) + (12_506_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -56,7 +56,7 @@ impl runtime_parachains::configuration::WeightInfo for // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_u32() -> Weight { - (12_384_000 as Weight) + (12_550_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -64,7 +64,7 @@ impl runtime_parachains::configuration::WeightInfo for // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_option_u32() -> Weight { - (12_746_000 as Weight) + (12_521_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -72,7 +72,7 @@ impl runtime_parachains::configuration::WeightInfo for // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_weight() -> Weight { - (12_563_000 as Weight) + (12_867_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } @@ -84,7 +84,7 @@ impl runtime_parachains::configuration::WeightInfo for // Storage: Configuration PendingConfig (r:1 w:1) // Storage: Configuration ActiveConfig (r:1 w:0) fn set_config_with_balance() -> Weight { - (12_644_000 as Weight) + (12_852_000 as Weight) .saturating_add(T::DbWeight::get().reads(3 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } diff --git a/runtime/polkadot/src/weights/runtime_parachains_initializer.rs b/runtime/polkadot/src/weights/runtime_parachains_initializer.rs index 6b41892d3e45..b74f6056e8de 100644 --- a/runtime/polkadot/src/weights/runtime_parachains_initializer.rs +++ b/runtime/polkadot/src/weights/runtime_parachains_initializer.rs @@ -16,13 +16,13 @@ //! Autogenerated weights for `runtime_parachains::initializer` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-09-25, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 +//! DATE: 2021-10-09, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 // Executed Command: // target/release/polkadot // benchmark -// --chain=kusama-dev +// --chain=polkadot-dev // --steps=50 // --repeat=20 // --pallet=runtime_parachains::initializer @@ -31,7 +31,7 @@ // --wasm-execution=compiled // --heap-pages=4096 // --header=./file_header.txt -// --output=./runtime/kusama/src/weights/runtime_parachains_initializer.rs +// --output=./runtime/polkadot/src/weights/runtime_parachains_initializer.rs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -46,7 +46,7 @@ pub struct WeightInfo(PhantomData); impl runtime_parachains::initializer::WeightInfo for WeightInfo { // Storage: System Digest (r:1 w:1) fn force_approve(d: u32, ) -> Weight { - (5_156_000 as Weight) + (5_698_000 as Weight) // Standard Error: 0 .saturating_add((2_000 as Weight).saturating_mul(d as Weight)) .saturating_add(T::DbWeight::get().reads(1 as Weight)) diff --git a/runtime/polkadot/src/weights/runtime_parachains_paras.rs b/runtime/polkadot/src/weights/runtime_parachains_paras.rs index 728d95561bfc..75c20b3301c4 100644 --- a/runtime/polkadot/src/weights/runtime_parachains_paras.rs +++ b/runtime/polkadot/src/weights/runtime_parachains_paras.rs @@ -16,13 +16,13 @@ //! Autogenerated weights for `runtime_parachains::paras` //! //! THIS FILE WAS AUTO-GENERATED USING THE SUBSTRATE BENCHMARK CLI VERSION 4.0.0-dev -//! DATE: 2021-09-21, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` -//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("kusama-dev"), DB CACHE: 128 +//! DATE: 2021-10-11, STEPS: `50`, REPEAT: 20, LOW RANGE: `[]`, HIGH RANGE: `[]` +//! EXECUTION: Some(Wasm), WASM-EXECUTION: Compiled, CHAIN: Some("polkadot-dev"), DB CACHE: 128 // Executed Command: // target/release/polkadot // benchmark -// --chain=kusama-dev +// --chain=polkadot-dev // --steps=50 // --repeat=20 // --pallet=runtime_parachains::paras @@ -31,7 +31,7 @@ // --wasm-execution=compiled // --heap-pages=4096 // --header=./file_header.txt -// --output=./runtime/kusama/src/weights/runtime_parachains_paras.rs +// --output=./runtime/polkadot/src/weights/runtime_parachains_paras.rs #![cfg_attr(rustfmt, rustfmt_skip)] @@ -59,7 +59,7 @@ impl runtime_parachains::paras::WeightInfo for WeightIn } // Storage: Paras Heads (r:0 w:1) fn force_set_current_head(s: u32, ) -> Weight { - (16_088_000 as Weight) + (16_226_000 as Weight) // Standard Error: 0 .saturating_add((1_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) @@ -90,7 +90,7 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Storage: Paras PastCodeHash (r:0 w:1) // Storage: Paras UpgradeGoAheadSignal (r:0 w:1) fn force_note_new_head(s: u32, ) -> Weight { - (69_114_000 as Weight) + (68_208_000 as Weight) // Standard Error: 0 .saturating_add((1_000 as Weight).saturating_mul(s as Weight)) .saturating_add(T::DbWeight::get().reads(6 as Weight)) @@ -99,7 +99,7 @@ impl runtime_parachains::paras::WeightInfo for WeightIn // Storage: ParasShared CurrentSessionIndex (r:1 w:0) // Storage: Paras ActionsQueue (r:1 w:1) fn force_queue_action() -> Weight { - (26_752_000 as Weight) + (26_462_000 as Weight) .saturating_add(T::DbWeight::get().reads(2 as Weight)) .saturating_add(T::DbWeight::get().writes(1 as Weight)) } From d5023816d7bf284975ce1787096fdfc27e45ab01 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Oct 2021 09:37:27 +0000 Subject: [PATCH 24/40] Bump strum from 0.21.0 to 0.22.0 (#4047) Bumps [strum](https://github.com/Peternator7/strum) from 0.21.0 to 0.22.0. - [Release notes](https://github.com/Peternator7/strum/releases) - [Changelog](https://github.com/Peternator7/strum/blob/master/CHANGELOG.md) - [Commits](https://github.com/Peternator7/strum/commits) --- updated-dependencies: - dependency-name: strum dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 22 ++++++++++++++++++++-- node/network/protocol/Cargo.toml | 2 +- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index eb0ceb710e38..b98571c3edb0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -6457,7 +6457,7 @@ dependencies = [ "polkadot-primitives", "sc-authority-discovery", "sc-network", - "strum 0.21.0", + "strum 0.22.0", "thiserror", ] @@ -10254,8 +10254,14 @@ name = "strum" version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "aaf86bbcfd1fa9670b7a129f64fc0c9fcbbfe4f1bc4210e9e98fe71ffc12cde2" + +[[package]] +name = "strum" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f7ac893c7d471c8a21f31cfe213ec4f6d9afeed25537c772e08ef3f005f8729e" dependencies = [ - "strum_macros 0.21.1", + "strum_macros 0.22.0", ] [[package]] @@ -10282,6 +10288,18 @@ dependencies = [ "syn", ] +[[package]] +name = "strum_macros" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "339f799d8b549e3744c7ac7feb216383e4005d94bdb22561b3ab8f3b808ae9fb" +dependencies = [ + "heck", + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "sub-tokens" version = "0.1.0" diff --git a/node/network/protocol/Cargo.toml b/node/network/protocol/Cargo.toml index 9046c232fca4..e14d81340ea6 100644 --- a/node/network/protocol/Cargo.toml +++ b/node/network/protocol/Cargo.toml @@ -13,7 +13,7 @@ polkadot-node-jaeger = { path = "../../jaeger" } parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } sc-authority-discovery = { git = "https://github.com/paritytech/substrate", branch = "master" } -strum = { version = "0.21", features = ["derive"] } +strum = { version = "0.22", features = ["derive"] } derive_more = "0.99.11" futures = "0.3.17" thiserror = "1.0.26" From 70ccebc44399e6da867b1ed5076e6e1b3f653126 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Mon, 11 Oct 2021 10:17:23 +0000 Subject: [PATCH 25/40] Bump thiserror from 1.0.29 to 1.0.30 (#4048) Bumps [thiserror](https://github.com/dtolnay/thiserror) from 1.0.29 to 1.0.30. - [Release notes](https://github.com/dtolnay/thiserror/releases) - [Commits](https://github.com/dtolnay/thiserror/compare/1.0.29...1.0.30) --- updated-dependencies: - dependency-name: thiserror dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 8 ++++---- cli/Cargo.toml | 2 +- erasure-coding/Cargo.toml | 2 +- node/collation-generation/Cargo.toml | 2 +- node/core/av-store/Cargo.toml | 2 +- node/core/backing/Cargo.toml | 2 +- node/core/bitfield-signing/Cargo.toml | 2 +- node/core/chain-selection/Cargo.toml | 2 +- node/core/dispute-coordinator/Cargo.toml | 2 +- node/core/dispute-participation/Cargo.toml | 2 +- node/core/parachains-inherent/Cargo.toml | 2 +- node/core/provisioner/Cargo.toml | 2 +- node/jaeger/Cargo.toml | 2 +- node/metered-channel/Cargo.toml | 2 +- node/network/availability-distribution/Cargo.toml | 2 +- node/network/availability-recovery/Cargo.toml | 2 +- node/network/collator-protocol/Cargo.toml | 2 +- node/network/dispute-distribution/Cargo.toml | 2 +- node/network/protocol/Cargo.toml | 2 +- node/network/statement-distribution/Cargo.toml | 2 +- node/primitives/Cargo.toml | 2 +- node/service/Cargo.toml | 2 +- node/subsystem-types/Cargo.toml | 2 +- node/subsystem-util/Cargo.toml | 2 +- utils/staking-miner/Cargo.toml | 2 +- 25 files changed, 28 insertions(+), 28 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index b98571c3edb0..9d4d182649a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10622,18 +10622,18 @@ dependencies = [ [[package]] name = "thiserror" -version = "1.0.29" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "602eca064b2d83369e2b2f34b09c70b605402801927c65c11071ac911d299b88" +checksum = "854babe52e4df1653706b98fcfc05843010039b406875930a70e4d9644e5c417" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.29" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bad553cc2c78e8de258400763a647e80e6d1b31ee237275d756f6836d204494c" +checksum = "aa32fd3f627f367fe16f893e2597ae3c05020f8bba2666a4e6ea73d377e5714b" dependencies = [ "proc-macro2", "quote", diff --git a/cli/Cargo.toml b/cli/Cargo.toml index d52b547a9b3f..fe718cb7f414 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -15,7 +15,7 @@ crate-type = ["cdylib", "rlib"] [dependencies] log = "0.4.13" -thiserror = "1.0.26" +thiserror = "1.0.30" structopt = { version = "0.3.23", optional = true } futures = "0.3.17" diff --git a/erasure-coding/Cargo.toml b/erasure-coding/Cargo.toml index 2cf311f022eb..e7f71b14d1e3 100644 --- a/erasure-coding/Cargo.toml +++ b/erasure-coding/Cargo.toml @@ -11,4 +11,4 @@ novelpoly = { package = "reed-solomon-novelpoly", version = "1.0.0" } parity-scale-codec = { version = "2.3.1", default-features = false, features = ["std", "derive"] } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } trie = { package = "sp-trie", git = "https://github.com/paritytech/substrate", branch = "master" } -thiserror = "1.0.26" +thiserror = "1.0.30" diff --git a/node/collation-generation/Cargo.toml b/node/collation-generation/Cargo.toml index 6ae417287efb..7f6486708fc6 100644 --- a/node/collation-generation/Cargo.toml +++ b/node/collation-generation/Cargo.toml @@ -14,7 +14,7 @@ polkadot-node-subsystem-util = { path = "../subsystem-util" } polkadot-primitives = { path = "../../primitives" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-maybe-compressed-blob = { git = "https://github.com/paritytech/substrate", branch = "master" } -thiserror = "1.0.26" +thiserror = "1.0.30" parity-scale-codec = { version = "2.3.1", default-features = false, features = ["bit-vec", "derive"] } [dev-dependencies] diff --git a/node/core/av-store/Cargo.toml b/node/core/av-store/Cargo.toml index 5b5c9a2bbf45..98a2f63d0dc6 100644 --- a/node/core/av-store/Cargo.toml +++ b/node/core/av-store/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" futures = "0.3.17" futures-timer = "3.0.2" kvdb = "0.10.0" -thiserror = "1.0.26" +thiserror = "1.0.30" tracing = "0.1.29" bitvec = "0.20.1" diff --git a/node/core/backing/Cargo.toml b/node/core/backing/Cargo.toml index bf2b9b3b3b19..0aa567d86b9c 100644 --- a/node/core/backing/Cargo.toml +++ b/node/core/backing/Cargo.toml @@ -15,7 +15,7 @@ erasure-coding = { package = "polkadot-erasure-coding", path = "../../../erasure statement-table = { package = "polkadot-statement-table", path = "../../../statement-table" } bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } tracing = "0.1.29" -thiserror = "1.0.26" +thiserror = "1.0.30" [dev-dependencies] sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/core/bitfield-signing/Cargo.toml b/node/core/bitfield-signing/Cargo.toml index ad3f821345da..99980654f927 100644 --- a/node/core/bitfield-signing/Cargo.toml +++ b/node/core/bitfield-signing/Cargo.toml @@ -12,7 +12,7 @@ polkadot-node-subsystem = { path = "../../subsystem" } polkadot-node-subsystem-util = { path = "../../subsystem-util" } sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } wasm-timer = "0.2.5" -thiserror = "1.0.26" +thiserror = "1.0.30" [dev-dependencies] polkadot-node-subsystem-test-helpers = { path = "../../subsystem-test-helpers" } diff --git a/node/core/chain-selection/Cargo.toml b/node/core/chain-selection/Cargo.toml index 7202e38db0bf..a33d7e4bdbed 100644 --- a/node/core/chain-selection/Cargo.toml +++ b/node/core/chain-selection/Cargo.toml @@ -14,7 +14,7 @@ polkadot-node-primitives = { path = "../../primitives" } polkadot-node-subsystem = { path = "../../subsystem" } polkadot-node-subsystem-util = { path = "../../subsystem-util" } kvdb = "0.10.0" -thiserror = "1.0.26" +thiserror = "1.0.30" parity-scale-codec = "2" [dev-dependencies] diff --git a/node/core/dispute-coordinator/Cargo.toml b/node/core/dispute-coordinator/Cargo.toml index 2185383fe005..0b800c57199a 100644 --- a/node/core/dispute-coordinator/Cargo.toml +++ b/node/core/dispute-coordinator/Cargo.toml @@ -11,7 +11,7 @@ tracing = "0.1.29" parity-scale-codec = "2" kvdb = "0.10.0" derive_more = "0.99.14" -thiserror = "1.0.26" +thiserror = "1.0.30" polkadot-primitives = { path = "../../../primitives" } polkadot-node-primitives = { path = "../../primitives" } diff --git a/node/core/dispute-participation/Cargo.toml b/node/core/dispute-participation/Cargo.toml index f0eba006e813..9d3b85ab66ed 100644 --- a/node/core/dispute-participation/Cargo.toml +++ b/node/core/dispute-participation/Cargo.toml @@ -6,7 +6,7 @@ edition = "2018" [dependencies] futures = "0.3.17" -thiserror = "1.0.26" +thiserror = "1.0.30" tracing = "0.1.29" polkadot-node-primitives = { path = "../../primitives" } diff --git a/node/core/parachains-inherent/Cargo.toml b/node/core/parachains-inherent/Cargo.toml index 79d7ab48efa2..e05679e5328e 100644 --- a/node/core/parachains-inherent/Cargo.toml +++ b/node/core/parachains-inherent/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" futures = "0.3.17" futures-timer = "3.0.2" tracing = "0.1.29" -thiserror = "1.0.26" +thiserror = "1.0.30" async-trait = "0.1.51" polkadot-node-subsystem = { path = "../../subsystem" } polkadot-primitives = { path = "../../../primitives" } diff --git a/node/core/provisioner/Cargo.toml b/node/core/provisioner/Cargo.toml index 8870b9e93f62..fd1a0aca8dcf 100644 --- a/node/core/provisioner/Cargo.toml +++ b/node/core/provisioner/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" bitvec = { version = "0.20.1", default-features = false, features = ["alloc"] } futures = "0.3.17" tracing = "0.1.29" -thiserror = "1.0.26" +thiserror = "1.0.30" polkadot-primitives = { path = "../../../primitives" } polkadot-node-subsystem = { path = "../../subsystem" } polkadot-node-subsystem-util = { path = "../../subsystem-util" } diff --git a/node/jaeger/Cargo.toml b/node/jaeger/Cargo.toml index 308a76d494f8..00e3be90919e 100644 --- a/node/jaeger/Cargo.toml +++ b/node/jaeger/Cargo.toml @@ -14,6 +14,6 @@ polkadot-primitives = { path = "../../primitives" } polkadot-node-primitives = { path = "../primitives" } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } -thiserror = "1.0.26" +thiserror = "1.0.30" log = "0.4.13" parity-scale-codec = { version = "2.3.1", default-features = false } diff --git a/node/metered-channel/Cargo.toml b/node/metered-channel/Cargo.toml index 68aa04fa6749..6048f5051109 100644 --- a/node/metered-channel/Cargo.toml +++ b/node/metered-channel/Cargo.toml @@ -10,7 +10,7 @@ futures = "0.3.17" futures-timer = "3.0.2" derive_more = "0.99" tracing = "0.1.29" -thiserror = "1.0.29" +thiserror = "1.0.30" [dev-dependencies] futures = { version = "0.3.17", features = ["thread-pool"] } diff --git a/node/network/availability-distribution/Cargo.toml b/node/network/availability-distribution/Cargo.toml index 466da985ab99..d72729468641 100644 --- a/node/network/availability-distribution/Cargo.toml +++ b/node/network/availability-distribution/Cargo.toml @@ -16,7 +16,7 @@ polkadot-node-subsystem-util = { path = "../../subsystem-util" } polkadot-node-primitives = { path = "../../primitives" } sp-core = { git = "https://github.com/paritytech/substrate", branch = "master", features = ["std"] } sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } -thiserror = "1.0.26" +thiserror = "1.0.30" rand = "0.8.3" derive_more = "0.99.11" lru = "0.7.0" diff --git a/node/network/availability-recovery/Cargo.toml b/node/network/availability-recovery/Cargo.toml index efa30b41c52c..08f39ed7846d 100644 --- a/node/network/availability-recovery/Cargo.toml +++ b/node/network/availability-recovery/Cargo.toml @@ -8,7 +8,7 @@ edition = "2018" futures = "0.3.17" lru = "0.7.0" rand = "0.8.3" -thiserror = "1.0.26" +thiserror = "1.0.30" tracing = "0.1.29" polkadot-erasure-coding = { path = "../../../erasure-coding" } diff --git a/node/network/collator-protocol/Cargo.toml b/node/network/collator-protocol/Cargo.toml index c018cbeb16b0..3cc56538f79b 100644 --- a/node/network/collator-protocol/Cargo.toml +++ b/node/network/collator-protocol/Cargo.toml @@ -9,7 +9,7 @@ always-assert = "0.1.2" derive_more = "0.99.14" futures = "0.3.17" futures-timer = "3" -thiserror = "1.0.26" +thiserror = "1.0.30" tracing = "0.1.29" sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/node/network/dispute-distribution/Cargo.toml b/node/network/dispute-distribution/Cargo.toml index dd99d4159934..cfa85f9fac02 100644 --- a/node/network/dispute-distribution/Cargo.toml +++ b/node/network/dispute-distribution/Cargo.toml @@ -18,7 +18,7 @@ polkadot-node-primitives = { path = "../../primitives" } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-application-crypto = { git = "https://github.com/paritytech/substrate", branch = "master" } sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "master" } -thiserror = "1.0.26" +thiserror = "1.0.30" lru = "0.7.0" [dev-dependencies] diff --git a/node/network/protocol/Cargo.toml b/node/network/protocol/Cargo.toml index e14d81340ea6..3afc14e375e9 100644 --- a/node/network/protocol/Cargo.toml +++ b/node/network/protocol/Cargo.toml @@ -16,4 +16,4 @@ sc-authority-discovery = { git = "https://github.com/paritytech/substrate", bran strum = { version = "0.22", features = ["derive"] } derive_more = "0.99.11" futures = "0.3.17" -thiserror = "1.0.26" +thiserror = "1.0.30" diff --git a/node/network/statement-distribution/Cargo.toml b/node/network/statement-distribution/Cargo.toml index fc594fd18285..def653fcaa11 100644 --- a/node/network/statement-distribution/Cargo.toml +++ b/node/network/statement-distribution/Cargo.toml @@ -19,7 +19,7 @@ arrayvec = "0.5.2" indexmap = "1.7.0" parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] } derive_more = "0.99.11" -thiserror = "1.0.26" +thiserror = "1.0.30" [dev-dependencies] polkadot-node-subsystem-test-helpers = { path = "../../subsystem-test-helpers" } diff --git a/node/primitives/Cargo.toml b/node/primitives/Cargo.toml index 4a6d9abb6880..55596573f45b 100644 --- a/node/primitives/Cargo.toml +++ b/node/primitives/Cargo.toml @@ -18,7 +18,7 @@ sp-keystore = { git = "https://github.com/paritytech/substrate", branch = "maste sp-maybe-compressed-blob = { git = "https://github.com/paritytech/substrate", branch = "master" } polkadot-parachain = { path = "../../parachain", default-features = false } schnorrkel = "0.9.1" -thiserror = "1.0.26" +thiserror = "1.0.30" serde = { version = "1.0.130", features = ["derive"] } [target.'cfg(not(target_os = "unknown"))'.dependencies] diff --git a/node/service/Cargo.toml b/node/service/Cargo.toml index 6ca1f6669292..622421be159b 100644 --- a/node/service/Cargo.toml +++ b/node/service/Cargo.toml @@ -64,7 +64,7 @@ futures = "0.3.17" hex-literal = "0.3.3" tracing = "0.1.29" serde = { version = "1.0.130", features = ["derive"] } -thiserror = "1.0.26" +thiserror = "1.0.30" kvdb = "0.10.0" kvdb-rocksdb = { version = "0.14.0", optional = true } async-trait = "0.1.51" diff --git a/node/subsystem-types/Cargo.toml b/node/subsystem-types/Cargo.toml index 0fa9a96f1a43..2850cb21d504 100644 --- a/node/subsystem-types/Cargo.toml +++ b/node/subsystem-types/Cargo.toml @@ -17,4 +17,4 @@ polkadot-overseer-gen = { path = "../overseer/overseer-gen" } sc-network = { git = "https://github.com/paritytech/substrate", branch = "master" } smallvec = "1.6.1" substrate-prometheus-endpoint = { git = "https://github.com/paritytech/substrate", branch = "master" } -thiserror = "1.0.26" +thiserror = "1.0.30" diff --git a/node/subsystem-util/Cargo.toml b/node/subsystem-util/Cargo.toml index 4da5b8d7171d..5d9a88581974 100644 --- a/node/subsystem-util/Cargo.toml +++ b/node/subsystem-util/Cargo.toml @@ -12,7 +12,7 @@ itertools = "0.10" parity-scale-codec = { version = "2.3.1", default-features = false, features = ["derive"] } pin-project = "1.0.8" rand = "0.8.3" -thiserror = "1.0.26" +thiserror = "1.0.30" tracing = "0.1.29" derive_more = "0.99.11" lru = "0.7.0" diff --git a/utils/staking-miner/Cargo.toml b/utils/staking-miner/Cargo.toml index 593d1a1bf2cd..bfc07614f5e6 100644 --- a/utils/staking-miner/Cargo.toml +++ b/utils/staking-miner/Cargo.toml @@ -14,7 +14,7 @@ jsonrpsee-ws-client = { version = "0.3.1", default-features = false, features = serde_json = "1.0" serde = "1.0.130" paste = "1.0.5" -thiserror = "1.0.26" +thiserror = "1.0.30" remote-externalities = { git = "https://github.com/paritytech/substrate", branch = "master" } From 7c63ac8373db52f923c72f7a1c17676faba5beb1 Mon Sep 17 00:00:00 2001 From: Bernhard Schuster Date: Mon, 11 Oct 2021 18:59:45 +0200 Subject: [PATCH 26/40] overseer: simplify debugging some more (#4053) * overseer: simplify debugging some more * chore: undo gitignore change --- node/overseer/overseer-gen/proc-macro/build.rs | 2 ++ .../overseer-gen/proc-macro/src/lib.rs | 18 ++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) create mode 100644 node/overseer/overseer-gen/proc-macro/build.rs diff --git a/node/overseer/overseer-gen/proc-macro/build.rs b/node/overseer/overseer-gen/proc-macro/build.rs new file mode 100644 index 000000000000..ebc4e5d75ab5 --- /dev/null +++ b/node/overseer/overseer-gen/proc-macro/build.rs @@ -0,0 +1,2 @@ +/// A dummy build script, so `OUT_DIR` is set. +fn main() {} diff --git a/node/overseer/overseer-gen/proc-macro/src/lib.rs b/node/overseer/overseer-gen/proc-macro/src/lib.rs index 1a0634b29720..1c7d32d6449f 100644 --- a/node/overseer/overseer-gen/proc-macro/src/lib.rs +++ b/node/overseer/overseer-gen/proc-macro/src/lib.rs @@ -98,12 +98,12 @@ pub(crate) fn impl_overseer_gen( additive.extend(impl_message_wrapper_enum(&info)?); additive.extend(impl_dispatch(&info)); - #[cfg(feature = "expansion")] - { + if cfg!(feature = "expansion") { use std::io::Write; - let cwd = std::env::current_dir().unwrap(); - let path: std::path::PathBuf = cwd.join("overlord-expansion.rs"); + let out = env!("OUT_DIR"); + let out = std::path::PathBuf::from(out); + let path = out.join("overlord-expansion.rs"); let mut f = std::fs::OpenOptions::new() .write(true) .create(true) @@ -117,9 +117,15 @@ pub(crate) fn impl_overseer_gen( std::process::Command::new("rustfmt") .arg("--edition=2018") .arg(&path) - .current_dir(cwd) + .current_dir(out) .spawn() .expect("Running rustfmt works. qed"); + + let path = path.display().to_string(); + Ok(quote! { + include!( #path ); + }) + } else { + Ok(additive) } - Ok(additive) } From 3bc7afae4145a06fac75e772d44a46ab824d3a93 Mon Sep 17 00:00:00 2001 From: Squirrel Date: Tue, 12 Oct 2021 11:06:12 +0100 Subject: [PATCH 27/40] Companion PR for ss58 crate (#3953) * Companion PR for ss58 crate * cargo fmt * Rename * into() * into() * updating substrate (ideally use bot merge) --- Cargo.lock | 507 ++++++++++++++------------------ cli/src/command.rs | 12 +- utils/staking-miner/src/main.rs | 6 +- 3 files changed, 237 insertions(+), 288 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 9d4d182649a1..3c1da898a1e2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -461,14 +461,14 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "beefy-primitives", "fnv", "futures 0.3.17", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sc-keystore", "sc-network", @@ -489,7 +489,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -509,12 +509,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -1100,15 +1100,6 @@ dependencies = [ "vec_map", ] -[[package]] -name = "cloudabi" -version = "0.0.3" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ddfc5b9aa5d4507acaf872de71051dfd0e309860e88966e1051e462a077aac4f" -dependencies = [ - "bitflags", -] - [[package]] name = "cloudabi" version = "0.1.0" @@ -1733,15 +1724,6 @@ version = "1.1.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "68b91989ae21441195d7d9b9993a2f9295c7e1a8c96255d8b729accddc124797" -[[package]] -name = "erased-serde" -version = "0.3.12" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6ca8b296792113e1500fd935ae487be6e00ce318952a6880555554824d6ebf38" -dependencies = [ - "serde", -] - [[package]] name = "errno" version = "0.2.5" @@ -1883,7 +1865,7 @@ dependencies = [ "log", "num-traits", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "scale-info", ] @@ -1927,7 +1909,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", ] @@ -1945,7 +1927,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -1965,7 +1947,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "Inflector", "chrono", @@ -1991,7 +1973,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -2005,7 +1987,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -2033,7 +2015,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "bitflags", "frame-metadata", @@ -2060,7 +2042,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2072,7 +2054,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2084,7 +2066,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro2", "quote", @@ -2094,7 +2076,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2117,7 +2099,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -2128,7 +2110,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "log", @@ -2145,7 +2127,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -2160,7 +2142,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "sp-api", @@ -2169,7 +2151,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "sp-api", @@ -2382,7 +2364,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "chrono", "frame-election-provider-support", @@ -2994,7 +2976,7 @@ dependencies = [ "jsonrpc-server-utils", "log", "net2", - "parking_lot 0.11.1", + "parking_lot", "unicase", ] @@ -3009,7 +2991,7 @@ dependencies = [ "jsonrpc-server-utils", "log", "parity-tokio-ipc", - "parking_lot 0.11.1", + "parking_lot", "tower-service", ] @@ -3023,7 +3005,7 @@ dependencies = [ "jsonrpc-core", "lazy_static", "log", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "serde", ] @@ -3057,7 +3039,7 @@ dependencies = [ "jsonrpc-server-utils", "log", "parity-ws", - "parking_lot 0.11.1", + "parking_lot", "slab", ] @@ -3250,7 +3232,7 @@ checksum = "c3b6b85fc643f5acd0bffb2cc8a6d150209379267af0d41db72170021841f9f5" dependencies = [ "kvdb", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", ] [[package]] @@ -3265,7 +3247,7 @@ dependencies = [ "num_cpus", "owning_ref", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "regex", "rocksdb", "smallvec", @@ -3360,7 +3342,7 @@ dependencies = [ "libp2p-websocket", "libp2p-yamux", "multiaddr", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "smallvec", "wasm-timer", @@ -3385,7 +3367,7 @@ dependencies = [ "multiaddr", "multihash 0.14.0", "multistream-select", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "prost", "prost-build", @@ -3544,7 +3526,7 @@ dependencies = [ "libp2p-core", "log", "nohash-hasher", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "smallvec", "unsigned-varint 0.7.0", @@ -3756,7 +3738,7 @@ checksum = "214cc0dd9c37cbed27f0bb1eba0c41bbafdb93a8be5e9d6ae1e6b4b42cd044bf" dependencies = [ "futures 0.3.17", "libp2p-core", - "parking_lot 0.11.1", + "parking_lot", "thiserror", "yamux", ] @@ -3925,15 +3907,6 @@ dependencies = [ "statrs", ] -[[package]] -name = "lock_api" -version = "0.3.4" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c4da24a77a3d8a6d4862d95f72e6fdb9c09a643ecdb402d754004a557f2bec75" -dependencies = [ - "scopeguard", -] - [[package]] name = "lock_api" version = "0.4.1" @@ -4611,7 +4584,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4625,7 +4598,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -4641,7 +4614,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -4656,7 +4629,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4680,7 +4653,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4700,7 +4673,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4715,7 +4688,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "beefy-primitives", "frame-support", @@ -4731,7 +4704,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4756,7 +4729,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4841,7 +4814,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4858,7 +4831,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4874,7 +4847,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4898,7 +4871,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4916,7 +4889,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4931,7 +4904,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4954,7 +4927,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4970,7 +4943,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -4990,7 +4963,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5007,7 +4980,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5024,7 +4997,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5042,7 +5015,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5058,7 +5031,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5075,7 +5048,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5090,7 +5063,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5104,7 +5077,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5121,7 +5094,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5144,7 +5117,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5159,7 +5132,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5173,7 +5146,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5189,7 +5162,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5210,7 +5183,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5226,7 +5199,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5240,7 +5213,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5263,7 +5236,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5274,7 +5247,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "log", "sp-arithmetic", @@ -5283,7 +5256,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5297,7 +5270,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5315,7 +5288,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5334,7 +5307,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-support", "frame-system", @@ -5351,7 +5324,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5368,7 +5341,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5379,7 +5352,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5396,7 +5369,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5412,7 +5385,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-benchmarking", "frame-support", @@ -5485,7 +5458,7 @@ dependencies = [ "log", "lz4", "memmap2", - "parking_lot 0.11.1", + "parking_lot", "rand 0.8.4", "snap", ] @@ -5548,7 +5521,7 @@ dependencies = [ "impl-trait-for-tuples", "lru 0.6.6", "parity-util-mem-derive", - "parking_lot 0.11.1", + "parking_lot", "primitive-types", "smallvec", "tikv-jemalloc-ctl", @@ -5606,16 +5579,6 @@ version = "2.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "427c3892f9e783d91cc128285287e70a59e206ca452770ece88a76f7a3eddd72" -[[package]] -name = "parking_lot" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d3a704eb390aafdc107b0e392f56a82b668e3a71366993b5340f5833fd62505e" -dependencies = [ - "lock_api 0.3.4", - "parking_lot_core 0.7.2", -] - [[package]] name = "parking_lot" version = "0.11.1" @@ -5623,22 +5586,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6d7744ac029df22dca6284efe4e898991d28e3085c706c972bcd7da4a27a15eb" dependencies = [ "instant", - "lock_api 0.4.1", - "parking_lot_core 0.8.0", -] - -[[package]] -name = "parking_lot_core" -version = "0.7.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d58c7c768d4ba344e3e8d72518ac13e259d7c7ade24167003b8488e10b6740a3" -dependencies = [ - "cfg-if 0.1.10", - "cloudabi 0.0.3", - "libc", - "redox_syscall 0.1.56", - "smallvec", - "winapi 0.3.9", + "lock_api", + "parking_lot_core", ] [[package]] @@ -5648,7 +5597,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c361aa727dd08437f2f1447be8b59a33b0edd15e0fcee698f935613d9efbca9b" dependencies = [ "cfg-if 0.1.10", - "cloudabi 0.1.0", + "cloudabi", "instant", "libc", "redox_syscall 0.1.56", @@ -6096,7 +6045,7 @@ dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "polkadot-node-network-protocol", "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", @@ -6142,7 +6091,7 @@ dependencies = [ "lru 0.7.0", "merlin", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "polkadot-node-jaeger", "polkadot-node-primitives", "polkadot-node-subsystem", @@ -6177,7 +6126,7 @@ dependencies = [ "kvdb-memorydb", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "polkadot-erasure-coding", "polkadot-node-primitives", "polkadot-node-subsystem", @@ -6280,7 +6229,7 @@ dependencies = [ "kvdb", "kvdb-memorydb", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "polkadot-node-primitives", "polkadot-node-subsystem", "polkadot-node-subsystem-test-helpers", @@ -6426,7 +6375,7 @@ dependencies = [ "log", "mick-jaeger", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "polkadot-node-primitives", "polkadot-primitives", "sc-network", @@ -6498,7 +6447,7 @@ version = "0.9.11" dependencies = [ "async-trait", "futures 0.3.17", - "parking_lot 0.11.1", + "parking_lot", "polkadot-node-subsystem", "polkadot-node-subsystem-util", "polkadot-overseer", @@ -6569,7 +6518,7 @@ dependencies = [ "lru 0.7.0", "metered-channel", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "polkadot-node-metrics", "polkadot-node-network-protocol", "polkadot-node-primitives", @@ -7423,7 +7372,7 @@ dependencies = [ "fnv", "lazy_static", "memchr", - "parking_lot 0.11.1", + "parking_lot", "thiserror", ] @@ -7808,7 +7757,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8071,7 +8020,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "log", "sp-core", @@ -8082,7 +8031,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "derive_more", @@ -8109,7 +8058,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8132,7 +8081,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8148,7 +8097,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8164,7 +8113,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8175,7 +8124,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "chrono", "fdlimit", @@ -8213,14 +8162,14 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "fnv", "futures 0.3.17", "hash-db", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-executor", "sc-transaction-pool-api", "sc-utils", @@ -8241,7 +8190,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "hash-db", "kvdb", @@ -8251,7 +8200,7 @@ dependencies = [ "log", "parity-db", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sc-state-db", "sp-arithmetic", @@ -8266,14 +8215,14 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "futures 0.3.17", "futures-timer 3.0.2", "libp2p", "log", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sc-utils", "serde", @@ -8290,7 +8239,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "derive_more", @@ -8302,7 +8251,7 @@ dependencies = [ "num-rational 0.2.4", "num-traits", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "retain_mut", "sc-client-api", @@ -8333,7 +8282,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "derive_more", "futures 0.3.17", @@ -8357,7 +8306,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8370,7 +8319,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "assert_matches", "async-trait", @@ -8404,7 +8353,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "futures 0.3.17", @@ -8430,7 +8379,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "sc-client-api", "sp-authorship", @@ -8441,13 +8390,13 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-executor-common", "sc-executor-wasmi", "sc-executor-wasmtime", @@ -8467,7 +8416,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "derive_more", "environmental", @@ -8485,7 +8434,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "log", "parity-scale-codec", @@ -8501,7 +8450,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8519,7 +8468,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "derive_more", @@ -8530,7 +8479,7 @@ dependencies = [ "futures-timer 3.0.2", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.8.4", "sc-block-builder", "sc-client-api", @@ -8556,7 +8505,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "derive_more", "finality-grandpa", @@ -8580,7 +8529,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8597,12 +8546,12 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "derive_more", "hex", - "parking_lot 0.11.1", + "parking_lot", "serde_json", "sp-application-crypto", "sp-core", @@ -8612,11 +8561,11 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "hash-db", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sc-executor", "sp-api", @@ -8630,7 +8579,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-std", "async-trait", @@ -8652,7 +8601,7 @@ dependencies = [ "log", "lru 0.6.6", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "prost", "prost-build", @@ -8681,7 +8630,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8697,7 +8646,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "bytes 1.0.1", "fnv", @@ -8709,7 +8658,7 @@ dependencies = [ "log", "num_cpus", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "sc-client-api", "sc-network", @@ -8724,7 +8673,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "libp2p", @@ -8737,7 +8686,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8746,7 +8695,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "hash-db", @@ -8754,7 +8703,7 @@ dependencies = [ "jsonrpc-pubsub", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-block-builder", "sc-chain-spec", "sc-client-api", @@ -8777,7 +8726,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8786,7 +8735,7 @@ dependencies = [ "jsonrpc-pubsub", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sc-chain-spec", "sc-transaction-pool-api", "serde", @@ -8802,7 +8751,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8819,7 +8768,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "directories", @@ -8832,7 +8781,7 @@ dependencies = [ "log", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "rand 0.7.3", "sc-block-builder", @@ -8884,13 +8833,13 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "log", "parity-scale-codec", "parity-util-mem", "parity-util-mem-derive", - "parking_lot 0.11.1", + "parking_lot", "sc-client-api", "sp-core", ] @@ -8898,7 +8847,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8920,13 +8869,13 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "chrono", "futures 0.3.17", "libp2p", "log", - "parking_lot 0.11.1", + "parking_lot", "pin-project 1.0.8", "rand 0.7.3", "serde", @@ -8938,7 +8887,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8946,7 +8895,7 @@ dependencies = [ "lazy_static", "log", "once_cell", - "parking_lot 0.11.1", + "parking_lot", "regex", "rustc-hash", "sc-client-api", @@ -8968,7 +8917,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8979,7 +8928,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "intervalier", @@ -8987,7 +8936,7 @@ dependencies = [ "log", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "retain_mut", "sc-client-api", "sc-transaction-pool-api", @@ -9006,7 +8955,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "derive_more", "futures 0.3.17", @@ -9020,7 +8969,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9357,15 +9306,6 @@ version = "0.4.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c111b5bd5695e56cffe5129854aa230b39c93a305372fdbb2668ca2394eea9f8" -[[package]] -name = "slog" -version = "2.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8347046d4ebd943127157b94d63abb990fcf729dc4e9978927fdf4ac3c998d06" -dependencies = [ - "erased-serde", -] - [[package]] name = "slot-range-helper" version = "0.9.11" @@ -9472,7 +9412,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "hash-db", "log", @@ -9489,7 +9429,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9501,7 +9441,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -9514,7 +9454,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "integer-sqrt", "num-traits", @@ -9529,7 +9469,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -9542,7 +9482,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "parity-scale-codec", @@ -9554,7 +9494,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "sp-api", @@ -9566,13 +9506,13 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "log", "lru 0.6.6", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sp-api", "sp-consensus", "sp-database", @@ -9584,7 +9524,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "futures 0.3.17", @@ -9603,7 +9543,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "merlin", @@ -9626,7 +9566,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -9637,7 +9577,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9649,7 +9589,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "base58", "blake2-rfc", @@ -9668,7 +9608,7 @@ dependencies = [ "num-traits", "parity-scale-codec", "parity-util-mem", - "parking_lot 0.11.1", + "parking_lot", "primitive-types", "rand 0.7.3", "regex", @@ -9682,6 +9622,7 @@ dependencies = [ "sp-runtime-interface", "sp-std", "sp-storage", + "ss58-registry", "substrate-bip39", "thiserror", "tiny-bip39", @@ -9694,16 +9635,16 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "kvdb", - "parking_lot 0.11.1", + "parking_lot", ] [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro2", "quote", @@ -9713,7 +9654,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "environmental", "parity-scale-codec", @@ -9724,7 +9665,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "finality-grandpa", "log", @@ -9742,7 +9683,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9756,14 +9697,14 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "hash-db", "libsecp256k1 0.6.0", "log", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "sp-core", "sp-externalities", "sp-keystore", @@ -9780,7 +9721,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "lazy_static", "sp-core", @@ -9791,14 +9732,14 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "derive_more", "futures 0.3.17", "merlin", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "schnorrkel", "serde", "sp-core", @@ -9808,7 +9749,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "zstd", ] @@ -9816,7 +9757,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -9831,7 +9772,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9842,7 +9783,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "sp-api", "sp-core", @@ -9852,7 +9793,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "backtrace", ] @@ -9860,7 +9801,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "rustc-hash", "serde", @@ -9870,7 +9811,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "either", "hash256-std-hasher", @@ -9892,7 +9833,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9909,7 +9850,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9921,7 +9862,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "serde", "serde_json", @@ -9930,7 +9871,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -9944,7 +9885,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "scale-info", @@ -9955,13 +9896,13 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "hash-db", "log", "num-traits", "parity-scale-codec", - "parking_lot 0.11.1", + "parking_lot", "rand 0.7.3", "smallvec", "sp-core", @@ -9978,12 +9919,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9996,7 +9937,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "log", "sp-core", @@ -10009,7 +9950,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -10025,15 +9966,9 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ - "erased-serde", - "log", "parity-scale-codec", - "parking_lot 0.10.2", - "serde", - "serde_json", - "slog", "sp-std", "tracing", "tracing-core", @@ -10043,7 +9978,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "sp-api", "sp-runtime", @@ -10052,7 +9987,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "log", @@ -10068,7 +10003,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "hash-db", "memory-db", @@ -10083,7 +10018,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10099,7 +10034,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10110,7 +10045,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10124,6 +10059,20 @@ version = "0.5.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "6e63cff320ae2c57904679ba7cb63280a3dc4613885beafb148ee7bf9aa9042d" +[[package]] +name = "ss58-registry" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ef2413ecc7946ca99368862851dc1359f1477bc654ecfb135cf3efcb85ceca5f" +dependencies = [ + "Inflector", + "proc-macro2", + "quote", + "serde", + "serde_json", + "unicode-xid", +] + [[package]] name = "stable_deref_trait" version = "1.1.1" @@ -10180,7 +10129,7 @@ checksum = "11b73400442027c4adedda20a9f9b7945234a5bd8d5f7e86da22bd5d0622369c" dependencies = [ "cfg_aliases", "libc", - "parking_lot 0.11.1", + "parking_lot", "static_init_macro", ] @@ -10324,7 +10273,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "platforms", ] @@ -10332,7 +10281,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10354,7 +10303,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-std", "derive_more", @@ -10368,7 +10317,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "async-trait", "futures 0.3.17", @@ -10395,7 +10344,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10405,7 +10354,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10416,7 +10365,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10569,7 +10518,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "frame-system", "futures 0.3.17", @@ -10994,7 +10943,7 @@ dependencies = [ "lazy_static", "log", "lru-cache", - "parking_lot 0.11.1", + "parking_lot", "resolv-conf", "smallvec", "thiserror", @@ -11010,7 +10959,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66fd76181742a1fa27b4ab5c41eb15d9765e6774" +source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" dependencies = [ "jsonrpsee-ws-client", "log", @@ -11368,7 +11317,7 @@ checksum = "be0ecb0db480561e9a7642b5d3e4187c128914e58aa84330b9493e3eb68c5e7f" dependencies = [ "futures 0.3.17", "js-sys", - "parking_lot 0.11.1", + "parking_lot", "pin-utils", "wasm-bindgen", "wasm-bindgen-futures", @@ -11946,7 +11895,7 @@ dependencies = [ "futures 0.3.17", "log", "nohash-hasher", - "parking_lot 0.11.1", + "parking_lot", "rand 0.8.4", "static_assertions", ] diff --git a/cli/src/command.rs b/cli/src/command.rs index c9ba571e828c..d9460dd5ac63 100644 --- a/cli/src/command.rs +++ b/cli/src/command.rs @@ -19,6 +19,7 @@ use futures::future::TryFutureExt; use log::info; use sc_cli::{Role, RuntimeVersion, SubstrateCli}; use service::{self, IdentifyVariant}; +use sp_core::crypto::Ss58AddressFormatRegistry; #[derive(thiserror::Error, Debug)] pub enum Error { @@ -191,15 +192,14 @@ impl SubstrateCli for Cli { } fn set_default_ss58_version(spec: &Box) { - use sp_core::crypto::Ss58AddressFormat; - let ss58_version = if spec.is_kusama() { - Ss58AddressFormat::KusamaAccount + Ss58AddressFormatRegistry::KusamaAccount } else if spec.is_westend() { - Ss58AddressFormat::SubstrateAccount + Ss58AddressFormatRegistry::SubstrateAccount } else { - Ss58AddressFormat::PolkadotAccount - }; + Ss58AddressFormatRegistry::PolkadotAccount + } + .into(); sp_core::crypto::set_default_ss58_version(ss58_version); } diff --git a/utils/staking-miner/src/main.rs b/utils/staking-miner/src/main.rs index b3f504ff2d07..96f34648d27b 100644 --- a/utils/staking-miner/src/main.rs +++ b/utils/staking-miner/src/main.rs @@ -534,7 +534,7 @@ async fn main() { match chain.to_lowercase().as_str() { "polkadot" | "development" => { sp_core::crypto::set_default_ss58_version( - sp_core::crypto::Ss58AddressFormat::PolkadotAccount, + sp_core::crypto::Ss58AddressFormatRegistry::PolkadotAccount.into(), ); sub_tokens::dynamic::set_name("DOT"); sub_tokens::dynamic::set_decimal_points(10_000_000_000); @@ -546,7 +546,7 @@ async fn main() { }, "kusama" | "kusama-dev" => { sp_core::crypto::set_default_ss58_version( - sp_core::crypto::Ss58AddressFormat::KusamaAccount, + sp_core::crypto::Ss58AddressFormatRegistry::KusamaAccount.into(), ); sub_tokens::dynamic::set_name("KSM"); sub_tokens::dynamic::set_decimal_points(1_000_000_000_000); @@ -558,7 +558,7 @@ async fn main() { }, "westend" => { sp_core::crypto::set_default_ss58_version( - sp_core::crypto::Ss58AddressFormat::PolkadotAccount, + sp_core::crypto::Ss58AddressFormatRegistry::PolkadotAccount.into(), ); sub_tokens::dynamic::set_name("WND"); sub_tokens::dynamic::set_decimal_points(1_000_000_000_000); From b0d7990abeabc16a2df0e627082644f5897b2f54 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 12 Oct 2021 12:37:57 +0200 Subject: [PATCH 28/40] Bump trybuild from 1.0.49 to 1.0.50 (#4060) Bumps [trybuild](https://github.com/dtolnay/trybuild) from 1.0.49 to 1.0.50. - [Release notes](https://github.com/dtolnay/trybuild/releases) - [Commits](https://github.com/dtolnay/trybuild/compare/1.0.49...1.0.50) --- updated-dependencies: - dependency-name: trybuild dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- node/overseer/overseer-gen/Cargo.toml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 3c1da898a1e2..60fbf6077fac 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -10982,9 +10982,9 @@ dependencies = [ [[package]] name = "trybuild" -version = "1.0.49" +version = "1.0.50" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "11b533b653278ed89f93da2508e324ce9c7ef4af686521ebe4e6516fc9f3fd8d" +checksum = "dbaccfa9796293406a02ec790614628c88d0b3246249a620ac1ee7076274716b" dependencies = [ "glob", "lazy_static", diff --git a/node/overseer/overseer-gen/Cargo.toml b/node/overseer/overseer-gen/Cargo.toml index 6855e85e69c1..c5cbae7f6cd0 100644 --- a/node/overseer/overseer-gen/Cargo.toml +++ b/node/overseer/overseer-gen/Cargo.toml @@ -19,4 +19,4 @@ futures-timer = "3.0.2" pin-project = "1.0" [dev-dependencies] -trybuild = "1.0.49" +trybuild = "1.0.50" From dd77681fe8fa5012559c1fb2c5b3ea32ef812abe Mon Sep 17 00:00:00 2001 From: Vincent Ulitzsch Date: Tue, 12 Oct 2021 13:37:06 +0200 Subject: [PATCH 29/40] Add xcm fuzzer (#3869) * Extend xcm-simulator with a fuzzer for xcm exec This commit adds a very basic fuzzer that fuzzes the xcm exectution, in particular the process_instruction function. * Update cargo.toml in xcm-simulator-fuzzer * Add xcm-fuzzer to honggfuzz workflow * Update Cargo.lock * Update xcm/xcm-simulator/fuzzer/Cargo.toml so honggfuzz shows up on top Co-authored-by: Keith Yeung * Update relay_chain.rs in xcm-fuzzer * Use MAX_XCM_DECODE_DEPTH instead of hardcoded decode limit in xcm-fuzzer * Add comment on how to generate coverage report in xcm-fuzzer * fix warnings, fmt, and unused result * fix compiler Co-authored-by: Vincent Ulitzsch Co-authored-by: Vincent Ulitzsch Co-authored-by: Shawn Tabrizi Co-authored-by: Keith Yeung --- .github/workflows/honggfuzz.yml | 39 +++ Cargo.lock | 51 +++ Cargo.toml | 1 + xcm/xcm-simulator/fuzzer/Cargo.toml | 32 ++ xcm/xcm-simulator/fuzzer/src/fuzz.rs | 166 ++++++++++ xcm/xcm-simulator/fuzzer/src/parachain.rs | 327 ++++++++++++++++++++ xcm/xcm-simulator/fuzzer/src/relay_chain.rs | 191 ++++++++++++ 7 files changed, 807 insertions(+) create mode 100644 xcm/xcm-simulator/fuzzer/Cargo.toml create mode 100644 xcm/xcm-simulator/fuzzer/src/fuzz.rs create mode 100644 xcm/xcm-simulator/fuzzer/src/parachain.rs create mode 100644 xcm/xcm-simulator/fuzzer/src/relay_chain.rs diff --git a/.github/workflows/honggfuzz.yml b/.github/workflows/honggfuzz.yml index ab1cdf0d2ef2..c04e6c12b4de 100644 --- a/.github/workflows/honggfuzz.yml +++ b/.github/workflows/honggfuzz.yml @@ -5,6 +5,45 @@ on: - cron: '0 0 * * *' jobs: + xcm-fuzzer: + runs-on: ubuntu-latest + steps: + - name: Checkout sources + uses: actions/checkout@v2 + with: + fetch-depth: 1 + + - name: Install minimal stable Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: stable + override: true + + - name: Install minimal nightly Rust + uses: actions-rs/toolchain@v1 + with: + profile: minimal + toolchain: nightly + target: wasm32-unknown-unknown + + - name: Install honggfuzz deps + run: sudo apt-get install --no-install-recommends binutils-dev libunwind8-dev + + - name: Install honggfuzz + uses: actions-rs/cargo@v1 + with: + command: install + args: honggfuzz --version "0.5.54" + + - name: Build fuzzer binaries + working-directory: xcm/xcm-simulator/fuzzer/ + run: cargo hfuzz build + + - name: Run fuzzer + working-directory: xcm/xcm-simulator/fuzzer/ + run: bash $GITHUB_WORKSPACE/scripts/github/run_fuzzer.sh xcm-fuzzer + erasure-coding-round-trip: runs-on: ubuntu-latest steps: diff --git a/Cargo.lock b/Cargo.lock index 60fbf6077fac..56bd75243345 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -121,6 +121,12 @@ dependencies = [ "num-traits", ] +[[package]] +name = "arbitrary" +version = "1.0.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "577b08a4acd7b99869f863c50011b01eb73424ccc798ecd996f2e24817adfca7" + [[package]] name = "arrayref" version = "0.3.6" @@ -2603,6 +2609,17 @@ dependencies = [ "hmac 0.8.1", ] +[[package]] +name = "honggfuzz" +version = "0.5.54" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bea09577d948a98a5f59b7c891e274c4fb35ad52f67782b3d0cb53b9c05301f1" +dependencies = [ + "arbitrary", + "lazy_static", + "memmap", +] + [[package]] name = "hostname" version = "0.3.1" @@ -4043,6 +4060,16 @@ version = "2.4.1" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "308cc39be01b73d0d18f82a0e7b2a3df85245f84af96fdddc5d202d27e47b86a" +[[package]] +name = "memmap" +version = "0.7.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" +dependencies = [ + "libc", + "winapi 0.3.9", +] + [[package]] name = "memmap2" version = "0.2.0" @@ -11886,6 +11913,30 @@ dependencies = [ "xcm-simulator", ] +[[package]] +name = "xcm-simulator-fuzzer" +version = "0.9.9" +dependencies = [ + "frame-support", + "frame-system", + "honggfuzz", + "pallet-balances", + "pallet-xcm", + "parity-scale-codec", + "polkadot-core-primitives", + "polkadot-parachain", + "polkadot-runtime-parachains", + "scale-info", + "sp-core", + "sp-io", + "sp-runtime", + "sp-std", + "xcm", + "xcm-builder", + "xcm-executor", + "xcm-simulator", +] + [[package]] name = "yamux" version = "0.9.0" diff --git a/Cargo.toml b/Cargo.toml index 114d7ab2e986..6d1257e39300 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -42,6 +42,7 @@ members = [ "xcm/xcm-executor/integration-tests", "xcm/xcm-simulator", "xcm/xcm-simulator/example", + "xcm/xcm-simulator/fuzzer", "xcm/pallet-xcm", "xcm/pallet-xcm-benchmarks", "xcm/procedural", diff --git a/xcm/xcm-simulator/fuzzer/Cargo.toml b/xcm/xcm-simulator/fuzzer/Cargo.toml new file mode 100644 index 000000000000..9fada9b71d55 --- /dev/null +++ b/xcm/xcm-simulator/fuzzer/Cargo.toml @@ -0,0 +1,32 @@ +[package] +name = "xcm-simulator-fuzzer" +version = "0.9.9" +authors = ["Parity Technologies "] +description = "Examples of xcm-simulator usage." +edition = "2018" + +[dependencies] +codec = { package = "parity-scale-codec", version = "2.0.0" } +honggfuzz = "0.5.54" +scale-info = { version = "1.0", features = ["derive"] } + +frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" } +frame-support = { git = "https://github.com/paritytech/substrate", branch = "master" } +pallet-balances = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-std = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-core = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "master" } +sp-io = { git = "https://github.com/paritytech/substrate", branch = "master" } + +xcm = { path = "../../" } +xcm-simulator = { path = "../" } +xcm-executor = { path = "../../xcm-executor" } +xcm-builder = { path = "../../xcm-builder" } +pallet-xcm = { path = "../../pallet-xcm" } +polkadot-core-primitives = { path = "../../../core-primitives" } +polkadot-runtime-parachains = { path = "../../../runtime/parachains" } +polkadot-parachain = { path = "../../../parachain" } + +[[bin]] +path = "src/fuzz.rs" +name = "xcm-fuzzer" diff --git a/xcm/xcm-simulator/fuzzer/src/fuzz.rs b/xcm/xcm-simulator/fuzzer/src/fuzz.rs new file mode 100644 index 000000000000..44516ab8a562 --- /dev/null +++ b/xcm/xcm-simulator/fuzzer/src/fuzz.rs @@ -0,0 +1,166 @@ +// Copyright 2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +mod parachain; +mod relay_chain; + +use codec::DecodeLimit; +use polkadot_parachain::primitives::Id as ParaId; +use sp_runtime::traits::AccountIdConversion; +use xcm_simulator::{decl_test_network, decl_test_parachain, decl_test_relay_chain, TestExt}; + +use frame_support::assert_ok; +use xcm::{latest::prelude::*, MAX_XCM_DECODE_DEPTH}; + +pub const ALICE: sp_runtime::AccountId32 = sp_runtime::AccountId32::new([0u8; 32]); +pub const INITIAL_BALANCE: u128 = 1_000_000_000; + +decl_test_parachain! { + pub struct ParaA { + Runtime = parachain::Runtime, + XcmpMessageHandler = parachain::MsgQueue, + DmpMessageHandler = parachain::MsgQueue, + new_ext = para_ext(1), + } +} + +decl_test_parachain! { + pub struct ParaB { + Runtime = parachain::Runtime, + XcmpMessageHandler = parachain::MsgQueue, + DmpMessageHandler = parachain::MsgQueue, + new_ext = para_ext(2), + } +} + +decl_test_relay_chain! { + pub struct Relay { + Runtime = relay_chain::Runtime, + XcmConfig = relay_chain::XcmConfig, + new_ext = relay_ext(), + } +} + +decl_test_network! { + pub struct MockNet { + relay_chain = Relay, + parachains = vec![ + (1, ParaA), + (2, ParaB), + ], + } +} + +pub fn para_account_id(id: u32) -> relay_chain::AccountId { + ParaId::from(id).into_account() +} + +pub fn para_ext(para_id: u32) -> sp_io::TestExternalities { + use parachain::{MsgQueue, Runtime, System}; + + let mut t = frame_system::GenesisConfig::default().build_storage::().unwrap(); + + pallet_balances::GenesisConfig:: { balances: vec![(ALICE, INITIAL_BALANCE)] } + .assimilate_storage(&mut t) + .unwrap(); + + let mut ext = sp_io::TestExternalities::new(t); + ext.execute_with(|| { + System::set_block_number(1); + MsgQueue::set_para_id(para_id.into()); + }); + ext +} + +pub fn relay_ext() -> sp_io::TestExternalities { + use relay_chain::{Runtime, System}; + + let mut t = frame_system::GenesisConfig::default().build_storage::().unwrap(); + + pallet_balances::GenesisConfig:: { + balances: vec![(ALICE, INITIAL_BALANCE), (para_account_id(1), INITIAL_BALANCE)], + } + .assimilate_storage(&mut t) + .unwrap(); + + let mut ext = sp_io::TestExternalities::new(t); + ext.execute_with(|| System::set_block_number(1)); + ext +} + +pub type RelayChainPalletXcm = pallet_xcm::Pallet; +pub type ParachainPalletXcm = pallet_xcm::Pallet; + +fn run_one_input(data: &[u8]) { + MockNet::reset(); + if let Ok(m) = Xcm::decode_all_with_depth_limit(MAX_XCM_DECODE_DEPTH, data) { + #[cfg(not(fuzzing))] + { + println!("Executing message {:?}", m); + } + ParaA::execute_with(|| { + assert_ok!(ParachainPalletXcm::send_xcm(Here, Parent, m)); + }); + Relay::execute_with(|| {}); + } +} + +fn main() { + #[cfg(fuzzing)] + { + loop { + fuzz!(|data: &[u8]| { + run_one_input(data); + }); + } + } + #[cfg(not(fuzzing))] + { + //This code path can be used to generate a line-code coverage report in html + //that depicts which lines are executed by at least one input in the current fuzzing queue. + //To generate this code coverage report, run the following commands: + /* + ``` + export CARGO_INCREMENTAL=0 + export RUSTFLAGS="-Zprofile -Ccodegen-units=1 -Copt-level=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests -Cpanic=abort" + export RUSTDOCFLAGS="-Cpanic=abort" + rustup override set nightly + SKIP_WASM_BUILD=1 cargo build + ./xcm/xcm-simulator/fuzzer/target/debug/xcm-fuzzer hfuzz_workspace/xcm-fuzzer/input + zip -0 ccov.zip `find ../../target/debug \( -name "*.gc*" -o -name "test-*.gc*" \) -print` + grcov ccov.zip -s / -t html --llvm --branch --ignore-not-existing -o ../../target/debug/coverage/ + ``` + */ + use std::{env, fs, fs::File, io::Read}; + let args: Vec<_> = env::args().collect(); + let md = fs::metadata(&args[1]).unwrap(); + let all_files = match md.is_dir() { + true => fs::read_dir(&args[1]) + .unwrap() + .map(|x| x.unwrap().path().to_str().unwrap().to_string()) + .collect::>(), + false => (&args[1..]).to_vec(), + }; + println!("All_files {:?}", all_files); + for argument in all_files { + println!("Now doing file {:?}", argument); + let mut buffer: Vec = Vec::new(); + let mut f = File::open(argument).unwrap(); + f.read_to_end(&mut buffer).unwrap(); + run_one_input(&buffer.as_slice()); + } + } +} diff --git a/xcm/xcm-simulator/fuzzer/src/parachain.rs b/xcm/xcm-simulator/fuzzer/src/parachain.rs new file mode 100644 index 000000000000..3911bf8e3578 --- /dev/null +++ b/xcm/xcm-simulator/fuzzer/src/parachain.rs @@ -0,0 +1,327 @@ +// Copyright 2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +//! Parachain runtime mock. + +use codec::{Decode, Encode}; +use frame_support::{ + construct_runtime, parameter_types, + traits::{Everything, Nothing}, + weights::{constants::WEIGHT_PER_SECOND, Weight}, +}; +use sp_core::H256; +use sp_runtime::{ + testing::Header, + traits::{Hash, IdentityLookup}, + AccountId32, +}; +use sp_std::{convert::TryFrom, prelude::*}; + +use pallet_xcm::XcmPassthrough; +use polkadot_core_primitives::BlockNumber as RelayBlockNumber; +use polkadot_parachain::primitives::{ + DmpMessageHandler, Id as ParaId, Sibling, XcmpMessageFormat, XcmpMessageHandler, +}; +use xcm::{latest::prelude::*, VersionedXcm}; +use xcm_builder::{ + AccountId32Aliases, AllowUnpaidExecutionFrom, CurrencyAdapter as XcmCurrencyAdapter, + EnsureXcmOrigin, FixedRateOfFungible, FixedWeightBounds, IsConcrete, LocationInverter, + NativeAsset, ParentIsDefault, SiblingParachainConvertsVia, SignedAccountId32AsNative, + SignedToAccountId32, SovereignSignedViaLocation, +}; +use xcm_executor::{Config, XcmExecutor}; + +pub type AccountId = AccountId32; +pub type Balance = u128; + +parameter_types! { + pub const BlockHashCount: u64 = 250; +} + +impl frame_system::Config for Runtime { + type Origin = Origin; + type Call = Call; + type Index = u64; + type BlockNumber = u64; + type Hash = H256; + type Hashing = ::sp_runtime::traits::BlakeTwo256; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Header = Header; + type Event = Event; + type BlockHashCount = BlockHashCount; + type BlockWeights = (); + type BlockLength = (); + type Version = (); + type PalletInfo = PalletInfo; + type AccountData = pallet_balances::AccountData; + type OnNewAccount = (); + type OnKilledAccount = (); + type DbWeight = (); + type BaseCallFilter = Everything; + type SystemWeightInfo = (); + type SS58Prefix = (); + type OnSetCode = (); +} + +parameter_types! { + pub ExistentialDeposit: Balance = 1; + pub const MaxLocks: u32 = 50; + pub const MaxReserves: u32 = 50; +} + +impl pallet_balances::Config for Runtime { + type MaxLocks = MaxLocks; + type Balance = Balance; + type Event = Event; + type DustRemoval = (); + type ExistentialDeposit = ExistentialDeposit; + type AccountStore = System; + type WeightInfo = (); + type MaxReserves = MaxReserves; + type ReserveIdentifier = [u8; 8]; +} + +parameter_types! { + pub const ReservedXcmpWeight: Weight = WEIGHT_PER_SECOND / 4; + pub const ReservedDmpWeight: Weight = WEIGHT_PER_SECOND / 4; +} + +parameter_types! { + pub const KsmLocation: MultiLocation = MultiLocation::parent(); + pub const RelayNetwork: NetworkId = NetworkId::Kusama; + pub Ancestry: MultiLocation = Parachain(MsgQueue::parachain_id().into()).into(); +} + +pub type LocationToAccountId = ( + ParentIsDefault, + SiblingParachainConvertsVia, + AccountId32Aliases, +); + +pub type XcmOriginToCallOrigin = ( + SovereignSignedViaLocation, + SignedAccountId32AsNative, + XcmPassthrough, +); + +parameter_types! { + pub const UnitWeightCost: Weight = 1; + pub KsmPerSecond: (AssetId, u128) = (Concrete(Parent.into()), 1); + pub const MaxInstructions: u32 = 100; +} + +pub type LocalAssetTransactor = + XcmCurrencyAdapter, LocationToAccountId, AccountId, ()>; + +pub type XcmRouter = super::ParachainXcmRouter; +pub type Barrier = AllowUnpaidExecutionFrom; + +pub struct XcmConfig; +impl Config for XcmConfig { + type Call = Call; + type XcmSender = XcmRouter; + type AssetTransactor = LocalAssetTransactor; + type OriginConverter = XcmOriginToCallOrigin; + type IsReserve = NativeAsset; + type IsTeleporter = (); + type LocationInverter = LocationInverter; + type Barrier = Barrier; + type Weigher = FixedWeightBounds; + type Trader = FixedRateOfFungible; + type ResponseHandler = (); + type AssetTrap = (); + type AssetClaims = (); + type SubscriptionService = (); +} + +#[frame_support::pallet] +pub mod mock_msg_queue { + use super::*; + use frame_support::pallet_prelude::*; + + #[pallet::config] + pub trait Config: frame_system::Config { + type Event: From> + IsType<::Event>; + type XcmExecutor: ExecuteXcm; + } + + #[pallet::call] + impl Pallet {} + + #[pallet::pallet] + #[pallet::generate_store(pub(super) trait Store)] + pub struct Pallet(_); + + #[pallet::storage] + #[pallet::getter(fn parachain_id)] + pub(super) type ParachainId = StorageValue<_, ParaId, ValueQuery>; + + #[pallet::storage] + #[pallet::getter(fn received_dmp)] + /// A queue of received DMP messages + pub(super) type ReceivedDmp = StorageValue<_, Vec>, ValueQuery>; + + impl Get for Pallet { + fn get() -> ParaId { + Self::parachain_id() + } + } + + pub type MessageId = [u8; 32]; + + #[pallet::event] + #[pallet::generate_deposit(pub(super) fn deposit_event)] + pub enum Event { + // XCMP + /// Some XCM was executed OK. + Success(Option), + /// Some XCM failed. + Fail(Option, XcmError), + /// Bad XCM version used. + BadVersion(Option), + /// Bad XCM format used. + BadFormat(Option), + + // DMP + /// Downward message is invalid XCM. + InvalidFormat(MessageId), + /// Downward message is unsupported version of XCM. + UnsupportedVersion(MessageId), + /// Downward message executed with the given outcome. + ExecutedDownward(MessageId, Outcome), + } + + impl Pallet { + pub fn set_para_id(para_id: ParaId) { + ParachainId::::put(para_id); + } + + fn handle_xcmp_message( + sender: ParaId, + _sent_at: RelayBlockNumber, + xcm: VersionedXcm, + max_weight: Weight, + ) -> Result { + let hash = Encode::using_encoded(&xcm, T::Hashing::hash); + let (result, event) = match Xcm::::try_from(xcm) { + Ok(xcm) => { + let location = MultiLocation::new(1, X1(Parachain(sender.into()))); + match T::XcmExecutor::execute_xcm(location, xcm, max_weight) { + Outcome::Error(e) => (Err(e.clone()), Event::Fail(Some(hash), e)), + Outcome::Complete(w) => (Ok(w), Event::Success(Some(hash))), + // As far as the caller is concerned, this was dispatched without error, so + // we just report the weight used. + Outcome::Incomplete(w, e) => (Ok(w), Event::Fail(Some(hash), e)), + } + }, + Err(()) => (Err(XcmError::UnhandledXcmVersion), Event::BadVersion(Some(hash))), + }; + Self::deposit_event(event); + result + } + } + + impl XcmpMessageHandler for Pallet { + fn handle_xcmp_messages<'a, I: Iterator>( + iter: I, + max_weight: Weight, + ) -> Weight { + for (sender, sent_at, data) in iter { + let mut data_ref = data; + let _ = XcmpMessageFormat::decode(&mut data_ref) + .expect("Simulator encodes with versioned xcm format; qed"); + + let mut remaining_fragments = &data_ref[..]; + while !remaining_fragments.is_empty() { + if let Ok(xcm) = VersionedXcm::::decode(&mut remaining_fragments) { + let _ = Self::handle_xcmp_message(sender, sent_at, xcm, max_weight); + } else { + debug_assert!(false, "Invalid incoming XCMP message data"); + } + } + } + max_weight + } + } + + impl DmpMessageHandler for Pallet { + fn handle_dmp_messages( + iter: impl Iterator)>, + limit: Weight, + ) -> Weight { + for (_i, (_sent_at, data)) in iter.enumerate() { + let id = sp_io::hashing::blake2_256(&data[..]); + let maybe_msg = + VersionedXcm::::decode(&mut &data[..]).map(Xcm::::try_from); + match maybe_msg { + Err(_) => { + Self::deposit_event(Event::InvalidFormat(id)); + }, + Ok(Err(())) => { + Self::deposit_event(Event::UnsupportedVersion(id)); + }, + Ok(Ok(x)) => { + let outcome = T::XcmExecutor::execute_xcm(Parent, x.clone(), limit); + >::append(x); + Self::deposit_event(Event::ExecutedDownward(id, outcome)); + }, + } + } + limit + } + } +} + +impl mock_msg_queue::Config for Runtime { + type Event = Event; + type XcmExecutor = XcmExecutor; +} + +pub type LocalOriginToLocation = SignedToAccountId32; + +impl pallet_xcm::Config for Runtime { + type Event = Event; + type SendXcmOrigin = EnsureXcmOrigin; + type XcmRouter = XcmRouter; + type ExecuteXcmOrigin = EnsureXcmOrigin; + type XcmExecuteFilter = Everything; + type XcmExecutor = XcmExecutor; + type XcmTeleportFilter = Nothing; + type XcmReserveTransferFilter = Everything; + type Weigher = FixedWeightBounds; + type LocationInverter = LocationInverter; + type Origin = Origin; + type Call = Call; + const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100; + type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion; +} + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +construct_runtime!( + pub enum Runtime where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Storage, Config, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + MsgQueue: mock_msg_queue::{Pallet, Storage, Event}, + PolkadotXcm: pallet_xcm::{Pallet, Call, Event, Origin}, + } +); diff --git a/xcm/xcm-simulator/fuzzer/src/relay_chain.rs b/xcm/xcm-simulator/fuzzer/src/relay_chain.rs new file mode 100644 index 000000000000..8dcb5f1f310b --- /dev/null +++ b/xcm/xcm-simulator/fuzzer/src/relay_chain.rs @@ -0,0 +1,191 @@ +// Copyright 2021 Parity Technologies (UK) Ltd. +// This file is part of Polkadot. + +// Polkadot is free software: you can redistribute it and/or modify +// it under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 3 of the License, or +// (at your option) any later version. + +// Polkadot is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. + +// You should have received a copy of the GNU General Public License +// along with Polkadot. If not, see . + +//! Relay chain runtime mock. + +use frame_support::{ + construct_runtime, parameter_types, + traits::{Everything, Nothing}, + weights::Weight, +}; +use sp_core::H256; +use sp_runtime::{testing::Header, traits::IdentityLookup, AccountId32}; + +use polkadot_parachain::primitives::Id as ParaId; +use polkadot_runtime_parachains::{configuration, origin, shared, ump}; +use xcm::latest::prelude::*; +use xcm_builder::{ + AccountId32Aliases, AllowUnpaidExecutionFrom, ChildParachainAsNative, + ChildParachainConvertsVia, ChildSystemParachainAsSuperuser, + CurrencyAdapter as XcmCurrencyAdapter, FixedRateOfFungible, FixedWeightBounds, IsConcrete, + LocationInverter, SignedAccountId32AsNative, SignedToAccountId32, SovereignSignedViaLocation, +}; +use xcm_executor::{Config, XcmExecutor}; + +pub type AccountId = AccountId32; +pub type Balance = u128; + +parameter_types! { + pub const BlockHashCount: u64 = 250; +} + +impl frame_system::Config for Runtime { + type Origin = Origin; + type Call = Call; + type Index = u64; + type BlockNumber = u64; + type Hash = H256; + type Hashing = ::sp_runtime::traits::BlakeTwo256; + type AccountId = AccountId; + type Lookup = IdentityLookup; + type Header = Header; + type Event = Event; + type BlockHashCount = BlockHashCount; + type BlockWeights = (); + type BlockLength = (); + type Version = (); + type PalletInfo = PalletInfo; + type AccountData = pallet_balances::AccountData; + type OnNewAccount = (); + type OnKilledAccount = (); + type DbWeight = (); + type BaseCallFilter = Everything; + type SystemWeightInfo = (); + type SS58Prefix = (); + type OnSetCode = (); +} + +parameter_types! { + pub ExistentialDeposit: Balance = 1; + pub const MaxLocks: u32 = 50; + pub const MaxReserves: u32 = 50; +} + +impl pallet_balances::Config for Runtime { + type MaxLocks = MaxLocks; + type Balance = Balance; + type Event = Event; + type DustRemoval = (); + type ExistentialDeposit = ExistentialDeposit; + type AccountStore = System; + type WeightInfo = (); + type MaxReserves = MaxReserves; + type ReserveIdentifier = [u8; 8]; +} + +impl shared::Config for Runtime {} + +impl configuration::Config for Runtime { + type WeightInfo = configuration::TestWeightInfo; +} + +parameter_types! { + pub const KsmLocation: MultiLocation = Here.into(); + pub const KusamaNetwork: NetworkId = NetworkId::Kusama; + pub const AnyNetwork: NetworkId = NetworkId::Any; + pub Ancestry: MultiLocation = Here.into(); + pub UnitWeightCost: Weight = 1_000; +} + +pub type SovereignAccountOf = + (ChildParachainConvertsVia, AccountId32Aliases); + +pub type LocalAssetTransactor = + XcmCurrencyAdapter, SovereignAccountOf, AccountId, ()>; + +type LocalOriginConverter = ( + SovereignSignedViaLocation, + ChildParachainAsNative, + SignedAccountId32AsNative, + ChildSystemParachainAsSuperuser, +); + +parameter_types! { + pub const BaseXcmWeight: Weight = 1_000; + pub KsmPerSecond: (AssetId, u128) = (Concrete(KsmLocation::get()), 1); + pub const MaxInstructions: u32 = 100; +} + +pub type XcmRouter = super::RelayChainXcmRouter; +pub type Barrier = AllowUnpaidExecutionFrom; + +pub struct XcmConfig; +impl Config for XcmConfig { + type Call = Call; + type XcmSender = XcmRouter; + type AssetTransactor = LocalAssetTransactor; + type OriginConverter = LocalOriginConverter; + type IsReserve = (); + type IsTeleporter = (); + type LocationInverter = LocationInverter; + type Barrier = Barrier; + type Weigher = FixedWeightBounds; + type Trader = FixedRateOfFungible; + type ResponseHandler = (); + type AssetTrap = (); + type AssetClaims = (); + type SubscriptionService = (); +} + +pub type LocalOriginToLocation = SignedToAccountId32; + +impl pallet_xcm::Config for Runtime { + type Event = Event; + type SendXcmOrigin = xcm_builder::EnsureXcmOrigin; + type XcmRouter = XcmRouter; + // Anyone can execute XCM messages locally... + type ExecuteXcmOrigin = xcm_builder::EnsureXcmOrigin; + type XcmExecuteFilter = Nothing; + type XcmExecutor = XcmExecutor; + type XcmTeleportFilter = Everything; + type XcmReserveTransferFilter = Everything; + type Weigher = FixedWeightBounds; + type LocationInverter = LocationInverter; + type Origin = Origin; + type Call = Call; + const VERSION_DISCOVERY_QUEUE_SIZE: u32 = 100; + type AdvertisedXcmVersion = pallet_xcm::CurrentXcmVersion; +} + +parameter_types! { + pub const FirstMessageFactorPercent: u64 = 100; +} + +impl ump::Config for Runtime { + type Event = Event; + type UmpSink = ump::XcmSink, Runtime>; + type FirstMessageFactorPercent = FirstMessageFactorPercent; + type ExecuteOverweightOrigin = frame_system::EnsureRoot; +} + +impl origin::Config for Runtime {} + +type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic; +type Block = frame_system::mocking::MockBlock; + +construct_runtime!( + pub enum Runtime where + Block = Block, + NodeBlock = Block, + UncheckedExtrinsic = UncheckedExtrinsic, + { + System: frame_system::{Pallet, Call, Storage, Config, Event}, + Balances: pallet_balances::{Pallet, Call, Storage, Config, Event}, + ParasOrigin: origin::{Pallet, Origin}, + ParasUmp: ump::{Pallet, Call, Storage, Event}, + XcmPallet: pallet_xcm::{Pallet, Call, Storage, Event, Origin}, + } +); From 53cd9a61b0738a8123a39aaddba4fb04530f8866 Mon Sep 17 00:00:00 2001 From: Gavin Wood Date: Tue, 12 Oct 2021 15:35:10 +0200 Subject: [PATCH 30/40] Dispatchable XCMs should translate to v0 (#4062) * Dispatchable XCMs should translate to v0 * Formatting * Update Westend's XCM WrapVersion --- runtime/kusama/src/lib.rs | 2 +- runtime/rococo/src/lib.rs | 2 +- runtime/westend/src/lib.rs | 2 +- xcm/pallet-xcm/src/lib.rs | 43 +++++++++++++++++++++++-------------- xcm/pallet-xcm/src/mock.rs | 5 +++++ xcm/pallet-xcm/src/tests.rs | 21 ++++++++++++++++-- 6 files changed, 54 insertions(+), 21 deletions(-) diff --git a/runtime/kusama/src/lib.rs b/runtime/kusama/src/lib.rs index 978dba51ec69..d596769dd2e6 100644 --- a/runtime/kusama/src/lib.rs +++ b/runtime/kusama/src/lib.rs @@ -1323,7 +1323,7 @@ parameter_types! { /// individual routers. pub type XcmRouter = ( // Only one router so far - use DMP to communicate with child parachains. - xcm_sender::ChildParachainRouter, + xcm_sender::ChildParachainRouter, ); parameter_types! { diff --git a/runtime/rococo/src/lib.rs b/runtime/rococo/src/lib.rs index a7d1014f10c9..6d96591dc9ba 100644 --- a/runtime/rococo/src/lib.rs +++ b/runtime/rococo/src/lib.rs @@ -636,7 +636,7 @@ parameter_types! { /// individual routers. pub type XcmRouter = ( // Only one router so far - use DMP to communicate with child parachains. - xcm_sender::ChildParachainRouter, + xcm_sender::ChildParachainRouter, ); parameter_types! { diff --git a/runtime/westend/src/lib.rs b/runtime/westend/src/lib.rs index fef3560ddf64..55ef0c129c2a 100644 --- a/runtime/westend/src/lib.rs +++ b/runtime/westend/src/lib.rs @@ -958,7 +958,7 @@ type LocalOriginConverter = ( /// individual routers. pub type XcmRouter = ( // Only one router so far - use DMP to communicate with child parachains. - xcm_sender::ChildParachainRouter, + xcm_sender::ChildParachainRouter, ); parameter_types! { diff --git a/xcm/pallet-xcm/src/lib.rs b/xcm/pallet-xcm/src/lib.rs index 0252e22cf450..6456f9ee36b9 100644 --- a/xcm/pallet-xcm/src/lib.rs +++ b/xcm/pallet-xcm/src/lib.rs @@ -526,16 +526,21 @@ pub mod pallet { .map_err(|_| Error::::CannotReanchor)?; let max_assets = assets.len() as u32; let assets = assets.into(); + let mut remote_message = Xcm(vec![ + BuyExecution { fees, weight_limit: Limited(0) }, + DepositAsset { assets: Wild(All), max_assets, beneficiary }, + ]); + // use local weight for remote message and hope for the best. + let remote_weight = T::Weigher::weight(&mut remote_message) + .map_err(|()| Error::::UnweighableMessage)?; + if let Some(BuyExecution { weight_limit: Limited(ref mut limit), .. }) = + remote_message.0.get_mut(0) + { + *limit = remote_weight; + } let mut message = Xcm(vec![ WithdrawAsset(assets), - InitiateTeleport { - assets: Wild(All), - dest, - xcm: Xcm(vec![ - BuyExecution { fees, weight_limit: Unlimited }, - DepositAsset { assets: Wild(All), max_assets, beneficiary }, - ]), - }, + InitiateTeleport { assets: Wild(All), dest, xcm: remote_message.into() }, ]); let weight = T::Weigher::weight(&mut message).map_err(|()| Error::::UnweighableMessage)?; @@ -597,14 +602,20 @@ pub mod pallet { .map_err(|_| Error::::CannotReanchor)?; let max_assets = assets.len() as u32; let assets = assets.into(); - let mut message = Xcm(vec![TransferReserveAsset { - assets, - dest, - xcm: Xcm(vec![ - BuyExecution { fees, weight_limit: Unlimited }, - DepositAsset { assets: Wild(All), max_assets, beneficiary }, - ]), - }]); + let mut remote_message = Xcm(vec![ + BuyExecution { fees, weight_limit: Limited(0) }, + DepositAsset { assets: Wild(All), max_assets, beneficiary }, + ]); + // use local weight for remote message and hope for the best. + let remote_weight = T::Weigher::weight(&mut remote_message) + .map_err(|()| Error::::UnweighableMessage)?; + if let Some(BuyExecution { weight_limit: Limited(ref mut limit), .. }) = + remote_message.0.get_mut(0) + { + *limit = remote_weight; + } + let mut message = + Xcm(vec![TransferReserveAsset { assets, dest, xcm: remote_message.into() }]); let weight = T::Weigher::weight(&mut message).map_err(|()| Error::::UnweighableMessage)?; let outcome = diff --git a/xcm/pallet-xcm/src/mock.rs b/xcm/pallet-xcm/src/mock.rs index 7c5a835b7851..8b6174c5b722 100644 --- a/xcm/pallet-xcm/src/mock.rs +++ b/xcm/pallet-xcm/src/mock.rs @@ -310,6 +310,11 @@ pub(crate) fn buy_execution(fees: impl Into) -> Instruction { BuyExecution { fees: fees.into(), weight_limit: Unlimited } } +pub(crate) fn buy_limited_execution(fees: impl Into, weight: u64) -> Instruction { + use xcm::latest::prelude::*; + BuyExecution { fees: fees.into(), weight_limit: Limited(weight) } +} + pub(crate) fn new_test_ext_with_balances( balances: Vec<(AccountId, Balance)>, ) -> sp_io::TestExternalities { diff --git a/xcm/pallet-xcm/src/tests.rs b/xcm/pallet-xcm/src/tests.rs index 5b9a3a177a36..ba5459e2c890 100644 --- a/xcm/pallet-xcm/src/tests.rs +++ b/xcm/pallet-xcm/src/tests.rs @@ -218,14 +218,29 @@ fn teleport_assets_works() { new_test_ext_with_balances(balances).execute_with(|| { let weight = 2 * BaseXcmWeight::get(); assert_eq!(Balances::total_balance(&ALICE), INITIAL_BALANCE); + let dest: MultiLocation = AccountId32 { network: Any, id: BOB.into() }.into(); assert_ok!(XcmPallet::teleport_assets( Origin::signed(ALICE), Box::new(RelayLocation::get().into()), - Box::new(AccountId32 { network: Any, id: BOB.into() }.into().into()), + Box::new(dest.clone().into()), Box::new((Here, SEND_AMOUNT).into()), 0, )); assert_eq!(Balances::total_balance(&ALICE), INITIAL_BALANCE - SEND_AMOUNT); + assert_eq!( + sent_xcm(), + vec![( + RelayLocation::get().into(), + Xcm(vec![ + ReceiveTeleportedAsset((Here, SEND_AMOUNT).into()), + ClearOrigin, + buy_limited_execution((Here, SEND_AMOUNT), 2000), + DepositAsset { assets: All.into(), max_assets: 1, beneficiary: dest }, + ]), + )] + ); + let versioned_sent = VersionedXcm::from(sent_xcm().into_iter().next().unwrap().1); + let _check_v0_ok: xcm::v0::Xcm<()> = versioned_sent.try_into().unwrap(); assert_eq!( last_event(), Event::XcmPallet(crate::Event::Attempted(Outcome::Complete(weight))) @@ -265,11 +280,13 @@ fn reserve_transfer_assets_works() { Xcm(vec![ ReserveAssetDeposited((Parent, SEND_AMOUNT).into()), ClearOrigin, - buy_execution((Parent, SEND_AMOUNT)), + buy_limited_execution((Parent, SEND_AMOUNT), 2000), DepositAsset { assets: All.into(), max_assets: 1, beneficiary: dest }, ]), )] ); + let versioned_sent = VersionedXcm::from(sent_xcm().into_iter().next().unwrap().1); + let _check_v0_ok: xcm::v0::Xcm<()> = versioned_sent.try_into().unwrap(); assert_eq!( last_event(), Event::XcmPallet(crate::Event::Attempted(Outcome::Complete(weight))) From c35a2e373033b9e47c1f37fca528701ab63714f6 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Tue, 12 Oct 2021 11:18:32 -0400 Subject: [PATCH 31/40] Fix XCM Weights on Westend (#4066) * found issue * fix up * remove printlns --- runtime/westend/src/tests.rs | 18 ++++++++++++++++++ runtime/westend/src/weights/xcm/mod.rs | 6 ++++-- 2 files changed, 22 insertions(+), 2 deletions(-) diff --git a/runtime/westend/src/tests.rs b/runtime/westend/src/tests.rs index f7d4e749c252..841089f93ead 100644 --- a/runtime/westend/src/tests.rs +++ b/runtime/westend/src/tests.rs @@ -49,3 +49,21 @@ fn call_size() { If the limit is too strong, maybe consider increase the limit to 300.", ); } + +#[test] +fn sanity_check_teleport_assets_weight() { + // This test sanity checks that at least 50 teleports can exist in a block. + // Usually when XCM runs into an issue, it will return a weight of `Weight::MAX`, + // so this test will certainly ensure that this problem does not occur. + use frame_support::dispatch::GetDispatchInfo; + let weight = pallet_xcm::Call::::teleport_assets { + dest: Box::new(xcm::VersionedMultiLocation::V1(MultiLocation::here())), + beneficiary: Box::new(xcm::VersionedMultiLocation::V1(MultiLocation::here())), + assets: Box::new((Concrete(MultiLocation::here()), Fungible(200_000)).into()), + fee_asset_item: 0, + } + .get_dispatch_info() + .weight; + + assert!(weight * 50 < BlockWeights::get().max_block); +} diff --git a/runtime/westend/src/weights/xcm/mod.rs b/runtime/westend/src/weights/xcm/mod.rs index 1b0d7c1ef485..70c5731a7853 100644 --- a/runtime/westend/src/weights/xcm/mod.rs +++ b/runtime/westend/src/weights/xcm/mod.rs @@ -31,7 +31,9 @@ trait WeighMultiAssets { fn weigh_multi_assets(&self, balances_weight: Weight) -> Weight; } -// TODO wild case +// Westend only knows about one asset, the balances pallet. +const MAX_ASSETS: u32 = 1; + impl WeighMultiAssets for MultiAssetFilter { fn weigh_multi_assets(&self, balances_weight: Weight) -> Weight { match self { @@ -44,7 +46,7 @@ impl WeighMultiAssets for MultiAssetFilter { AssetTypes::Unknown => Weight::MAX, }) .fold(0, |acc, x| acc.saturating_add(x)), - _ => Weight::MAX, + Self::Wild(_) => (MAX_ASSETS as Weight).saturating_mul(balances_weight), } } } From 7319f58a5de4cce3e1d42e1647cbcaeab2d10390 Mon Sep 17 00:00:00 2001 From: Chris Sosnin <48099298+slumber@users.noreply.github.com> Date: Tue, 12 Oct 2021 18:56:36 +0300 Subject: [PATCH 32/40] Update wasmtime config to match new version in substrate (#4063) * Update wasmtime config to match new version * update Substrate Co-authored-by: parity-processbot <> --- Cargo.lock | 492 +++++++++++++---------------- node/core/pvf/src/executor_intf.rs | 6 +- 2 files changed, 220 insertions(+), 278 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 56bd75243345..8ac436ddf067 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -467,7 +467,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "beefy-primitives", "fnv", @@ -495,7 +495,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -515,12 +515,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -1195,18 +1195,18 @@ dependencies = [ [[package]] name = "cranelift-bforest" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e6bea67967505247f54fa2c85cf4f6e0e31c4e5692c9b70e4ae58e339067333" +checksum = "15013642ddda44eebcf61365b2052a23fd8b7314f90ba44aa059ec02643c5139" dependencies = [ "cranelift-entity", ] [[package]] name = "cranelift-codegen" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "48194035d2752bdd5bdae429e3ab88676e95f52a2b1355a5d4e809f9e39b1d74" +checksum = "298f2a7ed5fdcb062d8e78b7496b0f4b95265d20245f2d0ca88f846dd192a3a3" dependencies = [ "cranelift-bforest", "cranelift-codegen-meta", @@ -1215,16 +1215,15 @@ dependencies = [ "gimli", "log", "regalloc", - "serde", "smallvec", "target-lexicon", ] [[package]] name = "cranelift-codegen-meta" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "976efb22fcab4f2cd6bd4e9913764616a54d895c1a23530128d04e03633c555f" +checksum = "5cf504261ac62dfaf4ffb3f41d88fd885e81aba947c1241275043885bc5f0bac" dependencies = [ "cranelift-codegen-shared", "cranelift-entity", @@ -1232,27 +1231,24 @@ dependencies = [ [[package]] name = "cranelift-codegen-shared" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9dabb5fe66e04d4652e434195b45ae65b5c8172d520247b8f66d8df42b2b45dc" -dependencies = [ - "serde", -] +checksum = "1cd2a72db4301dbe7e5a4499035eedc1e82720009fb60603e20504d8691fa9cd" [[package]] name = "cranelift-entity" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3329733e4d4b8e91c809efcaa4faee80bf66f20164e3dd16d707346bd3494799" +checksum = "48868faa07cacf948dc4a1773648813c0e453ff9467e800ff10f6a78c021b546" dependencies = [ "serde", ] [[package]] name = "cranelift-frontend" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "279afcc0d3e651b773f94837c3d581177b348c8d69e928104b2e9fccb226f921" +checksum = "351c9d13b4ecd1a536215ec2fd1c3ee9ee8bc31af172abf1e45ed0adb7a931df" dependencies = [ "cranelift-codegen", "log", @@ -1262,9 +1258,9 @@ dependencies = [ [[package]] name = "cranelift-native" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4c04d1fe6a5abb5bb0edc78baa8ef238370fb8e389cc88b6d153f7c3e9680425" +checksum = "6df8b556663d7611b137b24db7f6c8d9a8a27d7f29c7ea7835795152c94c1b75" dependencies = [ "cranelift-codegen", "libc", @@ -1273,19 +1269,18 @@ dependencies = [ [[package]] name = "cranelift-wasm" -version = "0.76.0" +version = "0.77.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e0d260ad44f6fd2c91f7f5097191a2a9e3edcbb36df1fb787b600dad5ea148ec" +checksum = "7a69816d90db694fa79aa39b89dda7208a4ac74b6f2b8f3c4da26ee1c8bdfc5e" dependencies = [ "cranelift-codegen", "cranelift-entity", "cranelift-frontend", "itertools", "log", - "serde", "smallvec", - "thiserror", "wasmparser", + "wasmtime-types", ] [[package]] @@ -1915,7 +1910,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", ] @@ -1933,7 +1928,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -1953,7 +1948,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "Inflector", "chrono", @@ -1979,7 +1974,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -1993,7 +1988,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -2021,7 +2016,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "bitflags", "frame-metadata", @@ -2048,7 +2043,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2060,7 +2055,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2072,7 +2067,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro2", "quote", @@ -2082,7 +2077,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2105,7 +2100,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -2116,7 +2111,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "log", @@ -2133,7 +2128,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -2148,7 +2143,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "sp-api", @@ -2157,7 +2152,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "sp-api", @@ -2370,7 +2365,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "chrono", "frame-election-provider-support", @@ -4611,7 +4606,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4625,7 +4620,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -4641,7 +4636,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -4656,7 +4651,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4680,7 +4675,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4700,7 +4695,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4715,7 +4710,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "beefy-primitives", "frame-support", @@ -4731,7 +4726,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4756,7 +4751,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4841,7 +4836,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4858,7 +4853,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4874,7 +4869,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4898,7 +4893,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4916,7 +4911,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4931,7 +4926,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4954,7 +4949,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4970,7 +4965,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -4990,7 +4985,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5007,7 +5002,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5024,7 +5019,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5042,7 +5037,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5058,7 +5053,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5075,7 +5070,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5090,7 +5085,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5104,7 +5099,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5121,7 +5116,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5144,7 +5139,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5159,7 +5154,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5173,7 +5168,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5189,7 +5184,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5210,7 +5205,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5226,7 +5221,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5240,7 +5235,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5263,7 +5258,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5274,7 +5269,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "log", "sp-arithmetic", @@ -5283,7 +5278,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5297,7 +5292,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5315,7 +5310,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5334,7 +5329,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-support", "frame-system", @@ -5351,7 +5346,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5368,7 +5363,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5379,7 +5374,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5396,7 +5391,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -5412,7 +5407,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-benchmarking", "frame-support", @@ -7716,7 +7711,6 @@ checksum = "571f7f397d61c4755285cd37853fe8e03271c243424a907415909379659381c5" dependencies = [ "log", "rustc-hash", - "serde", "smallvec", ] @@ -7784,7 +7778,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -8047,7 +8041,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "log", "sp-core", @@ -8058,7 +8052,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "derive_more", @@ -8085,7 +8079,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8108,7 +8102,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8124,7 +8118,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8140,7 +8134,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8151,7 +8145,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "chrono", "fdlimit", @@ -8189,7 +8183,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "fnv", "futures 0.3.17", @@ -8217,7 +8211,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "hash-db", "kvdb", @@ -8242,7 +8236,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "futures 0.3.17", @@ -8266,7 +8260,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "derive_more", @@ -8309,7 +8303,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "derive_more", "futures 0.3.17", @@ -8333,7 +8327,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8346,7 +8340,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "assert_matches", "async-trait", @@ -8380,7 +8374,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "futures 0.3.17", @@ -8406,7 +8400,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "sc-client-api", "sp-authorship", @@ -8417,7 +8411,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8443,7 +8437,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "derive_more", "environmental", @@ -8461,7 +8455,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "log", "parity-scale-codec", @@ -8477,7 +8471,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8495,7 +8489,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "derive_more", @@ -8532,7 +8526,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "derive_more", "finality-grandpa", @@ -8556,7 +8550,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8573,7 +8567,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "derive_more", @@ -8588,7 +8582,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "hash-db", "parity-scale-codec", @@ -8606,7 +8600,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-std", "async-trait", @@ -8657,7 +8651,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8673,7 +8667,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "bytes 1.0.1", "fnv", @@ -8700,7 +8694,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "libp2p", @@ -8713,7 +8707,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8722,7 +8716,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "hash-db", @@ -8753,7 +8747,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8778,7 +8772,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8795,7 +8789,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "directories", @@ -8860,7 +8854,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "log", "parity-scale-codec", @@ -8874,7 +8868,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8896,7 +8890,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "chrono", "futures 0.3.17", @@ -8914,7 +8908,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8944,7 +8938,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8955,7 +8949,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "intervalier", @@ -8982,7 +8976,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "derive_more", "futures 0.3.17", @@ -8996,7 +8990,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9070,26 +9064,6 @@ version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd" -[[package]] -name = "scroll" -version = "0.10.2" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "fda28d4b4830b807a8b43f7b0e6b5df875311b3e7621d84577188c175b6ec1ec" -dependencies = [ - "scroll_derive", -] - -[[package]] -name = "scroll_derive" -version = "0.10.5" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aaaae8f38bb311444cfb7f1979af0bc9240d95795f75f9ceddf6a59b79ceffa0" -dependencies = [ - "proc-macro2", - "quote", - "syn", -] - [[package]] name = "sct" version = "0.6.0" @@ -9439,7 +9413,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "hash-db", "log", @@ -9456,7 +9430,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9468,7 +9442,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -9481,7 +9455,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "integer-sqrt", "num-traits", @@ -9496,7 +9470,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -9509,7 +9483,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "parity-scale-codec", @@ -9521,7 +9495,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "sp-api", @@ -9533,7 +9507,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "log", @@ -9551,7 +9525,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "futures 0.3.17", @@ -9570,7 +9544,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "merlin", @@ -9593,7 +9567,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -9604,7 +9578,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9616,7 +9590,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "base58", "blake2-rfc", @@ -9662,7 +9636,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "kvdb", "parking_lot", @@ -9671,7 +9645,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro2", "quote", @@ -9681,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "environmental", "parity-scale-codec", @@ -9692,7 +9666,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "finality-grandpa", "log", @@ -9710,7 +9684,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9724,7 +9698,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "hash-db", @@ -9748,7 +9722,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "lazy_static", "sp-core", @@ -9759,7 +9733,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "derive_more", @@ -9776,7 +9750,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "zstd", ] @@ -9784,7 +9758,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -9799,7 +9773,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9810,7 +9784,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "sp-api", "sp-core", @@ -9820,7 +9794,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "backtrace", ] @@ -9828,7 +9802,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "rustc-hash", "serde", @@ -9838,7 +9812,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "either", "hash256-std-hasher", @@ -9860,7 +9834,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9877,7 +9851,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9889,7 +9863,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "serde", "serde_json", @@ -9898,7 +9872,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -9912,7 +9886,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "scale-info", @@ -9923,7 +9897,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "hash-db", "log", @@ -9946,12 +9920,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9964,7 +9938,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "log", "sp-core", @@ -9977,7 +9951,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -9993,7 +9967,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "sp-std", @@ -10005,7 +9979,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "sp-api", "sp-runtime", @@ -10014,7 +9988,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "log", @@ -10030,7 +10004,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "hash-db", "memory-db", @@ -10045,7 +10019,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10061,7 +10035,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10072,7 +10046,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10300,7 +10274,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "platforms", ] @@ -10308,7 +10282,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10330,7 +10304,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-std", "derive_more", @@ -10344,7 +10318,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "async-trait", "futures 0.3.17", @@ -10371,7 +10345,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10381,7 +10355,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10392,7 +10366,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10545,7 +10519,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "frame-system", "futures 0.3.17", @@ -10986,7 +10960,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#cafe12e7785bf92e5dc04780c10e7f8330a15a4c" +source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" dependencies = [ "jsonrpsee-ws-client", "log", @@ -11377,15 +11351,15 @@ dependencies = [ [[package]] name = "wasmparser" -version = "0.79.0" +version = "0.80.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5b5894be15a559c85779254700e1d35f02f843b5a69152e5c82c626d9fd66c0e" +checksum = "449167e2832691a1bff24cde28d2804e90e09586a448c8e76984792c44334a6b" [[package]] name = "wasmtime" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bbb8a082a8ef50f7eeb8b82dda9709ef1e68963ea3c94e45581644dd4041835" +checksum = "899b1e5261e3d3420860dacfb952871ace9d7ba9f953b314f67aaf9f8e2a4d89" dependencies = [ "anyhow", "backtrace", @@ -11396,27 +11370,28 @@ dependencies = [ "lazy_static", "libc", "log", + "object", "paste", "psm", + "rayon", "region", "rustc-demangle", "serde", - "smallvec", "target-lexicon", "wasmparser", "wasmtime-cache", + "wasmtime-cranelift", "wasmtime-environ", "wasmtime-jit", - "wasmtime-profiling", "wasmtime-runtime", "winapi 0.3.9", ] [[package]] name = "wasmtime-cache" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d73391579ca7f24573138ef768b73b2aed5f9d542385c64979b65d60d0912399" +checksum = "e2493b81d7a9935f7af15e06beec806f256bc974a90a843685f3d61f2fc97058" dependencies = [ "anyhow", "base64 0.13.0", @@ -11435,26 +11410,16 @@ dependencies = [ [[package]] name = "wasmtime-cranelift" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "81c6f5ae9205382345c7cd7454932a906186836999a2161c385e38a15f52e1fe" +checksum = "99706bacdf5143f7f967d417f0437cce83a724cf4518cb1a3ff40e519d793021" dependencies = [ + "anyhow", "cranelift-codegen", "cranelift-entity", "cranelift-frontend", + "cranelift-native", "cranelift-wasm", - "target-lexicon", - "wasmparser", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-debug" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c69e08f55e12f15f50b1b533bc3626723e7224254a065de6576934c86258c9e8" -dependencies = [ - "anyhow", "gimli", "more-asserts", "object", @@ -11466,94 +11431,55 @@ dependencies = [ [[package]] name = "wasmtime-environ" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "005d93174040af37fb8625f891cd9827afdad314261f7ec4ee61ec497d6e9d3c" +checksum = "ac42cb562a2f98163857605f02581d719a410c5abe93606128c59a10e84de85b" dependencies = [ + "anyhow", "cfg-if 1.0.0", - "cranelift-codegen", "cranelift-entity", - "cranelift-wasm", "gimli", "indexmap", "log", "more-asserts", + "object", "serde", + "target-lexicon", "thiserror", "wasmparser", + "wasmtime-types", ] [[package]] name = "wasmtime-jit" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d0bf1dfb213a35d8f21aefae40e597fe72778a907011ffdff7affb029a02af9a" +checksum = "24f46dd757225f29a419be415ea6fb8558df9b0194f07e3a6a9c99d0e14dd534" dependencies = [ "addr2line", "anyhow", + "bincode", "cfg-if 1.0.0", - "cranelift-codegen", - "cranelift-entity", - "cranelift-frontend", - "cranelift-native", - "cranelift-wasm", "gimli", + "libc", "log", "more-asserts", "object", - "rayon", "region", "serde", "target-lexicon", "thiserror", "wasmparser", - "wasmtime-cranelift", - "wasmtime-debug", "wasmtime-environ", - "wasmtime-obj", - "wasmtime-profiling", "wasmtime-runtime", "winapi 0.3.9", ] -[[package]] -name = "wasmtime-obj" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d231491878e710c68015228c9f9fc5955fe5c96dbf1485c15f7bed55b622c83c" -dependencies = [ - "anyhow", - "more-asserts", - "object", - "target-lexicon", - "wasmtime-debug", - "wasmtime-environ", -] - -[[package]] -name = "wasmtime-profiling" -version = "0.29.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21486cfb5255c2069666c1f116f9e949d4e35c9a494f11112fa407879e42198d" -dependencies = [ - "anyhow", - "cfg-if 1.0.0", - "gimli", - "lazy_static", - "libc", - "object", - "scroll", - "serde", - "target-lexicon", - "wasmtime-environ", - "wasmtime-runtime", -] - [[package]] name = "wasmtime-runtime" -version = "0.29.0" +version = "0.30.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d7ddfdf32e0a20d81f48be9dacd31612bc61de5a174d1356fef806d300f507de" +checksum = "0122215a44923f395487048cb0a1d60b5b32c73aab15cf9364b798dbaff0996f" dependencies = [ "anyhow", "backtrace", @@ -11573,6 +11499,18 @@ dependencies = [ "winapi 0.3.9", ] +[[package]] +name = "wasmtime-types" +version = "0.30.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f9b01caf8a204ef634ebac99700e77ba716d3ebbb68a1abbc2ceb6b16dbec9e4" +dependencies = [ + "cranelift-entity", + "serde", + "thiserror", + "wasmparser", +] + [[package]] name = "web-sys" version = "0.3.46" diff --git a/node/core/pvf/src/executor_intf.rs b/node/core/pvf/src/executor_intf.rs index 732894546745..0cdfd40e6414 100644 --- a/node/core/pvf/src/executor_intf.rs +++ b/node/core/pvf/src/executor_intf.rs @@ -41,7 +41,10 @@ const CONFIG: Config = Config { // wasm pages. // // Thus let's assume that 32 pages or 2 MiB are used for these needs. - max_memory_pages: Some(2048 + 32), + // + // Note that the memory limit is specified in bytes, so we multiply this value + // by wasm page size -- 64 KiB. + max_memory_size: Some((2048 + 32) * 65536), heap_pages: 2048, allow_missing_func_imports: true, @@ -65,6 +68,7 @@ const CONFIG: Config = Config { native_stack_max: 256 * 1024 * 1024, }), canonicalize_nans: true, + parallel_compilation: true, }, }; From ae105f27dadac4924f58b852f24c5e15897d0afe Mon Sep 17 00:00:00 2001 From: Lldenaurois Date: Tue, 12 Oct 2021 22:09:48 +0200 Subject: [PATCH 33/40] Move runtime to with_transaction in order to Rollback state changes (#4067) * Move runtime to with_transaction in order to Rollback state changes * add assert_storage_noop to tests --- runtime/parachains/src/disputes.rs | 57 ++++++++++++++++-------------- 1 file changed, 30 insertions(+), 27 deletions(-) diff --git a/runtime/parachains/src/disputes.rs b/runtime/parachains/src/disputes.rs index 1ec5515667fb..4059ed637868 100644 --- a/runtime/parachains/src/disputes.rs +++ b/runtime/parachains/src/disputes.rs @@ -22,7 +22,7 @@ use crate::{ session_info, }; use bitvec::{bitvec, order::Lsb0 as BitOrderLsb0}; -use frame_support::{ensure, traits::Get, weights::Weight}; +use frame_support::{ensure, storage::TransactionOutcome, traits::Get, weights::Weight}; use frame_system::pallet_prelude::*; use parity_scale_codec::{Decode, Encode}; use primitives::v1::{ @@ -739,26 +739,29 @@ impl Pallet { } fn filter_multi_dispute_data(statement_sets: &mut MultiDisputeStatementSet) { - let config = >::config(); - - let old_statement_sets = sp_std::mem::take(statement_sets); - - // Deduplicate. - let dedup_iter = { - let mut targets = BTreeSet::new(); - old_statement_sets.into_iter().filter(move |set| { - let target = (set.candidate_hash, set.session); - targets.insert(target) - }) - }; + frame_support::storage::with_transaction(|| { + let config = >::config(); + + let old_statement_sets = sp_std::mem::take(statement_sets); + + // Deduplicate. + let dedup_iter = { + let mut targets = BTreeSet::new(); + old_statement_sets.into_iter().filter(move |set| { + let target = (set.candidate_hash, set.session); + targets.insert(target) + }) + }; - *statement_sets = dedup_iter - .filter_map(|set| { - let filter = Self::filter_dispute_data(&config, &set); + *statement_sets = dedup_iter + .filter_map(|set| { + let filter = Self::filter_dispute_data(&config, &set); - filter.filter_statement_set(set) - }) - .collect(); + filter.filter_statement_set(set) + }) + .collect(); + TransactionOutcome::Rollback(()) + }) } // Given a statement set, this produces a filter to be applied to the statement set. @@ -1210,7 +1213,7 @@ mod tests { REWARD_VALIDATORS, }; use frame_support::{ - assert_err, assert_noop, assert_ok, + assert_err, assert_noop, assert_ok, assert_storage_noop, traits::{OnFinalize, OnInitialize}, }; use frame_system::InitKind; @@ -2836,7 +2839,7 @@ mod tests { ], }]; - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert_eq!( statements, @@ -2918,7 +2921,7 @@ mod tests { ], }]; - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert!(statements.is_empty()); }) @@ -3059,7 +3062,7 @@ mod tests { ]; let old_statements = statements.clone(); - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert_eq!(statements, old_statements); }) @@ -3096,7 +3099,7 @@ mod tests { )], }]; - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert!(statements.is_empty()); }) @@ -3188,7 +3191,7 @@ mod tests { }, ]; - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert_eq!( statements, @@ -3278,7 +3281,7 @@ mod tests { }, ]; - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert_eq!( statements, @@ -3333,7 +3336,7 @@ mod tests { )], }]; - Pallet::::filter_multi_dispute_data(&mut statements); + assert_storage_noop!(Pallet::::filter_multi_dispute_data(&mut statements)); assert!(statements.is_empty()); }) From 5a3319cf240422201690138a2fd28e742f01c033 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 13 Oct 2021 09:53:39 +0000 Subject: [PATCH 34/40] Bump proc-macro2 from 1.0.29 to 1.0.30 (#4071) Bumps [proc-macro2](https://github.com/alexcrichton/proc-macro2) from 1.0.29 to 1.0.30. - [Release notes](https://github.com/alexcrichton/proc-macro2/releases) - [Commits](https://github.com/alexcrichton/proc-macro2/compare/1.0.29...1.0.30) --- updated-dependencies: - dependency-name: proc-macro2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> --- Cargo.lock | 4 ++-- node/overseer/overseer-gen/proc-macro/Cargo.toml | 2 +- xcm/procedural/Cargo.toml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 8ac436ddf067..bad2edc33a7e 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -7377,9 +7377,9 @@ checksum = "eba180dafb9038b050a4c280019bbedf9f2467b61e5d892dcad585bb57aadc5a" [[package]] name = "proc-macro2" -version = "1.0.29" +version = "1.0.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b9f5105d4fdaab20335ca9565e106a5d9b82b6219b5ba735731124ac6711d23d" +checksum = "edc3358ebc67bc8b7fa0c007f945b0b18226f78437d61bec735a9eb96b61ee70" dependencies = [ "unicode-xid", ] diff --git a/node/overseer/overseer-gen/proc-macro/Cargo.toml b/node/overseer/overseer-gen/proc-macro/Cargo.toml index 5ea6b724d173..a0b73e103c82 100644 --- a/node/overseer/overseer-gen/proc-macro/Cargo.toml +++ b/node/overseer/overseer-gen/proc-macro/Cargo.toml @@ -14,7 +14,7 @@ proc-macro = true [dependencies] syn = { version = "1.0.80", features = ["full", "extra-traits"] } quote = "1.0.10" -proc-macro2 = "1.0.26" +proc-macro2 = "1.0.30" proc-macro-crate = "1.1.0" [dev-dependencies] diff --git a/xcm/procedural/Cargo.toml b/xcm/procedural/Cargo.toml index 3611431bf691..0e5682d98bef 100644 --- a/xcm/procedural/Cargo.toml +++ b/xcm/procedural/Cargo.toml @@ -8,6 +8,6 @@ edition = "2018" proc-macro = true [dependencies] -proc-macro2 = "1.0.28" +proc-macro2 = "1.0.30" quote = "1.0.10" syn = "1.0.80" From 2ebabcec7fcbb3d13a965a852df0559a4aa12a5e Mon Sep 17 00:00:00 2001 From: Keith Yeung Date: Wed, 13 Oct 2021 04:17:30 -0700 Subject: [PATCH 35/40] Create a README for XCMv1 detailing notable changes (#4058) * Create a README for XCMv1 detailing notable changes * Update xcm/src/v1/README.md Co-authored-by: Gavin Wood * Update xcm/src/v1/README.md Co-authored-by: David * Update xcm/src/v1/README.md Co-authored-by: David * Update xcm/src/v1/README.md Co-authored-by: David * Update xcm/src/v1/README.md Co-authored-by: David * Link to relevant PR for a full list of changes * Typo * Add notable changes to top-level XCM rustdoc * Appease spellchecker Co-authored-by: Gavin Wood Co-authored-by: David --- scripts/gitlab/lingua.dic | 1 + xcm/src/v1/README.md | 25 +++++++++++++++++++++ xcm/src/v1/mod.rs | 46 ++++++++++++++++++++++++++++++++++++++- 3 files changed, 71 insertions(+), 1 deletion(-) create mode 100644 xcm/src/v1/README.md diff --git a/scripts/gitlab/lingua.dic b/scripts/gitlab/lingua.dic index 7c50d1fbc666..24f642591f51 100644 --- a/scripts/gitlab/lingua.dic +++ b/scripts/gitlab/lingua.dic @@ -27,6 +27,7 @@ blockchain/MS borked broadcast/UDSMG BTC/S +canonicalization canonicalize/D CentOS CLI/MS diff --git a/xcm/src/v1/README.md b/xcm/src/v1/README.md new file mode 100644 index 000000000000..2985125b11a4 --- /dev/null +++ b/xcm/src/v1/README.md @@ -0,0 +1,25 @@ +# XCM Version 1 +The comprehensive list of changes can be found in [this PR description](https://github.com/paritytech/polkadot/pull/2815#issue-608567900). + +## Changes to be aware of +Most changes should automatically be resolved via the conversion traits (i.e. `TryFrom` and `From`). The list here is mostly for incompatible changes that result in an `Err(())` when attempting to convert XCM objects from v0. + +### Junction +- `v0::Junction::Parent` cannot be converted to v1, because the way we represent parents in v1 has changed - instead of being a property of the junction, v1 MultiLocations now have an extra field representing the number of parents that the MultiLocation contains. + +### MultiLocation +- The `try_from` conversion method will always canonicalize the v0 MultiLocation before attempting to do the proper conversion. Since canonicalization is not a fallible operation, we do not expect v0 MultiLocation to ever fail to be upgraded to v1. + +### MultiAsset +- Stronger typing to differentiate between a single class of `MultiAsset` and several classes of `MultiAssets` is introduced. As the name suggests, a `Vec` that is used on all APIs will instead be using a new type called `MultiAssets` (note the `s`). +- All `MultiAsset` variants whose name contains "All" in it, namely `v0::MultiAsset::All`, `v0::MultiAsset::AllFungible`, `v0::MultiAsset::AllNonFungible`, `v0::MultiAsset::AllAbstractFungible`, `v0::MultiAsset::AllAbstractNonFungible`, `v0::MultiAsset::AllConcreteFungible` and `v0::MultiAsset::AllConcreteNonFungible`, will fail to convert to v1 MultiAsset, since v1 does not contain these variants. +- Similarly, all `MultiAsset` variants whose name contains "All" in it can be converted into a `WildMultiAsset`. +- `v0::MultiAsset::None` is not represented at all in v1. + +### XCM +- No special attention necessary + +### Order +- `v1::Order::DepositAsset` and `v1::Order::DepositReserveAsset` both introduced a new `max_asset` field that limits the maximum classes of assets that can be deposited. During conversion from v0, the `max_asset` field defaults to 1. +- v1 Orders that contain `MultiAsset` as argument(s) will need to explicitly specify the amount and details of assets. This is to prevent accidental misuse of `All` to possibly transfer, spend or otherwise perform unintended operations on `All` assets. +- v1 Orders that do allow the notion of `All` to be used as wildcards, will instead use a new type called `MultiAssetFilter`. diff --git a/xcm/src/v1/mod.rs b/xcm/src/v1/mod.rs index 6f96dc739491..87c016432018 100644 --- a/xcm/src/v1/mod.rs +++ b/xcm/src/v1/mod.rs @@ -14,7 +14,51 @@ // You should have received a copy of the GNU General Public License // along with Polkadot. If not, see . -//! Version 1 of the Cross-Consensus Message format data structures. +//! # XCM Version 1 +//! Version 1 of the Cross-Consensus Message format data structures. The comprehensive list of +//! changes can be found in +//! [this PR description](https://github.com/paritytech/polkadot/pull/2815#issue-608567900). +//! +//! ## Changes to be aware of +//! Most changes should automatically be resolved via the conversion traits (i.e. `TryFrom` and +//! `From`). The list here is mostly for incompatible changes that result in an `Err(())` when +//! attempting to convert XCM objects from v0. +//! +//! ### Junction +//! - `v0::Junction::Parent` cannot be converted to v1, because the way we represent parents in v1 +//! has changed - instead of being a property of the junction, v1 `MultiLocation`s now have an +//! extra field representing the number of parents that the `MultiLocation` contains. +//! +//! ### `MultiLocation` +//! - The `try_from` conversion method will always canonicalize the v0 `MultiLocation` before +//! attempting to do the proper conversion. Since canonicalization is not a fallible operation, +//! we do not expect v0 `MultiLocation` to ever fail to be upgraded to v1. +//! +//! ### `MultiAsset` +//! - Stronger typing to differentiate between a single class of `MultiAsset` and several classes +//! of `MultiAssets` is introduced. As the name suggests, a `Vec` that is used on all +//! APIs will instead be using a new type called `MultiAssets` (note the `s`). +//! - All `MultiAsset` variants whose name contains "All" in it, namely `v0::MultiAsset::All`, +//! `v0::MultiAsset::AllFungible`, `v0::MultiAsset::AllNonFungible`, +//! `v0::MultiAsset::AllAbstractFungible`, `v0::MultiAsset::AllAbstractNonFungible`, +//! `v0::MultiAsset::AllConcreteFungible` and `v0::MultiAsset::AllConcreteNonFungible`, will fail +//! to convert to v1 `MultiAsset`, since v1 does not contain these variants. +//! - Similarly, all `MultiAsset` variants whose name contains "All" in it can be converted into a +//! `WildMultiAsset`. +//! - `v0::MultiAsset::None` is not represented at all in v1. +//! +//! ### XCM +//! - No special attention necessary +//! +//! ### Order +//! - `v1::Order::DepositAsset` and `v1::Order::DepositReserveAsset` both introduced a new +//! `max_asset` field that limits the maximum classes of assets that can be deposited. During +//! conversion from v0, the `max_asset` field defaults to 1. +//! - v1 Orders that contain `MultiAsset` as argument(s) will need to explicitly specify the amount +//! and details of assets. This is to prevent accidental misuse of `All` to possibly transfer, +//! spend or otherwise perform unintended operations on `All` assets. +//! - v1 Orders that do allow the notion of `All` to be used as wildcards, will instead use a new +//! type called `MultiAssetFilter`. use super::{ v0::{Response as OldResponse, Xcm as OldXcm}, From 9c05f9753b2f939ccf5ba18c08dd4c83c3ab9e0b Mon Sep 17 00:00:00 2001 From: Chevdor Date: Wed, 13 Oct 2021 15:31:47 +0200 Subject: [PATCH 36/40] Switch to compressed runtimes (#4061) * Remove the upload of the non compressed runtimes * Fix template * Add loggin for local testing * Keep simple logger but remove the need for another dependency --- .github/workflows/publish-draft-release.yml | 10 ------- scripts/github/generate_release_text.rb | 31 ++++++++++++++++++++- scripts/github/polkadot_release.erb | 6 ++-- 3 files changed, 33 insertions(+), 14 deletions(-) diff --git a/.github/workflows/publish-draft-release.yml b/.github/workflows/publish-draft-release.yml index 5b1855c32cc3..e3c995e9bce1 100644 --- a/.github/workflows/publish-draft-release.yml +++ b/.github/workflows/publish-draft-release.yml @@ -55,7 +55,6 @@ jobs: with: name: ${{ matrix.runtime }}-runtime path: | - ${{ steps.srtool_build.outputs.wasm }} ${{ steps.srtool_build.outputs.wasm_compressed }} publish-draft-release: @@ -114,15 +113,6 @@ jobs: ls "${{ matrix.runtime }}-runtime" runtime_ver="$(ruby -e 'require "./scripts/github/lib.rb"; puts get_runtime("${{ matrix.runtime }}")')" echo "::set-output name=runtime_ver::$runtime_ver" - - name: Upload compact ${{ matrix.runtime }} wasm - uses: actions/upload-release-asset@v1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ needs.publish-draft-release.outputs.asset_upload_url }} - asset_path: "${{ matrix.runtime }}-runtime/${{ matrix.runtime }}_runtime.compact.wasm" - asset_name: ${{ matrix.runtime }}_runtime-v${{ steps.get-runtime-ver.outputs.runtime_ver }}.compact.wasm - asset_content_type: application/wasm - name: Upload compressed ${{ matrix.runtime }} wasm uses: actions/upload-release-asset@v1 env: diff --git a/scripts/github/generate_release_text.rb b/scripts/github/generate_release_text.rb index a35154bd1a66..c1fe06f45ebd 100644 --- a/scripts/github/generate_release_text.rb +++ b/scripts/github/generate_release_text.rb @@ -9,8 +9,34 @@ require 'toml' require_relative './lib.rb' +# A logger only active when NOT running in CI +def logger(s) + puts "â–¶ DEBUG: %s" % [s] if ENV['CI'] != 'true' +end + +# Check if all the required ENV are set +# This is especially convenient when testing locally +def check_env() + if ENV['CI'] != 'true' then + logger("Running locally") + vars = ['GITHUB_REF', 'GITHUB_TOKEN', 'GITHUB_WORKSPACE', 'GITHUB_REPOSITORY', 'RUSTC_STABLE', 'RUSTC_NIGHTLY'] + vars.each { |x| + env = (ENV[x] || "") + if env.length > 0 then + logger("- %s:\tset: %s, len: %d" % [x, env.length > 0 || false, env.length]) + else + logger("- %s:\tset: %s, len: %d" % [x, env.length > 0 || false, env.length]) + end + } + end +end + +check_env() + current_ref = ENV['GITHUB_REF'] token = ENV['GITHUB_TOKEN'] + +logger("Connecting to Github") github_client = Octokit::Client.new( access_token: token ) @@ -19,13 +45,15 @@ # Generate an ERB renderer based on the template .erb file renderer = ERB.new( - File.read(ENV['GITHUB_WORKSPACE'] + '/polkadot/scripts/github/polkadot_release.erb'), + File.read(File.join(polkadot_path, 'scripts/github/polkadot_release.erb')), trim_mode: '<>' ) # get ref of last polkadot release last_ref = 'refs/tags/' + github_client.latest_release(ENV['GITHUB_REPOSITORY']).tag_name +logger("Last ref: " + last_ref) +logger("Generate changelog for Polkadot") polkadot_cl = Changelog.new( 'paritytech/polkadot', last_ref, current_ref, token: token ) @@ -47,6 +75,7 @@ def get_substrate_commit(client, ref) substrate_prev_sha = get_substrate_commit(github_client, last_ref) substrate_cur_sha = get_substrate_commit(github_client, current_ref) +logger("Generate changelog for Substrate") substrate_cl = Changelog.new( 'paritytech/substrate', substrate_prev_sha, substrate_cur_sha, token: token, diff --git a/scripts/github/polkadot_release.erb b/scripts/github/polkadot_release.erb index 2078fa3bb96f..3fcf07dddc5c 100644 --- a/scripts/github/polkadot_release.erb +++ b/scripts/github/polkadot_release.erb @@ -11,11 +11,11 @@ This release was tested against the following versions of `rustc`. Other version - <%= rustc_stable %> - <%= rustc_nightly %> -WASM runtimes built with [srtool](https://github.com/paritytech/srtool) using `<%= polkadot_json['rustc'] %>`. +WASM runtimes built with [<%= polkadot_json['info']['generator']['name'] %> v<%= polkadot_json['info']['generator']['version'] %>](https://github.com/paritytech/srtool) using `<%= polkadot_json['rustc'] %>`. Proposal hashes: -* `polkadot_runtime-v<%= polkadot_runtime %>.compact.wasm - <%= polkadot_json['prop'] %>` -* `kusama_runtime-v<%= kusama_runtime %>.compact.wasm - <%= kusama_json['prop'] %>` +* `polkadot_runtime-v<%= polkadot_runtime %>.compact.compressed.wasm`: `<%= polkadot_json['runtimes']['compressed']['prop'] %>` +* `kusama_runtime-v<%= kusama_runtime %>.compact.compressed.wasm`: `<%= kusama_json['runtimes']['compressed']['prop'] %>` <% unless misc_changes.empty? %> ## Changes From 90640249ed196324200fe4cf409451de51f31213 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Thu, 14 Oct 2021 04:18:53 -0400 Subject: [PATCH 37/40] use `WEIGHT_PER_SECOND` (#4077) --- xcm/xcm-builder/src/weight.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xcm/xcm-builder/src/weight.rs b/xcm/xcm-builder/src/weight.rs index 1e84a42e2ada..92d26ebef157 100644 --- a/xcm/xcm-builder/src/weight.rs +++ b/xcm/xcm-builder/src/weight.rs @@ -156,7 +156,7 @@ impl, R: TakeRevenue> WeightTrader fn refund_weight(&mut self, weight: Weight) -> Option { let (id, units_per_second) = T::get(); let weight = weight.min(self.0); - let amount = units_per_second * (weight as u128) / 1_000_000_000_000u128; + let amount = units_per_second * (weight as u128) / (WEIGHT_PER_SECOND as u128); self.0 -= weight; self.1 = self.1.saturating_sub(amount); if amount > 0 { From 18445197b95f85b3b82ad86b48249ec64f9c27fd Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Thu, 14 Oct 2021 13:12:01 +0100 Subject: [PATCH 38/40] fix restart issue of staking miner (#4073) Co-authored-by: Niklas Adolfsson --- utils/staking-miner/src/dry_run.rs | 4 +- utils/staking-miner/src/emergency_solution.rs | 22 ++- utils/staking-miner/src/main.rs | 103 +++++----- utils/staking-miner/src/monitor.rs | 187 +++++++++--------- 4 files changed, 174 insertions(+), 142 deletions(-) diff --git a/utils/staking-miner/src/dry_run.rs b/utils/staking-miner/src/dry_run.rs index ffebdb3fadf2..9501adb96fab 100644 --- a/utils/staking-miner/src/dry_run.rs +++ b/utils/staking-miner/src/dry_run.rs @@ -117,11 +117,11 @@ macro_rules! dry_run_cmd_for { ($runtime:ident) => { paste::paste! { let mut ext = crate::create_election_ext::( shared.uri.clone(), config.at, - vec!["Staking".to_string(), "System".to_string(), "Balances".to_string()] + vec!["Staking".to_string(), "System".to_string()], ).await?; force_create_snapshot::(&mut ext)?; - let (raw_solution, witness) = crate::mine_with::(&config.solver, &mut ext)?; + let (raw_solution, witness) = crate::mine_with::(&config.solver, &mut ext, false)?; let nonce = crate::get_account_info::(client, &signer.account, config.at) .await? diff --git a/utils/staking-miner/src/emergency_solution.rs b/utils/staking-miner/src/emergency_solution.rs index d27c23e38601..a3847825f5d8 100644 --- a/utils/staking-miner/src/emergency_solution.rs +++ b/utils/staking-miner/src/emergency_solution.rs @@ -16,7 +16,7 @@ //! The emergency-solution command. -use crate::{prelude::*, Error, SharedConfig}; +use crate::{prelude::*, EmergencySolutionConfig, Error, SharedConfig}; use codec::Encode; use frame_election_provider_support::SequentialPhragmen; use std::io::Write; @@ -25,25 +25,35 @@ macro_rules! emergency_solution_cmd_for { ($runtime:ident) => { paste::paste! { /// Execute the emergency-solution command. pub(crate) async fn []( shared: SharedConfig, + config: EmergencySolutionConfig, ) -> Result<(), Error<$crate::[<$runtime _runtime_exports>]::Runtime>> { use $crate::[<$runtime _runtime_exports>]::*; let mut ext = crate::create_election_ext::(shared.uri.clone(), None, vec![]).await?; ext.execute_with(|| { assert!(EPM::Pallet::::current_phase().is_emergency()); + // NOTE: this internally calls feasibility_check, but we just re-do it here as an easy way // to get a `ReadySolution`. let (raw_solution, _) = >::mine_solution::>()?; log::info!(target: LOG_TARGET, "mined solution with {:?}", &raw_solution.score); - let ready_solution = EPM::Pallet::::feasibility_check(raw_solution, EPM::ElectionCompute::Signed)?; - let encoded_ready = ready_solution.encode(); + let mut ready_solution = EPM::Pallet::::feasibility_check(raw_solution, EPM::ElectionCompute::Signed)?; + + // maybe truncate. + if let Some(take) = config.take { + log::info!(target: LOG_TARGET, "truncating {} winners to {}", ready_solution.supports.len(), take); + ready_solution.supports.sort_unstable_by_key(|(_, s)| s.total); + ready_solution.supports.truncate(take); + } + + // write to file and stdout. let encoded_support = ready_solution.supports.encode(); - let mut solution_file = std::fs::File::create("solution.bin")?; let mut supports_file = std::fs::File::create("solution.supports.bin")?; - solution_file.write_all(&encoded_ready)?; supports_file.write_all(&encoded_support)?; - log::info!(target: LOG_TARGET, "ReadySolution: size {:?} / score = {:?}", encoded_ready.len(), ready_solution.score); + + log::info!(target: LOG_TARGET, "ReadySolution: size {:?} / score = {:?}", ready_solution.encoded_size(), ready_solution.score); log::trace!(target: LOG_TARGET, "Supports: {}", sp_core::hexdisplay::HexDisplay::from(&encoded_support)); + Ok(()) }) } diff --git a/utils/staking-miner/src/main.rs b/utils/staking-miner/src/main.rs index 96f34648d27b..5692d991e23e 100644 --- a/utils/staking-miner/src/main.rs +++ b/utils/staking-miner/src/main.rs @@ -276,7 +276,7 @@ enum Command { /// Just compute a solution now, and don't submit it. DryRun(DryRunConfig), /// Provide a solution that can be submitted to the chain as an emergency response. - EmergencySolution, + EmergencySolution(EmergencySolutionConfig), } #[derive(Debug, Clone, StructOpt)] @@ -291,39 +291,6 @@ enum Solvers { }, } -/// Mine a solution with the given `solver`. -fn mine_with( - solver: &Solvers, - ext: &mut Ext, -) -> Result<(EPM::RawSolution>, u32), Error> -where - T: EPM::Config, - T::Solver: NposSolver, -{ - use frame_election_provider_support::{PhragMMS, SequentialPhragmen}; - - match solver { - Solvers::SeqPhragmen { iterations } => { - BalanceIterations::set(*iterations); - mine_unchecked::< - T, - SequentialPhragmen< - ::AccountId, - sp_runtime::Perbill, - Balancing, - >, - >(ext, false) - }, - Solvers::PhragMMS { iterations } => { - BalanceIterations::set(*iterations); - mine_unchecked::< - T, - PhragMMS<::AccountId, sp_runtime::Perbill, Balancing>, - >(ext, false) - }, - } -} - frame_support::parameter_types! { /// Number of balancing iterations for a solution algorithm. Set based on the [`Solvers`] CLI /// config. @@ -341,16 +308,32 @@ struct MonitorConfig { #[structopt(long, default_value = "head", possible_values = &["head", "finalized"])] listen: String, + /// The solver algorithm to use. #[structopt(subcommand)] solver: Solvers, } +#[derive(Debug, Clone, StructOpt)] +struct EmergencySolutionConfig { + /// The block hash at which scraping happens. If none is provided, the latest head is used. + #[structopt(long)] + at: Option, + + /// The solver algorithm to use. + #[structopt(subcommand)] + solver: Solvers, + + /// The number of top backed winners to take. All are taken, if not provided. + take: Option, +} + #[derive(Debug, Clone, StructOpt)] struct DryRunConfig { /// The block hash at which scraping happens. If none is provided, the latest head is used. #[structopt(long)] at: Option, + /// The solver algorithm to use. #[structopt(subcommand)] solver: Solvers, } @@ -407,9 +390,9 @@ async fn create_election_ext( .map_err(|why| Error::RemoteExternalities(why)) } -/// Compute the election at the given block number. It expects to NOT be `Phase::Off`. In other -/// words, the snapshot must exists on the given externalities. -fn mine_unchecked( +/// Compute the election. It expects to NOT be `Phase::Off`. In other words, the snapshot must +/// exists on the given externalities. +fn mine_solution( ext: &mut Ext, do_feasibility: bool, ) -> Result<(EPM::RawSolution>, u32), Error> @@ -434,6 +417,40 @@ where }) } +/// Mine a solution with the given `solver`. +fn mine_with( + solver: &Solvers, + ext: &mut Ext, + do_feasibility: bool, +) -> Result<(EPM::RawSolution>, u32), Error> +where + T: EPM::Config, + T::Solver: NposSolver, +{ + use frame_election_provider_support::{PhragMMS, SequentialPhragmen}; + + match solver { + Solvers::SeqPhragmen { iterations } => { + BalanceIterations::set(*iterations); + mine_solution::< + T, + SequentialPhragmen< + ::AccountId, + sp_runtime::Perbill, + Balancing, + >, + >(ext, do_feasibility) + }, + Solvers::PhragMMS { iterations } => { + BalanceIterations::set(*iterations); + mine_solution::< + T, + PhragMMS<::AccountId, sp_runtime::Perbill, Balancing>, + >(ext, do_feasibility) + }, + } +} + #[allow(unused)] fn mine_dpos(ext: &mut Ext) -> Result<(), Error> { ext.execute_with(|| { @@ -474,7 +491,6 @@ fn mine_dpos(ext: &mut Ext) -> Result<(), Error> { pub(crate) async fn check_versions( client: &WsClient, - print: bool, ) -> Result<(), Error> { let linked_version = T::Version::get(); let on_chain_version = rpc_helpers::rpc::( @@ -485,10 +501,9 @@ pub(crate) async fn check_versions( .await .expect("runtime version RPC should always work; qed"); - if print { - log::info!(target: LOG_TARGET, "linked version {:?}", linked_version); - log::info!(target: LOG_TARGET, "on-chain version {:?}", on_chain_version); - } + log::debug!(target: LOG_TARGET, "linked version {:?}", linked_version); + log::debug!(target: LOG_TARGET, "on-chain version {:?}", on_chain_version); + if linked_version != on_chain_version { log::error!( target: LOG_TARGET, @@ -576,7 +591,7 @@ async fn main() { log::info!(target: LOG_TARGET, "connected to chain {:?}", chain); any_runtime_unit! { - check_versions::(&client, true).await + check_versions::(&client).await }; let signer_account = any_runtime! { @@ -595,7 +610,7 @@ async fn main() { .map_err(|e| { log::error!(target: LOG_TARGET, "DryRun error: {:?}", e); }), - Command::EmergencySolution => emergency_solution_cmd(shared.clone()).await + Command::EmergencySolution(c) => emergency_solution_cmd(shared.clone(), c).await .map_err(|e| { log::error!(target: LOG_TARGET, "EmergencySolution error: {:?}", e); }), diff --git a/utils/staking-miner/src/monitor.rs b/utils/staking-miner/src/monitor.rs index 396700335dd7..6bd90666f7ca 100644 --- a/utils/staking-miner/src/monitor.rs +++ b/utils/staking-miner/src/monitor.rs @@ -21,7 +21,7 @@ use crate::{ }; use codec::Encode; use jsonrpsee_ws_client::{ - types::{traits::SubscriptionClient, v2::params::JsonRpcParams, Subscription}, + types::{traits::SubscriptionClient, Subscription}, WsClient, }; use sc_transaction_pool_api::TransactionStatus; @@ -71,106 +71,113 @@ macro_rules! monitor_cmd_for { ($runtime:tt) => { paste::paste! { signer: Signer, ) -> Result<(), Error<$crate::[<$runtime _runtime_exports>]::Runtime>> { use $crate::[<$runtime _runtime_exports>]::*; + let (sub, unsub) = if config.listen == "head" { ("chain_subscribeNewHeads", "chain_unsubscribeNewHeads") } else { ("chain_subscribeFinalizedHeads", "chain_unsubscribeFinalizedHeads") }; - log::info!(target: LOG_TARGET, "subscribing to {:?} / {:?}", sub, unsub); - let mut subscription: Subscription
= client - .subscribe(&sub, JsonRpcParams::NoParams, &unsub) - .await - .unwrap(); - - while let Some(now) = subscription.next().await? { - let hash = now.hash(); - log::debug!(target: LOG_TARGET, "new event at #{:?} ({:?})", now.number, hash); - - // if the runtime version has changed, terminate - crate::check_versions::(client, false).await?; - - // we prefer doing this check before fetching anything into a remote-ext. - if ensure_signed_phase::(client, hash).await.is_err() { - log::debug!(target: LOG_TARGET, "phase closed, not interested in this block at all."); - continue; - }; - - // NOTE: we don't check the score of any of the submitted solutions. If we submit a weak - // one, as long as we are valid, we will end up getting our deposit back, so not a big - // deal for now. Note that to avoid an unfeasible solution, we should make sure that we - // only start the process on a finalized snapshot. If the signed phase is long enough, - // this will not be a solution. - - // grab an externalities without staking, just the election snapshot. - let mut ext = crate::create_election_ext::(shared.uri.clone(), Some(hash), vec![]).await?; - - if ensure_no_previous_solution::(&mut ext, &signer.account).await.is_err() { - log::debug!(target: LOG_TARGET, "We already have a solution in this phase, skipping."); - continue; - } - - let (raw_solution, witness) = crate::mine_with::(&config.solver, &mut ext)?; - - log::info!(target: LOG_TARGET, "mined solution with {:?}", &raw_solution.score); - - let nonce = crate::get_account_info::(client, &signer.account, Some(hash)) - .await? - .map(|i| i.nonce) - .expect(crate::signer::SIGNER_ACCOUNT_WILL_EXIST); - let tip = 0 as Balance; - let period = ::BlockHashCount::get() / 2; - let current_block = now.number.saturating_sub(1); - let era = sp_runtime::generic::Era::mortal(period.into(), current_block.into()); - log::trace!(target: LOG_TARGET, "transaction mortality: {:?} -> {:?}", era.birth(current_block.into()), era.death(current_block.into())); - let extrinsic = ext.execute_with(|| create_uxt(raw_solution, witness, signer.clone(), nonce, tip, era)); - let bytes = sp_core::Bytes(extrinsic.encode()); - - let mut tx_subscription: Subscription< - TransactionStatus<::Hash, ::Hash> - > = match client - .subscribe(&"author_submitAndWatchExtrinsic", params! { bytes }, "author_unwatchExtrinsic") + loop { + log::info!(target: LOG_TARGET, "subscribing to {:?} / {:?}", sub, unsub); + let mut subscription: Subscription
= client + .subscribe(&sub, params! {}, &unsub) .await - { - Ok(sub) => sub, - Err(why) => { - // This usually happens when we've been busy with mining for a few blocks, and now we're receiving the - // subscriptions of blocks in which we were busy. In these blocks, we still don't have a solution, so we - // re-compute a new solution and submit it with an outdated `Nonce`, which yields most often `Stale` - // error. NOTE: to improve this overall, and to be able to introduce an array of other fancy features, - // we should make this multi-threaded and do the computation outside of this callback. - log::warn!(target: LOG_TARGET, "failing to submit a transaction {:?}. continuing...", why); - continue + .unwrap(); + + while let Some(now) = subscription.next().await? { + let hash = now.hash(); + log::trace!(target: LOG_TARGET, "new event at #{:?} ({:?})", now.number, hash); + + // if the runtime version has changed, terminate. + crate::check_versions::(client).await?; + + // we prefer doing this check before fetching anything into a remote-ext. + if ensure_signed_phase::(client, hash).await.is_err() { + log::debug!(target: LOG_TARGET, "phase closed, not interested in this block at all."); + continue; + }; + + // grab an externalities without staking, just the election snapshot. + let mut ext = crate::create_election_ext::( + shared.uri.clone(), + Some(hash), + vec![], + ).await?; + + if ensure_no_previous_solution::(&mut ext, &signer.account).await.is_err() { + log::debug!(target: LOG_TARGET, "We already have a solution in this phase, skipping."); + continue; } - }; - - let _success = while let Some(status_update) = tx_subscription.next().await? { - log::trace!(target: LOG_TARGET, "status update {:?}", status_update); - match status_update { - TransactionStatus::Ready | TransactionStatus::Broadcast(_) | TransactionStatus::Future => continue, - TransactionStatus::InBlock(hash) => { - log::info!(target: LOG_TARGET, "included at {:?}", hash); - let key = frame_support::storage::storage_prefix(b"System", b"Events"); - let events = get_storage::::Hash>>, - >(client, params!{ key, hash }).await?.unwrap_or_default(); - log::info!(target: LOG_TARGET, "events at inclusion {:?}", events); - } - TransactionStatus::Retracted(hash) => { - log::info!(target: LOG_TARGET, "Retracted at {:?}", hash); - } - TransactionStatus::Finalized(hash) => { - log::info!(target: LOG_TARGET, "Finalized at {:?}", hash); - break + + // mine a solution, and run feasibility check on it as well. + let (raw_solution, witness) = crate::mine_with::(&config.solver, &mut ext, true)?; + log::info!(target: LOG_TARGET, "mined solution with {:?}", &raw_solution.score); + + let nonce = crate::get_account_info::(client, &signer.account, Some(hash)) + .await? + .map(|i| i.nonce) + .expect(crate::signer::SIGNER_ACCOUNT_WILL_EXIST); + let tip = 0 as Balance; + let period = ::BlockHashCount::get() / 2; + let current_block = now.number.saturating_sub(1); + let era = sp_runtime::generic::Era::mortal(period.into(), current_block.into()); + log::trace!( + target: LOG_TARGET, "transaction mortality: {:?} -> {:?}", + era.birth(current_block.into()), + era.death(current_block.into()), + ); + let extrinsic = ext.execute_with(|| create_uxt(raw_solution, witness, signer.clone(), nonce, tip, era)); + let bytes = sp_core::Bytes(extrinsic.encode()); + + let mut tx_subscription: Subscription< + TransactionStatus<::Hash, ::Hash> + > = match client + .subscribe(&"author_submitAndWatchExtrinsic", params! { bytes }, "author_unwatchExtrinsic") + .await + { + Ok(sub) => sub, + Err(why) => { + // This usually happens when we've been busy with mining for a few blocks, and + // now we're receiving the subscriptions of blocks in which we were busy. In + // these blocks, we still don't have a solution, so we re-compute a new solution + // and submit it with an outdated `Nonce`, which yields most often `Stale` + // error. NOTE: to improve this overall, and to be able to introduce an array of + // other fancy features, we should make this multi-threaded and do the + // computation outside of this callback. + log::warn!(target: LOG_TARGET, "failing to submit a transaction {:?}. continuing...", why); + continue } - _ => { - log::warn!(target: LOG_TARGET, "Stopping listen due to other status {:?}", status_update); - break + }; + + while let Some(status_update) = tx_subscription.next().await? { + log::trace!(target: LOG_TARGET, "status update {:?}", status_update); + match status_update { + TransactionStatus::Ready | TransactionStatus::Broadcast(_) | TransactionStatus::Future => continue, + TransactionStatus::InBlock(hash) => { + log::info!(target: LOG_TARGET, "included at {:?}", hash); + let key = frame_support::storage::storage_prefix(b"System", b"Events"); + let events = get_storage::::Hash>>, + >(client, params!{ key, hash }).await?.unwrap_or_default(); + log::info!(target: LOG_TARGET, "events at inclusion {:?}", events); + } + TransactionStatus::Retracted(hash) => { + log::info!(target: LOG_TARGET, "Retracted at {:?}", hash); + } + TransactionStatus::Finalized(hash) => { + log::info!(target: LOG_TARGET, "Finalized at {:?}", hash); + break + } + _ => { + log::warn!(target: LOG_TARGET, "Stopping listen due to other status {:?}", status_update); + break + } } - } - }; - } + }; + } - Ok(()) + log::warn!(target: LOG_TARGET, "subscription to {} terminated. Retrying..", sub) + } } }}} From 726688c2136da1ab3494a4ba5d181959b243602d Mon Sep 17 00:00:00 2001 From: Kian Paimani <5588131+kianenigma@users.noreply.github.com> Date: Thu, 14 Oct 2021 13:20:00 +0100 Subject: [PATCH 39/40] companion for substrate/10013 (#4078) * companion for substrate/10013 * remove in buffer * update Substrate Co-authored-by: parity-processbot <> --- Cargo.lock | 330 +++++++++++++++++------------------ node/test/service/src/lib.rs | 1 + 2 files changed, 166 insertions(+), 165 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bad2edc33a7e..18b668a23585 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -439,9 +439,9 @@ checksum = "a4521f3e3d031370679b3b140beb36dfe4801b09ac77e30c61941f97df3ef28b" [[package]] name = "base58" -version = "0.1.0" +version = "0.2.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5024ee8015f02155eee35c711107ddd9a9bf3cb689cf2a9089c97e79b6e1ae83" +checksum = "6107fe1be6682a68940da878d9e9f5e90ca5745b3dec9fd1bb393c8777d4f581" [[package]] name = "base64" @@ -467,7 +467,7 @@ dependencies = [ [[package]] name = "beefy-gadget" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "beefy-primitives", "fnv", @@ -495,7 +495,7 @@ dependencies = [ [[package]] name = "beefy-gadget-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "beefy-gadget", "beefy-primitives", @@ -515,12 +515,12 @@ dependencies = [ [[package]] name = "beefy-merkle-tree" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" [[package]] name = "beefy-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -1910,7 +1910,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", ] @@ -1928,7 +1928,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -1948,7 +1948,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "Inflector", "chrono", @@ -1974,7 +1974,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -1988,7 +1988,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -2016,7 +2016,7 @@ dependencies = [ [[package]] name = "frame-support" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "bitflags", "frame-metadata", @@ -2043,7 +2043,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -2055,7 +2055,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.1.0", @@ -2067,7 +2067,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro2", "quote", @@ -2077,7 +2077,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-support-test-pallet", @@ -2100,7 +2100,7 @@ dependencies = [ [[package]] name = "frame-support-test-pallet" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -2111,7 +2111,7 @@ dependencies = [ [[package]] name = "frame-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "log", @@ -2128,7 +2128,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -2143,7 +2143,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "sp-api", @@ -2152,7 +2152,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "sp-api", @@ -2365,7 +2365,7 @@ checksum = "8f5f3913fa0bfe7ee1fd8248b6b9f42a5af4b9d65ec2dd2c3c26132b950ecfc2" [[package]] name = "generate-bags" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "chrono", "frame-election-provider-support", @@ -4606,7 +4606,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-assets" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4620,7 +4620,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -4636,7 +4636,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -4651,7 +4651,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4675,7 +4675,7 @@ dependencies = [ [[package]] name = "pallet-bags-list" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4695,7 +4695,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4710,7 +4710,7 @@ dependencies = [ [[package]] name = "pallet-beefy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "beefy-primitives", "frame-support", @@ -4726,7 +4726,7 @@ dependencies = [ [[package]] name = "pallet-beefy-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "beefy-merkle-tree", "beefy-primitives", @@ -4751,7 +4751,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4836,7 +4836,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4853,7 +4853,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4869,7 +4869,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4893,7 +4893,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4911,7 +4911,7 @@ dependencies = [ [[package]] name = "pallet-gilt" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4926,7 +4926,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4949,7 +4949,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4965,7 +4965,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -4985,7 +4985,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5002,7 +5002,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5019,7 +5019,7 @@ dependencies = [ [[package]] name = "pallet-mmr" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "ckb-merkle-mountain-range", "frame-benchmarking", @@ -5037,7 +5037,7 @@ dependencies = [ [[package]] name = "pallet-mmr-primitives" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5053,7 +5053,7 @@ dependencies = [ [[package]] name = "pallet-mmr-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5070,7 +5070,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5085,7 +5085,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5099,7 +5099,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5116,7 +5116,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5139,7 +5139,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5154,7 +5154,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5168,7 +5168,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5184,7 +5184,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5205,7 +5205,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5221,7 +5221,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5235,7 +5235,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -5258,7 +5258,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -5269,7 +5269,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-fn" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "log", "sp-arithmetic", @@ -5278,7 +5278,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5292,7 +5292,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5310,7 +5310,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5329,7 +5329,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-support", "frame-system", @@ -5346,7 +5346,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -5363,7 +5363,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -5374,7 +5374,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5391,7 +5391,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -5407,7 +5407,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-benchmarking", "frame-support", @@ -7778,7 +7778,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "env_logger 0.9.0", "jsonrpsee-proc-macros", @@ -7814,9 +7814,9 @@ dependencies = [ [[package]] name = "retain_mut" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e9c17925a9027d298a4603d286befe3f9dc0e8ed02523141914eb628798d6e5b" +checksum = "448296241d034b96c11173591deaa1302f2c17b56092106c1f92c1bc0183a8c9" [[package]] name = "ring" @@ -8041,7 +8041,7 @@ dependencies = [ [[package]] name = "sc-allocator" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "log", "sp-core", @@ -8052,7 +8052,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "derive_more", @@ -8079,7 +8079,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8102,7 +8102,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -8118,7 +8118,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8134,7 +8134,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8145,7 +8145,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "chrono", "fdlimit", @@ -8183,7 +8183,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "fnv", "futures 0.3.17", @@ -8211,7 +8211,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "hash-db", "kvdb", @@ -8236,7 +8236,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "futures 0.3.17", @@ -8260,7 +8260,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "derive_more", @@ -8303,7 +8303,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "derive_more", "futures 0.3.17", @@ -8327,7 +8327,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "fork-tree", "parity-scale-codec", @@ -8340,7 +8340,7 @@ dependencies = [ [[package]] name = "sc-consensus-manual-seal" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "assert_matches", "async-trait", @@ -8374,7 +8374,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "futures 0.3.17", @@ -8400,7 +8400,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "sc-client-api", "sp-authorship", @@ -8411,7 +8411,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "lazy_static", "libsecp256k1 0.6.0", @@ -8437,7 +8437,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "derive_more", "environmental", @@ -8455,7 +8455,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "log", "parity-scale-codec", @@ -8471,7 +8471,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "cfg-if 1.0.0", "libc", @@ -8489,7 +8489,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "derive_more", @@ -8526,7 +8526,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "derive_more", "finality-grandpa", @@ -8550,7 +8550,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "ansi_term 0.12.1", "futures 0.3.17", @@ -8567,7 +8567,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "derive_more", @@ -8582,7 +8582,7 @@ dependencies = [ [[package]] name = "sc-light" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "hash-db", "parity-scale-codec", @@ -8600,7 +8600,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-std", "async-trait", @@ -8651,7 +8651,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -8667,7 +8667,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "bytes 1.0.1", "fnv", @@ -8694,7 +8694,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "libp2p", @@ -8707,7 +8707,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -8716,7 +8716,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "hash-db", @@ -8747,7 +8747,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8772,7 +8772,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "jsonrpc-core", @@ -8789,7 +8789,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "directories", @@ -8854,7 +8854,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "log", "parity-scale-codec", @@ -8868,7 +8868,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8890,7 +8890,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "chrono", "futures 0.3.17", @@ -8908,7 +8908,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8938,7 +8938,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -8949,7 +8949,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "intervalier", @@ -8976,7 +8976,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "derive_more", "futures 0.3.17", @@ -8990,7 +8990,7 @@ dependencies = [ [[package]] name = "sc-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "futures-timer 3.0.2", @@ -9413,7 +9413,7 @@ dependencies = [ [[package]] name = "sp-api" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "hash-db", "log", @@ -9430,7 +9430,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "blake2-rfc", "proc-macro-crate 1.1.0", @@ -9442,7 +9442,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -9455,7 +9455,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "integer-sqrt", "num-traits", @@ -9470,7 +9470,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -9483,7 +9483,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "parity-scale-codec", @@ -9495,7 +9495,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "sp-api", @@ -9507,7 +9507,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "log", @@ -9525,7 +9525,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "futures 0.3.17", @@ -9544,7 +9544,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "merlin", @@ -9567,7 +9567,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -9578,7 +9578,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -9590,7 +9590,7 @@ dependencies = [ [[package]] name = "sp-core" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "base58", "blake2-rfc", @@ -9636,7 +9636,7 @@ dependencies = [ [[package]] name = "sp-database" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "kvdb", "parking_lot", @@ -9645,7 +9645,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro2", "quote", @@ -9655,7 +9655,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "environmental", "parity-scale-codec", @@ -9666,7 +9666,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "finality-grandpa", "log", @@ -9684,7 +9684,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "impl-trait-for-tuples", @@ -9698,7 +9698,7 @@ dependencies = [ [[package]] name = "sp-io" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "hash-db", @@ -9722,7 +9722,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "lazy_static", "sp-core", @@ -9733,7 +9733,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "derive_more", @@ -9750,7 +9750,7 @@ dependencies = [ [[package]] name = "sp-maybe-compressed-blob" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "zstd", ] @@ -9758,7 +9758,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -9773,7 +9773,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-solution-type" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -9784,7 +9784,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "sp-api", "sp-core", @@ -9794,7 +9794,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "backtrace", ] @@ -9802,7 +9802,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "rustc-hash", "serde", @@ -9812,7 +9812,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "either", "hash256-std-hasher", @@ -9834,7 +9834,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9851,7 +9851,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "Inflector", "proc-macro-crate 1.1.0", @@ -9863,7 +9863,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "serde", "serde_json", @@ -9872,7 +9872,7 @@ dependencies = [ [[package]] name = "sp-session" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -9886,7 +9886,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "scale-info", @@ -9897,7 +9897,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "hash-db", "log", @@ -9920,12 +9920,12 @@ dependencies = [ [[package]] name = "sp-std" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" [[package]] name = "sp-storage" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9938,7 +9938,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "log", "sp-core", @@ -9951,7 +9951,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "futures-timer 3.0.2", @@ -9967,7 +9967,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "sp-std", @@ -9979,7 +9979,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "sp-api", "sp-runtime", @@ -9988,7 +9988,7 @@ dependencies = [ [[package]] name = "sp-transaction-storage-proof" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "log", @@ -10004,7 +10004,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "hash-db", "memory-db", @@ -10019,7 +10019,7 @@ dependencies = [ [[package]] name = "sp-version" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "impl-serde", "parity-scale-codec", @@ -10035,7 +10035,7 @@ dependencies = [ [[package]] name = "sp-version-proc-macro" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "parity-scale-codec", "proc-macro2", @@ -10046,7 +10046,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -10274,7 +10274,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "platforms", ] @@ -10282,7 +10282,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.17", @@ -10304,7 +10304,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-std", "derive_more", @@ -10318,7 +10318,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "async-trait", "futures 0.3.17", @@ -10345,7 +10345,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "4.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "futures 0.3.17", "substrate-test-utils-derive", @@ -10355,7 +10355,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "proc-macro-crate 1.1.0", "proc-macro2", @@ -10366,7 +10366,7 @@ dependencies = [ [[package]] name = "substrate-wasm-builder" version = "5.0.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "ansi_term 0.12.1", "build-helper", @@ -10519,7 +10519,7 @@ dependencies = [ [[package]] name = "test-runner" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "frame-system", "futures 0.3.17", @@ -10960,7 +10960,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.10.0-dev" -source = "git+https://github.com/paritytech/substrate?branch=master#66f0008af39054d1457ad7eac78a47efa6bc39a3" +source = "git+https://github.com/paritytech/substrate?branch=master#00629de9b7aae97e041b21b081f469eb834169a7" dependencies = [ "jsonrpsee-ws-client", "log", diff --git a/node/test/service/src/lib.rs b/node/test/service/src/lib.rs index 5cbad24d55a7..103be52c5fd7 100644 --- a/node/test/service/src/lib.rs +++ b/node/test/service/src/lib.rs @@ -177,6 +177,7 @@ pub fn node_config( rpc_ws_max_connections: None, rpc_cors: None, rpc_methods: Default::default(), + ws_max_out_buffer_capacity: None, prometheus_config: None, telemetry_endpoints: None, default_heap_pages: None, From 9866a9ce0c1d252c09c97bf2c122ccde82e0746c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Silva=20de=20Souza?= <77391175+joao-paulo-parity@users.noreply.github.com> Date: Thu, 14 Oct 2021 09:25:26 -0300 Subject: [PATCH 40/40] use pipeline-scripts for dependent projects script (#4017) --- .gitlab-ci.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index ae10e34d6260..fdf51e1c1012 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -31,6 +31,7 @@ variables: VAULT_SERVER_URL: "https://vault.parity-mgmt-vault.parity.io" VAULT_AUTH_PATH: "gitlab-parity-io-jwt" VAULT_AUTH_ROLE: "cicd_gitlab_parity_${CI_PROJECT_NAME}" + PIPELINE_SCRIPTS_TAG: "v0.1" default: cache: {} @@ -270,6 +271,28 @@ build-adder-collator: #### stage: build +.check-dependent-project: &check-dependent-project + stage: build + <<: *docker-env + <<: *vault-secrets + script: + - git clone + --depth=1 + "--branch=$PIPELINE_SCRIPTS_TAG" + https://github.com/paritytech/pipeline-scripts + - ./pipeline-scripts/check_dependent_project.sh + paritytech + polkadot + --polkadot + "$DEPENDENT_REPO" + "$GITHUB_PR_TOKEN" + - cd "$DEPENDENT_REPO" && git rev-parse --abbrev-ref HEAD + +check-dependent-cumulus: + <<: *check-dependent-project + variables: + DEPENDENT_REPO: cumulus + check-transaction-versions: # image must be ubuntu:20.04 based to match the linkers, this image has npm installed image: paritytech/contracts-ci-linux:production