diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 63647dac7d..60e679b9e9 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -27,7 +27,7 @@ version = "0.1.0" dependencies = [ "adder 0.7.8", "ctrlc 3.1.3 (registry+https://github.com/rust-lang/crates.io-index)", - "exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "exit-future 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "parking_lot 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)", "polkadot-collator 0.7.8", @@ -427,6 +427,11 @@ dependencies = [ "iovec 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "bytes" +version = "0.5.2" +source = "registry+https://github.com/rust-lang/crates.io-index" + [[package]] name = "c2-chacha" version = "0.2.3" @@ -954,6 +959,14 @@ dependencies = [ "parking_lot 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "exit-future" +version = "0.2.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "faerie" version = "0.13.0" @@ -1067,7 +1080,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "fork-tree" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -1075,7 +1088,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -1089,7 +1102,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1100,7 +1113,7 @@ dependencies = [ [[package]] name = "frame-support" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "bitmask 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "frame-metadata 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -1124,7 +1137,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support-procedural-tools 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1135,7 +1148,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support-procedural-tools-derive 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1147,7 +1160,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1157,7 +1170,7 @@ dependencies = [ [[package]] name = "frame-system" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1174,7 +1187,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -1464,7 +1477,7 @@ dependencies = [ [[package]] name = "grafana-data-source" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "async-std 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "chrono 0.4.9 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2810,7 +2823,7 @@ dependencies = [ [[package]] name = "pallet-authority-discovery" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2828,7 +2841,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2845,7 +2858,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2866,7 +2879,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2880,7 +2893,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2896,7 +2909,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2911,7 +2924,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2924,7 +2937,7 @@ dependencies = [ [[package]] name = "pallet-finality-tracker" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2940,7 +2953,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2949,7 +2962,7 @@ dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "sp-core 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "sp-finality-granpda 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sp-finality-grandpa 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-staking 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-std 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2958,7 +2971,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "0.1.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2977,7 +2990,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -2994,7 +3007,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3008,7 +3021,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3022,7 +3035,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "1.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3037,7 +3050,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3050,7 +3063,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3069,7 +3082,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3089,7 +3102,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3100,7 +3113,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3116,7 +3129,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3129,7 +3142,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-core-client 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3146,7 +3159,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3159,7 +3172,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-support 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "frame-system 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3469,7 +3482,7 @@ name = "polkadot-availability-store" version = "0.7.8" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", - "exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "exit-future 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures01 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", "kvdb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3554,7 +3567,7 @@ name = "polkadot-network" version = "0.7.8" dependencies = [ "arrayvec 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", - "exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "exit-future 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -3730,7 +3743,7 @@ dependencies = [ "sp-consensus 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-consensus-babe 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-core 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "sp-finality-granpda 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sp-finality-grandpa 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -3753,7 +3766,7 @@ dependencies = [ "async-std 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "bitvec 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "derive_more 0.14.1 (registry+https://github.com/rust-lang/crates.io-index)", - "exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "exit-future 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures-timer 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4290,7 +4303,7 @@ dependencies = [ [[package]] name = "sc-application-crypto" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4302,7 +4315,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4326,7 +4339,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4340,7 +4353,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "sc-chain-spec-derive 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4355,7 +4368,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4366,7 +4379,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "ansi_term 0.12.1 (registry+https://github.com/rust-lang/crates.io-index)", "app_dirs 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4376,7 +4389,6 @@ dependencies = [ "env_logger 0.7.1 (registry+https://github.com/rust-lang/crates.io-index)", "fdlimit 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", - "futures01 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "names 0.11.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4396,13 +4408,13 @@ dependencies = [ "sp-state-machine 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "structopt 0.3.5 (registry+https://github.com/rust-lang/crates.io-index)", "time 0.1.42 (registry+https://github.com/rust-lang/crates.io-index)", - "tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)", + "tokio 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] name = "sc-client" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4435,7 +4447,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4467,7 +4479,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "kvdb 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4492,7 +4504,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "fork-tree 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4532,7 +4544,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "futures-timer 2.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4551,7 +4563,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "sc-client-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4565,7 +4577,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "cranelift-codegen 0.50.0 (registry+https://github.com/rust-lang/crates.io-index)", "cranelift-entity 0.50.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4597,7 +4609,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "finality-grandpa 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", "fork-tree 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4616,7 +4628,7 @@ dependencies = [ "sp-blockchain 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-consensus 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-core 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", - "sp-finality-granpda 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", + "sp-finality-grandpa 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-finality-tracker 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4627,7 +4639,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "hex 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4642,7 +4654,7 @@ dependencies = [ [[package]] name = "sc-network" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "bitflags 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)", "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4687,7 +4699,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "fnv 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4714,7 +4726,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "libp2p 0.13.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4725,7 +4737,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4754,7 +4766,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4776,7 +4788,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "jsonrpc-core 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", "jsonrpc-http-server 14.0.3 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4791,10 +4803,10 @@ dependencies = [ [[package]] name = "sc-service" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", - "exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", + "exit-future 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", "grafana-data-source 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4839,7 +4851,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4850,7 +4862,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.1.29 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4872,7 +4884,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "erased-serde 0.3.9 (registry+https://github.com/rust-lang/crates.io-index)", "grafana-data-source 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -4888,7 +4900,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -4903,7 +4915,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5195,7 +5207,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" [[package]] name = "sp-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-api-proc-macro 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5209,7 +5221,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5221,7 +5233,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "integer-sqrt 0.1.2 (registry+https://github.com/rust-lang/crates.io-index)", "num-traits 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5234,7 +5246,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sc-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5246,7 +5258,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5256,7 +5268,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5268,7 +5280,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5284,7 +5296,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5303,7 +5315,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sc-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5319,7 +5331,7 @@ dependencies = [ [[package]] name = "sp-core" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "base58 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "blake2-rfc 0.2.18 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5358,7 +5370,7 @@ dependencies = [ [[package]] name = "sp-core-storage" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "impl-serde 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5369,7 +5381,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "proc-macro2 1.0.6 (registry+https://github.com/rust-lang/crates.io-index)", "quote 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5379,7 +5391,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "environmental 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "sp-core-storage 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5387,9 +5399,9 @@ dependencies = [ ] [[package]] -name = "sp-finality-granpda" +name = "sp-finality-grandpa" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sc-application-crypto 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5402,7 +5414,7 @@ dependencies = [ [[package]] name = "sp-finality-tracker" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5412,7 +5424,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5424,7 +5436,7 @@ dependencies = [ [[package]] name = "sp-io" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "libsecp256k1 0.3.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5441,7 +5453,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-core 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5452,7 +5464,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "sp-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5461,7 +5473,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "backtrace 0.3.40 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5470,7 +5482,7 @@ dependencies = [ [[package]] name = "sp-phragmen" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5480,7 +5492,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "sp-core 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5489,7 +5501,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5508,7 +5520,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "environmental 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5523,7 +5535,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "Inflector 0.11.4 (registry+https://github.com/rust-lang/crates.io-index)", "proc-macro-crate 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5535,7 +5547,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "serde 1.0.102 (registry+https://github.com/rust-lang/crates.io-index)", "serde_json 1.0.41 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5544,7 +5556,7 @@ dependencies = [ [[package]] name = "sp-session" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "sp-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5554,7 +5566,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", "sp-runtime 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5564,7 +5576,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5583,12 +5595,12 @@ dependencies = [ [[package]] name = "sp-std" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" [[package]] name = "sp-timestamp" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5601,7 +5613,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "derive_more 0.99.2 (registry+https://github.com/rust-lang/crates.io-index)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5615,7 +5627,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool-runtime-api" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "sp-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "sp-core 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", @@ -5625,7 +5637,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "hash-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", "memory-db 0.15.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5639,7 +5651,7 @@ dependencies = [ [[package]] name = "sp-version" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "impl-serde 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)", "parity-scale-codec 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5651,7 +5663,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "impl-trait-for-tuples 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)", "wasmi 0.6.2 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5755,7 +5767,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "2.0.0" -source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#6e242a5a9fcc5d5ea34386864ec064a01677efff" +source = "git+https://github.com/paritytech/substrate?branch=polkadot-master#333f3a7d00771d15102bd40f5aade9e58b1b095f" dependencies = [ "frame-system-rpc-runtime-api 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)", "futures 0.3.1 (registry+https://github.com/rust-lang/crates.io-index)", @@ -5981,6 +5993,15 @@ dependencies = [ "tokio-uds 0.2.5 (registry+https://github.com/rust-lang/crates.io-index)", ] +[[package]] +name = "tokio" +version = "0.2.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "bytes 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)", + "pin-project-lite 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "tokio-buf" version = "0.1.1" @@ -6916,6 +6937,7 @@ dependencies = [ "checksum byteorder 0.5.3 (registry+https://github.com/rust-lang/crates.io-index)" = "0fc10e8cc6b2580fda3f36eb6dc5316657f812a3df879a44a66fc9f0fdbc4855" "checksum byteorder 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)" = "a7c3dd8985a7111efc5c80b44e23ecdd8c007de8ade3b96595387e812b957cf5" "checksum bytes 0.4.12 (registry+https://github.com/rust-lang/crates.io-index)" = "206fdffcfa2df7cbe15601ef46c813fce0965eb3286db6b56c583b814b51c81c" +"checksum bytes 0.5.2 (registry+https://github.com/rust-lang/crates.io-index)" = "1c85319f157e4e26c703678e68e26ab71a46c0199286fa670b21cc9fec13d895" "checksum c2-chacha 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "214238caa1bf3a496ec3392968969cab8549f96ff30652c9e56885329315f6bb" "checksum c_linked_list 1.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "4964518bd3b4a8190e832886cdc0da9794f12e8e6c1613a9e90ff331c4c8724b" "checksum cc 1.0.47 (registry+https://github.com/rust-lang/crates.io-index)" = "aa87058dce70a3ff5621797f1506cb837edd02ac4c0ae642b4542dce802908b8" @@ -6975,6 +6997,7 @@ dependencies = [ "checksum errno 0.2.4 (registry+https://github.com/rust-lang/crates.io-index)" = "c2a071601ed01b988f896ab14b95e67335d1eeb50190932a1320f7fe3cadc84e" "checksum errno-dragonfly 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "14ca354e36190500e1e1fb267c647932382b54053c50b14970856c0b00a35067" "checksum exit-future 0.1.4 (registry+https://github.com/rust-lang/crates.io-index)" = "d8013f441e38e31c670e7f34ec8f1d5d3a2bd9d303c1ff83976ca886005e8f48" +"checksum exit-future 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)" = "e43f2f1833d64e33f15592464d6fdd70f349dda7b1a53088eb83cd94014008c5" "checksum faerie 0.13.0 (registry+https://github.com/rust-lang/crates.io-index)" = "f902f2af041f6c7177a2a04f805687cdc71e69c7cbef059a2755d8923f4cd7a8" "checksum failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "f8273f13c977665c5db7eb2b99ae520952fe5ac831ae4cd09d80c4c7042b5ed9" "checksum failure_derive 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0bc225b78e0391e4b8683440bf2e63c2deeeb2ce5189eab46e2b68c6d3725d08" @@ -7332,7 +7355,7 @@ dependencies = [ "checksum sp-core-storage 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sp-debug-derive 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sp-externalities 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" -"checksum sp-finality-granpda 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" +"checksum sp-finality-grandpa 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sp-finality-tracker 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sp-inherents 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" "checksum sp-io 2.0.0 (git+https://github.com/paritytech/substrate?branch=polkadot-master)" = "" @@ -7391,6 +7414,7 @@ dependencies = [ "checksum tiny-keccak 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "1d8a021c69bb74a44ccedb824a046447e2c84a01df9e5c20779750acb38e11b2" "checksum tiny-keccak 2.0.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2953ca5148619bc99695c1274cb54c5275bbb913c6adad87e72eaf8db9787f69" "checksum tokio 0.1.22 (registry+https://github.com/rust-lang/crates.io-index)" = "5a09c0b5bb588872ab2f09afa13ee6e9dac11e10a0ec9e8e3ba39a5a5d530af6" +"checksum tokio 0.2.2 (registry+https://github.com/rust-lang/crates.io-index)" = "2e765bf9f550bd9b8a970633ca3b56b8120c4b6c5dcbe26a93744cb02fee4b17" "checksum tokio-buf 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8fb220f46c53859a4b7ec083e41dec9778ff0b1851c0942b211edb89e0ccdc46" "checksum tokio-codec 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "5c501eceaf96f0e1793cf26beb63da3d11c738c4a943fdf3746d81d64684c39f" "checksum tokio-codec 0.2.0-alpha.6 (registry+https://github.com/rust-lang/crates.io-index)" = "9f5d22fd1e84bd4045d28813491cb7d7caae34d45c80517c2213f09a85e8787a" diff --git a/polkadot/availability-store/Cargo.toml b/polkadot/availability-store/Cargo.toml index 899ee248d0..2c12f614a5 100644 --- a/polkadot/availability-store/Cargo.toml +++ b/polkadot/availability-store/Cargo.toml @@ -15,7 +15,7 @@ log = "0.4.8" futures01 = "0.1.17" futures = { package = "futures", version = "0.3.1", features = ["compat"] } tokio = "0.1.7" -exit-future = "0.1" +exit-future = "0.2.0" codec = { package = "parity-scale-codec", version = "1.1.0", default-features = false, features = ["derive"] } sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } consensus_common = { package = "sp-consensus", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } diff --git a/polkadot/availability-store/src/worker.rs b/polkadot/availability-store/src/worker.rs index 153f5d5dd9..c0ee49959a 100644 --- a/polkadot/availability-store/src/worker.rs +++ b/polkadot/availability-store/src/worker.rs @@ -37,9 +37,8 @@ use polkadot_primitives::parachain::{ CandidateReceipt, ParachainHost, ValidatorId, ValidatorPair, AvailableMessages, BlockData, ErasureChunk, }; -use futures01::Future; use futures::channel::{mpsc, oneshot}; -use futures::{FutureExt, Sink, SinkExt, TryFutureExt, StreamExt}; +use futures::{FutureExt, Sink, SinkExt, TryFutureExt, StreamExt, future::select}; use keystore::KeyStorePtr; use tokio::runtime::current_thread::{Handle, Runtime as LocalRuntime}; @@ -166,7 +165,7 @@ impl WorkerHandle { impl Drop for WorkerHandle { fn drop(&mut self) { if let Some(signal) = self.exit_signal.take() { - signal.fire(); + let _ = signal.fire(); } if let Some(thread) = self.thread.take() { @@ -296,7 +295,7 @@ where impl Drop for Worker { fn drop(&mut self) { for (_, signal) in self.registered_gossip_streams.drain() { - signal.fire(); + let _ = signal.fire(); } } } @@ -356,13 +355,10 @@ where self.registered_gossip_streams.insert(topic, signal); let _ = runtime_handle.spawn( - fut - .unit_error() - .boxed() + select(fut.boxed(), exit) + .map(|_| Ok(())) .compat() - .select(exit) - .then(|_| Ok(())) - ); + ); Ok(()) } @@ -423,7 +419,7 @@ where let topic = erasure_coding_topic(relay_parent, receipt.erasure_root, chunk.index); // need to remove gossip listener and stop it. if let Some(signal) = self.registered_gossip_streams.remove(&topic) { - signal.fire(); + let _ = signal.fire(); } } @@ -594,15 +590,12 @@ where }; runtime.spawn( - process_notification - .unit_error() - .boxed() + futures::future::select(process_notification.boxed(), exit.clone()) + .map(|_| Ok(())) .compat() - .select(exit.clone()) - .then(|_| Ok(())) ); - if let Err(e) = runtime.block_on(exit) { + if let Err(e) = runtime.block_on(exit.unit_error().compat()) { warn!(target: LOG_TARGET, "Availability worker error {:?}", e); } @@ -636,7 +629,7 @@ pub struct AvailabilityBlockImport { impl Drop for AvailabilityBlockImport { fn drop(&mut self) { if let Some(signal) = self.exit_signal.take() { - signal.fire(); + let _ = signal.fire(); } } } @@ -775,12 +768,10 @@ impl AvailabilityBlockImport { // dependent on the types of client and executor, which would prove // not not so handy in the testing code. let mut exit_signal = Some(signal); - let prune_available = prune_unneeded_availability(client.clone(), to_worker.clone()) - .unit_error() - .boxed() - .compat() - .select(exit.clone()) - .then(|_| Ok(())); + let prune_available = select( + prune_unneeded_availability(client.clone(), to_worker.clone()).boxed(), + exit.clone() + ).map(|_| Ok(())).compat(); if let Err(_) = thread_pool.execute(Box::new(prune_available)) { error!(target: LOG_TARGET, "Failed to spawn availability pruning task"); diff --git a/polkadot/collator/src/lib.rs b/polkadot/collator/src/lib.rs index 6695acc0cb..324fce743a 100644 --- a/polkadot/collator/src/lib.rs +++ b/polkadot/collator/src/lib.rs @@ -51,7 +51,7 @@ use std::time::Duration; use futures::{ future, Future, Stream, FutureExt, TryFutureExt, StreamExt, - compat::{Compat01As03, Future01CompatExt, Stream01CompatExt} + compat::{Future01CompatExt, Stream01CompatExt} }; use futures01::{Future as _}; use log::{warn, error}; @@ -248,7 +248,7 @@ struct ApiContext { impl RelayChainContext for ApiContext where P: ProvideRuntimeApi + Send + Sync, P::Api: ParachainHost, - E: futures01::Future + Clone + Send + Sync + 'static, + E: futures::Future + Clone + Send + Sync + 'static, { type Error = String; type FutureEgress = Box> + Unpin + Send>; @@ -277,11 +277,11 @@ struct CollationNode { } impl IntoExit for CollationNode where - E: futures01::Future + Unpin + Send + 'static + E: futures::Future + Unpin + Send + 'static { - type Exit = future::Map, fn (Result<(), ()>) -> ()>; + type Exit = E; fn into_exit(self) -> Self::Exit { - self.exit.compat().map(drop) + self.exit } } @@ -289,7 +289,7 @@ impl Worker for CollationNode where P: BuildParachainContext + Send + 'static, P::ParachainContext: Send + 'static, ::ProduceCandidate: Send + 'static, - E: futures01::Future + Clone + Unpin + Send + Sync + 'static, + E: futures::Future + Clone + Unpin + Send + Sync + 'static, { type Work = Box + Unpin + Send>; @@ -433,7 +433,8 @@ impl Worker for CollationNode where outgoing, ); - tokio::spawn(res.select(inner_exit_2.clone()).then(|_| Ok(()))); + let exit = inner_exit_2.clone().unit_error().compat(); + tokio::spawn(res.select(exit).then(|_| Ok(()))); }) }); @@ -454,17 +455,15 @@ impl Worker for CollationNode where let future = future::select( silenced, - inner_exit.clone().map(|_| Ok::<_, ()>(())).compat() + inner_exit.clone() ).map(|_| Ok::<_, ()>(())).compat(); tokio::spawn(future); future::ready(()) }); - let work_and_exit = future::select( - work, - exit.map(|_| Ok::<_, ()>(())).compat() - ).map(|_| ()); + let work_and_exit = future::select(work, exit) + .map(|_| ()); Box::new(work_and_exit) } @@ -495,7 +494,7 @@ pub fn run_collator( P: BuildParachainContext + Send + 'static, P::ParachainContext: Send + 'static, ::ProduceCandidate: Send + 'static, - E: futures01::Future + Unpin + Send + Clone + Sync + 'static, + E: futures::Future + Unpin + Send + Clone + Sync + 'static, { let node_logic = CollationNode { build_parachain_context, exit, para_id, key }; polkadot_cli::run(node_logic, version) diff --git a/polkadot/network/Cargo.toml b/polkadot/network/Cargo.toml index 5d69cb093b..588764778d 100644 --- a/polkadot/network/Cargo.toml +++ b/polkadot/network/Cargo.toml @@ -19,7 +19,7 @@ sp-runtime = { git = "https://github.com/paritytech/substrate", branch = "polkad futures = "0.1" futures03 = { package = "futures", version = "0.3.1", features = ["compat"] } log = "0.4.8" -exit-future = "0.1.4" +exit-future = "0.2.0" sc-client = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } sp-blockchain = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } diff --git a/polkadot/network/src/router.rs b/polkadot/network/src/router.rs index fceb11423b..79d6fffa9e 100644 --- a/polkadot/network/src/router.rs +++ b/polkadot/network/src/router.rs @@ -130,7 +130,7 @@ impl Router w P::Api: ParachainHost, N: NetworkService, T: Clone + Executor + Send + 'static, - E: Future + Clone + Send + 'static, + E: futures03::Future + Clone + Send + Unpin + 'static, { /// Import a statement whose signature has been checked already. pub(crate) fn import_statement(&self, statement: SignedStatement) { @@ -174,7 +174,8 @@ impl Router w if let Some(work) = producer.map(|p| self.create_work(c_hash, p)) { trace!(target: "validation", "driving statement work to completion"); - let work = work.select2(self.fetcher.exit().clone()).then(|_| Ok(())); + let exit = self.fetcher.exit().clone().unit_error().compat(); + let work = work.select2(exit).then(|_| Ok(())); self.fetcher.executor().spawn(work); } } @@ -224,7 +225,7 @@ impl TableRouter for Router wh P::Api: ParachainHost, N: NetworkService, T: Clone + Executor + Send + 'static, - E: Future + Clone + Send + 'static, + E: futures03::Future + Clone + Send + Unpin + 'static, { type Error = io::Error; type FetchValidationProof = validation::PoVReceiver; diff --git a/polkadot/network/src/validation.rs b/polkadot/network/src/validation.rs index 8d8ed4d6f7..25e87559f3 100644 --- a/polkadot/network/src/validation.rs +++ b/polkadot/network/src/validation.rs @@ -33,6 +33,7 @@ use polkadot_primitives::parachain::{ use futures::prelude::*; use futures::future::{self, Executor as FutureExecutor}; use futures::sync::oneshot::{self, Receiver}; +use futures03::{FutureExt as _, TryFutureExt as _}; use std::collections::hash_map::{HashMap, Entry}; use std::io; @@ -123,7 +124,7 @@ impl Clone for ValidationNetwork { impl ValidationNetwork where P: ProvideRuntimeApi + Send + Sync + 'static, P::Api: ParachainHost, - E: Clone + Future + Send + Sync + 'static, + E: Clone + futures03::Future + Send + Sync + 'static, N: NetworkService, T: Clone + Executor + Send + Sync + 'static, { @@ -206,7 +207,7 @@ impl ValidationNetwork where N: NetworkService { impl ParachainNetwork for ValidationNetwork where P: ProvideRuntimeApi + Send + Sync + 'static, P::Api: ParachainHost, - E: Clone + Future + Send + Sync + 'static, + E: Clone + futures03::Future + Send + Sync + Unpin + 'static, N: NetworkService, T: Clone + Executor + Send + Sync + 'static, { @@ -242,8 +243,12 @@ impl ParachainNetwork for ValidationNetwork where let table_router_clone = table_router.clone(); let work = table_router.checked_statements() - .for_each(move |msg| { table_router_clone.import_statement(msg); Ok(()) }); - executor.spawn(work.select(exit.clone()).map(|_| ()).map_err(|_| ())); + .for_each(move |msg| { table_router_clone.import_statement(msg); Ok(()) }) + .select(exit.clone().unit_error().compat()) + .map(|_| ()) + .map_err(|_| ()); + + executor.spawn(work); table_router }); @@ -670,7 +675,7 @@ impl LeafWorkDataFetcher where P::Api: ParachainHost, N: NetworkService, T: Clone + Executor + Send + 'static, - E: Future + Clone + Send + 'static, + E: futures03::Future + Clone + Send + 'static, { /// Fetch PoV block for the given candidate receipt. pub fn fetch_pov_block(&self, candidate: &CandidateReceipt) -> PoVReceiver { diff --git a/polkadot/service/Cargo.toml b/polkadot/service/Cargo.toml index e065990acb..7961f41c11 100644 --- a/polkadot/service/Cargo.toml +++ b/polkadot/service/Cargo.toml @@ -31,7 +31,7 @@ sc-executor = { git = "https://github.com/paritytech/substrate", branch = "polka sc-network = { git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } consensus_common = { package = "sp-consensus", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } grandpa = { package = "sc-finality-grandpa", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } -grandpa_primitives = { package = "sp-finality-granpda", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } +grandpa_primitives = { package = "sp-finality-grandpa", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } inherents = { package = "sp-inherents", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } service = { package = "sc-service", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } telemetry = { package = "sc-telemetry", git = "https://github.com/paritytech/substrate", branch = "polkadot-master" } diff --git a/polkadot/test-parachains/adder/collator/Cargo.toml b/polkadot/test-parachains/adder/collator/Cargo.toml index a7eab76356..b694bd6f93 100644 --- a/polkadot/test-parachains/adder/collator/Cargo.toml +++ b/polkadot/test-parachains/adder/collator/Cargo.toml @@ -15,4 +15,4 @@ client-api = { package = "sc-client-api", git = "https://github.com/paritytech/s parking_lot = "0.9.0" ctrlc = { version = "3.1.3", features = ["termination"] } futures = "0.3.1" -exit-future = "0.1.4" +exit-future = "0.2.0" diff --git a/polkadot/test-parachains/adder/collator/src/main.rs b/polkadot/test-parachains/adder/collator/src/main.rs index 5f296bd606..fe3e9d7473 100644 --- a/polkadot/test-parachains/adder/collator/src/main.rs +++ b/polkadot/test-parachains/adder/collator/src/main.rs @@ -145,7 +145,7 @@ fn main() { let exit_send_cell = RefCell::new(Some(exit_send)); ctrlc::set_handler(move || { if let Some(exit_send) = exit_send_cell.try_borrow_mut().expect("signal handler not reentrant; qed").take() { - exit_send.fire(); + let _ = exit_send.fire(); } }).expect("Error setting up ctrl-c handler"); diff --git a/polkadot/validation/Cargo.toml b/polkadot/validation/Cargo.toml index 54f4e93280..d7622168cc 100644 --- a/polkadot/validation/Cargo.toml +++ b/polkadot/validation/Cargo.toml @@ -13,7 +13,7 @@ parking_lot = "0.9.0" tokio = "0.1.22" derive_more = "0.14.1" log = "0.4.8" -exit-future = "0.1.4" +exit-future = "0.2.0" tokio-executor = { version = "0.2.0-alpha.6", features = ["blocking"] } codec = { package = "parity-scale-codec", version = "1.1.0", default-features = false, features = ["derive"] } availability_store = { package = "polkadot-availability-store", path = "../availability-store" } diff --git a/polkadot/validation/src/attestation_service.rs b/polkadot/validation/src/attestation_service.rs index f09307b7e0..4875cb7406 100644 --- a/polkadot/validation/src/attestation_service.rs +++ b/polkadot/validation/src/attestation_service.rs @@ -30,7 +30,7 @@ use sp_blockchain::HeaderBackend; use block_builder::BlockBuilderApi; use consensus::SelectChain; use futures::prelude::*; -use futures03::{TryStreamExt as _, StreamExt as _}; +use futures03::{TryStreamExt as _, StreamExt as _, FutureExt as _, TryFutureExt as _}; use log::error; use polkadot_primitives::Block; use polkadot_primitives::parachain::ParachainHost; @@ -107,7 +107,7 @@ pub(crate) fn start( } Ok(()) }) - .select(exit.clone()) + .select(exit.clone().unit_error().compat()) .then(|_| Ok(())) }; @@ -130,7 +130,7 @@ pub(crate) fn start( } }) .map_err(|e| warn!("Timer error {:?}", e)) - .select(exit.clone()) + .select(exit.clone().unit_error().compat()) .then(|_| Ok(())) }; @@ -139,7 +139,7 @@ pub(crate) fn start( error!("Failed to spawn old sessions pruning task"); } - if let Err(e) = runtime.block_on(exit) { + if let Err(e) = runtime.block_on(exit.unit_error().compat()) { debug!("BFT event loop error {:?}", e); } }); @@ -153,7 +153,7 @@ pub(crate) fn start( impl Drop for ServiceHandle { fn drop(&mut self) { if let Some(signal) = self.exit_signal.take() { - signal.fire(); + let _ = signal.fire(); } if let Some(thread) = self.thread.take() { diff --git a/polkadot/validation/src/lib.rs b/polkadot/validation/src/lib.rs index 61291c2ada..dc67702783 100644 --- a/polkadot/validation/src/lib.rs +++ b/polkadot/validation/src/lib.rs @@ -456,7 +456,7 @@ impl ParachainValidation where }) .and_then(with_router) .then(|_| Ok(())) - .select(exit) + .select(exit.unit_error().compat()) .then(|_| Ok(())); // spawn onto thread pool.