diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 7dfe23d9d7..581fc4abd5 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -1658,7 +1658,7 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "fork-tree" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", ] @@ -1676,7 +1676,7 @@ dependencies = [ [[package]] name = "frame-benchmarking" version = "3.1.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -1695,7 +1695,7 @@ dependencies = [ [[package]] name = "frame-benchmarking-cli" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "Inflector", "chrono", @@ -1718,7 +1718,7 @@ dependencies = [ [[package]] name = "frame-election-provider-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -1731,7 +1731,7 @@ dependencies = [ [[package]] name = "frame-executive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -1747,7 +1747,7 @@ dependencies = [ [[package]] name = "frame-metadata" version = "13.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "serde", @@ -1758,7 +1758,7 @@ dependencies = [ [[package]] name = "frame-support" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "bitflags", "frame-metadata", @@ -1784,7 +1784,7 @@ dependencies = [ [[package]] name = "frame-support-procedural" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "Inflector", "frame-support-procedural-tools", @@ -1796,7 +1796,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support-procedural-tools-derive", "proc-macro-crate 1.0.0", @@ -1808,7 +1808,7 @@ dependencies = [ [[package]] name = "frame-support-procedural-tools-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro2", "quote", @@ -1818,7 +1818,7 @@ dependencies = [ [[package]] name = "frame-support-test" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-metadata", "frame-support", @@ -1839,7 +1839,7 @@ dependencies = [ [[package]] name = "frame-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "impl-trait-for-tuples", @@ -1856,7 +1856,7 @@ dependencies = [ [[package]] name = "frame-system-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -1870,7 +1870,7 @@ dependencies = [ [[package]] name = "frame-system-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-api", @@ -1879,7 +1879,7 @@ dependencies = [ [[package]] name = "frame-try-runtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "parity-scale-codec", @@ -4206,7 +4206,7 @@ checksum = "13370dae44474229701bb69b90b4f4dca6404cb0357a2d50d635f1171dc3aa7b" [[package]] name = "pallet-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4222,7 +4222,7 @@ dependencies = [ [[package]] name = "pallet-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4237,7 +4237,7 @@ dependencies = [ [[package]] name = "pallet-babe" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4261,7 +4261,7 @@ dependencies = [ [[package]] name = "pallet-balances" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4276,7 +4276,7 @@ dependencies = [ [[package]] name = "pallet-bounties" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4291,7 +4291,7 @@ dependencies = [ [[package]] name = "pallet-collective" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4308,7 +4308,7 @@ dependencies = [ [[package]] name = "pallet-democracy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4323,7 +4323,7 @@ dependencies = [ [[package]] name = "pallet-election-provider-multi-phase" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4344,7 +4344,7 @@ dependencies = [ [[package]] name = "pallet-elections-phragmen" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4360,7 +4360,7 @@ dependencies = [ [[package]] name = "pallet-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4382,7 +4382,7 @@ dependencies = [ [[package]] name = "pallet-identity" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "enumflags2", "frame-benchmarking", @@ -4398,7 +4398,7 @@ dependencies = [ [[package]] name = "pallet-im-online" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4418,7 +4418,7 @@ dependencies = [ [[package]] name = "pallet-indices" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4435,7 +4435,7 @@ dependencies = [ [[package]] name = "pallet-membership" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4449,7 +4449,7 @@ dependencies = [ [[package]] name = "pallet-multisig" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4465,7 +4465,7 @@ dependencies = [ [[package]] name = "pallet-nicks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4479,7 +4479,7 @@ dependencies = [ [[package]] name = "pallet-offences" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4495,7 +4495,7 @@ dependencies = [ [[package]] name = "pallet-offences-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4517,7 +4517,7 @@ dependencies = [ [[package]] name = "pallet-proxy" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4533,7 +4533,7 @@ dependencies = [ [[package]] name = "pallet-randomness-collective-flip" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4546,7 +4546,7 @@ dependencies = [ [[package]] name = "pallet-recovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "enumflags2", "frame-support", @@ -4561,7 +4561,7 @@ dependencies = [ [[package]] name = "pallet-scheduler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4577,7 +4577,7 @@ dependencies = [ [[package]] name = "pallet-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4597,7 +4597,7 @@ dependencies = [ [[package]] name = "pallet-session-benchmarking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4613,7 +4613,7 @@ dependencies = [ [[package]] name = "pallet-society" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4627,7 +4627,7 @@ dependencies = [ [[package]] name = "pallet-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-election-provider-support", @@ -4637,6 +4637,7 @@ dependencies = [ "pallet-authorship", "pallet-session", "parity-scale-codec", + "paste 1.0.4", "rand_chacha 0.2.2", "serde", "sp-application-crypto", @@ -4651,7 +4652,7 @@ dependencies = [ [[package]] name = "pallet-staking-reward-curve" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -4662,7 +4663,7 @@ dependencies = [ [[package]] name = "pallet-sudo" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4676,7 +4677,7 @@ dependencies = [ [[package]] name = "pallet-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4695,7 +4696,7 @@ dependencies = [ [[package]] name = "pallet-tips" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4710,7 +4711,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-support", "frame-system", @@ -4726,7 +4727,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -4743,7 +4744,7 @@ dependencies = [ [[package]] name = "pallet-transaction-payment-rpc-runtime-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "pallet-transaction-payment", "parity-scale-codec", @@ -4754,7 +4755,7 @@ dependencies = [ [[package]] name = "pallet-treasury" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4770,7 +4771,7 @@ dependencies = [ [[package]] name = "pallet-utility" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-benchmarking", "frame-support", @@ -4786,7 +4787,7 @@ dependencies = [ [[package]] name = "pallet-vesting" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "enumflags2", "frame-benchmarking", @@ -6958,7 +6959,7 @@ dependencies = [ [[package]] name = "remote-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "env_logger 0.8.2", "hex-literal", @@ -7214,7 +7215,7 @@ dependencies = [ [[package]] name = "sc-authority-discovery" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "async-trait", "derive_more", @@ -7242,7 +7243,7 @@ dependencies = [ [[package]] name = "sc-basic-authorship" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7265,7 +7266,7 @@ dependencies = [ [[package]] name = "sc-block-builder" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sc-client-api", @@ -7281,7 +7282,7 @@ dependencies = [ [[package]] name = "sc-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -7302,7 +7303,7 @@ dependencies = [ [[package]] name = "sc-chain-spec-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -7313,7 +7314,7 @@ dependencies = [ [[package]] name = "sc-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "chrono", "fdlimit", @@ -7351,7 +7352,7 @@ dependencies = [ [[package]] name = "sc-client-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "fnv", @@ -7385,7 +7386,7 @@ dependencies = [ [[package]] name = "sc-client-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "blake2-rfc", "hash-db", @@ -7415,7 +7416,7 @@ dependencies = [ [[package]] name = "sc-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "sc-client-api", "sp-blockchain", @@ -7426,7 +7427,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "fork-tree", @@ -7472,7 +7473,7 @@ dependencies = [ [[package]] name = "sc-consensus-babe-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "futures 0.3.12", @@ -7496,7 +7497,7 @@ dependencies = [ [[package]] name = "sc-consensus-epochs" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "fork-tree", "parity-scale-codec", @@ -7509,7 +7510,7 @@ dependencies = [ [[package]] name = "sc-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7536,7 +7537,7 @@ dependencies = [ [[package]] name = "sc-consensus-uncles" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "sc-client-api", @@ -7550,7 +7551,7 @@ dependencies = [ [[package]] name = "sc-executor" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "lazy_static", @@ -7579,7 +7580,7 @@ dependencies = [ [[package]] name = "sc-executor-common" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "parity-scale-codec", @@ -7595,7 +7596,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmi" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "parity-scale-codec", @@ -7610,7 +7611,7 @@ dependencies = [ [[package]] name = "sc-executor-wasmtime" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "parity-scale-codec", @@ -7628,7 +7629,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "dyn-clone", @@ -7667,7 +7668,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "finality-grandpa", @@ -7691,7 +7692,7 @@ dependencies = [ [[package]] name = "sc-finality-grandpa-warp-sync" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "futures 0.3.12", @@ -7712,7 +7713,7 @@ dependencies = [ [[package]] name = "sc-informant" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "ansi_term 0.12.1", "futures 0.3.12", @@ -7730,7 +7731,7 @@ dependencies = [ [[package]] name = "sc-keystore" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "async-trait", "derive_more", @@ -7750,7 +7751,7 @@ dependencies = [ [[package]] name = "sc-light" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "hash-db", "lazy_static", @@ -7769,7 +7770,7 @@ dependencies = [ [[package]] name = "sc-network" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "async-std", "async-trait", @@ -7822,7 +7823,7 @@ dependencies = [ [[package]] name = "sc-network-gossip" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -7839,7 +7840,7 @@ dependencies = [ [[package]] name = "sc-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "bytes 0.5.6", "fnv", @@ -7867,7 +7868,7 @@ dependencies = [ [[package]] name = "sc-peerset" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "libp2p", @@ -7880,7 +7881,7 @@ dependencies = [ [[package]] name = "sc-proposer-metrics" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "substrate-prometheus-endpoint", @@ -7889,7 +7890,7 @@ dependencies = [ [[package]] name = "sc-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "hash-db", @@ -7923,7 +7924,7 @@ dependencies = [ [[package]] name = "sc-rpc-api" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "futures 0.3.12", @@ -7947,7 +7948,7 @@ dependencies = [ [[package]] name = "sc-rpc-server" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.1.29", "jsonrpc-core", @@ -7965,7 +7966,7 @@ dependencies = [ [[package]] name = "sc-service" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "directories", "exit-future", @@ -8028,7 +8029,7 @@ dependencies = [ [[package]] name = "sc-state-db" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "parity-scale-codec", @@ -8043,7 +8044,7 @@ dependencies = [ [[package]] name = "sc-sync-state-rpc" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "jsonrpc-core", "jsonrpc-core-client", @@ -8063,7 +8064,7 @@ dependencies = [ [[package]] name = "sc-telemetry" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "chrono", "futures 0.3.12", @@ -8083,7 +8084,7 @@ dependencies = [ [[package]] name = "sc-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "ansi_term 0.12.1", "atty", @@ -8110,7 +8111,7 @@ dependencies = [ [[package]] name = "sc-tracing-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -8121,7 +8122,7 @@ dependencies = [ [[package]] name = "sc-transaction-graph" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "futures 0.3.12", @@ -8143,7 +8144,7 @@ dependencies = [ [[package]] name = "sc-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "futures-diagnose", @@ -8549,7 +8550,7 @@ dependencies = [ [[package]] name = "sp-allocator" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "sp-core", @@ -8561,7 +8562,7 @@ dependencies = [ [[package]] name = "sp-api" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "hash-db", "log", @@ -8578,7 +8579,7 @@ dependencies = [ [[package]] name = "sp-api-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "blake2-rfc", "proc-macro-crate 1.0.0", @@ -8590,7 +8591,7 @@ dependencies = [ [[package]] name = "sp-application-crypto" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "serde", @@ -8602,7 +8603,7 @@ dependencies = [ [[package]] name = "sp-arithmetic" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "integer-sqrt", "num-traits", @@ -8615,7 +8616,7 @@ dependencies = [ [[package]] name = "sp-authority-discovery" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-api", @@ -8627,7 +8628,7 @@ dependencies = [ [[package]] name = "sp-authorship" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-inherents", @@ -8638,7 +8639,7 @@ dependencies = [ [[package]] name = "sp-block-builder" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-api", @@ -8650,7 +8651,7 @@ dependencies = [ [[package]] name = "sp-blockchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "log", @@ -8668,7 +8669,7 @@ dependencies = [ [[package]] name = "sp-chain-spec" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "serde", "serde_json", @@ -8677,7 +8678,7 @@ dependencies = [ [[package]] name = "sp-consensus" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "futures-timer 3.0.2", @@ -8703,7 +8704,7 @@ dependencies = [ [[package]] name = "sp-consensus-babe" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "merlin", "parity-scale-codec", @@ -8724,7 +8725,7 @@ dependencies = [ [[package]] name = "sp-consensus-slots" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-arithmetic", @@ -8734,7 +8735,7 @@ dependencies = [ [[package]] name = "sp-consensus-vrf" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "schnorrkel", @@ -8746,7 +8747,7 @@ dependencies = [ [[package]] name = "sp-core" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "base58", "blake2-rfc", @@ -8790,7 +8791,7 @@ dependencies = [ [[package]] name = "sp-database" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "kvdb", "parking_lot 0.11.1", @@ -8799,7 +8800,7 @@ dependencies = [ [[package]] name = "sp-debug-derive" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro2", "quote", @@ -8809,7 +8810,7 @@ dependencies = [ [[package]] name = "sp-externalities" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "environmental", "parity-scale-codec", @@ -8820,7 +8821,7 @@ dependencies = [ [[package]] name = "sp-finality-grandpa" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "finality-grandpa", "log", @@ -8837,7 +8838,7 @@ dependencies = [ [[package]] name = "sp-inherents" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "parking_lot 0.11.1", @@ -8849,7 +8850,7 @@ dependencies = [ [[package]] name = "sp-io" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "hash-db", @@ -8873,7 +8874,7 @@ dependencies = [ [[package]] name = "sp-keyring" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "lazy_static", "sp-core", @@ -8884,7 +8885,7 @@ dependencies = [ [[package]] name = "sp-keystore" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "async-trait", "derive_more", @@ -8901,7 +8902,7 @@ dependencies = [ [[package]] name = "sp-npos-elections" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "serde", @@ -8914,7 +8915,7 @@ dependencies = [ [[package]] name = "sp-npos-elections-compact" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro-crate 1.0.0", "proc-macro2", @@ -8925,7 +8926,7 @@ dependencies = [ [[package]] name = "sp-offchain" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "sp-api", "sp-core", @@ -8935,7 +8936,7 @@ dependencies = [ [[package]] name = "sp-panic-handler" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "backtrace", ] @@ -8943,7 +8944,7 @@ dependencies = [ [[package]] name = "sp-rpc" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "serde", "sp-core", @@ -8952,7 +8953,7 @@ dependencies = [ [[package]] name = "sp-runtime" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "either", "hash256-std-hasher", @@ -8973,7 +8974,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -8990,7 +8991,7 @@ dependencies = [ [[package]] name = "sp-runtime-interface-proc-macro" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "Inflector", "proc-macro-crate 1.0.0", @@ -9002,7 +9003,7 @@ dependencies = [ [[package]] name = "sp-serializer" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "serde", "serde_json", @@ -9011,7 +9012,7 @@ dependencies = [ [[package]] name = "sp-session" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-api", @@ -9024,7 +9025,7 @@ dependencies = [ [[package]] name = "sp-staking" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-runtime", @@ -9034,7 +9035,7 @@ dependencies = [ [[package]] name = "sp-state-machine" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "hash-db", "log", @@ -9056,12 +9057,12 @@ dependencies = [ [[package]] name = "sp-std" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" [[package]] name = "sp-storage" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9074,7 +9075,7 @@ dependencies = [ [[package]] name = "sp-tasks" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "sp-core", @@ -9087,7 +9088,7 @@ dependencies = [ [[package]] name = "sp-timestamp" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "parity-scale-codec", "sp-api", @@ -9100,7 +9101,7 @@ dependencies = [ [[package]] name = "sp-tracing" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "log", "parity-scale-codec", @@ -9113,7 +9114,7 @@ dependencies = [ [[package]] name = "sp-transaction-pool" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "derive_more", "futures 0.3.12", @@ -9129,7 +9130,7 @@ dependencies = [ [[package]] name = "sp-trie" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "hash-db", "memory-db", @@ -9143,7 +9144,7 @@ dependencies = [ [[package]] name = "sp-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "futures-core", @@ -9155,7 +9156,7 @@ dependencies = [ [[package]] name = "sp-version" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "impl-serde", "parity-scale-codec", @@ -9167,7 +9168,7 @@ dependencies = [ [[package]] name = "sp-wasm-interface" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "impl-trait-for-tuples", "parity-scale-codec", @@ -9324,7 +9325,7 @@ dependencies = [ [[package]] name = "substrate-browser-utils" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "chrono", "console_error_panic_hook", @@ -9350,7 +9351,7 @@ dependencies = [ [[package]] name = "substrate-build-script-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "platforms", ] @@ -9358,7 +9359,7 @@ dependencies = [ [[package]] name = "substrate-frame-rpc-system" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-system-rpc-runtime-api", "futures 0.3.12", @@ -9381,7 +9382,7 @@ dependencies = [ [[package]] name = "substrate-prometheus-endpoint" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "async-std", "derive_more", @@ -9395,7 +9396,7 @@ dependencies = [ [[package]] name = "substrate-test-client" version = "2.0.1" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.1.29", "futures 0.3.12", @@ -9423,7 +9424,7 @@ dependencies = [ [[package]] name = "substrate-test-utils" version = "3.0.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "futures 0.3.12", "substrate-test-utils-derive", @@ -9433,7 +9434,7 @@ dependencies = [ [[package]] name = "substrate-test-utils-derive" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "proc-macro-crate 1.0.0", "quote", @@ -10116,7 +10117,7 @@ checksum = "e604eb7b43c06650e854be16a2a03155743d3752dd1c943f6829e26b7a36e382" [[package]] name = "try-runtime-cli" version = "0.9.0" -source = "git+https://github.com/paritytech/substrate#462384b7670a54de85b872497c09354e9c440de0" +source = "git+https://github.com/paritytech/substrate#283bb60954d6809a76e52619e58c78fb8053e3eb" dependencies = [ "frame-try-runtime", "log", diff --git a/polkadot/runtime/kusama/src/lib.rs b/polkadot/runtime/kusama/src/lib.rs index cbeb9297c6..ba8476e9d2 100644 --- a/polkadot/runtime/kusama/src/lib.rs +++ b/polkadot/runtime/kusama/src/lib.rs @@ -96,7 +96,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { apis: RUNTIME_API_VERSIONS, #[cfg(feature = "disable-runtime-api")] apis: version::create_apis_vec![[]], - transaction_version: 4, + transaction_version: 5, }; /// The BABE epoch configuration at genesis. @@ -308,18 +308,14 @@ impl pallet_session::historical::Config for Runtime { parameter_types! { // no signed phase for now, just unsigned. pub const SignedPhase: u32 = 0; - // NOTE: length of unsigned phase is, for now, different than `ElectionLookahead` to make sure - // that we won't run OCW threads at the same time with staking. - pub const UnsignedPhase: u32 = ElectionLookahead::get() / 2; + pub const UnsignedPhase: u32 = EPOCH_DURATION_IN_BLOCKS / 4; - // fallback: no need to do on-chain phragmen while we re on a dry-run. + // fallback: run election on-chain. pub const Fallback: pallet_election_provider_multi_phase::FallbackStrategy = - pallet_election_provider_multi_phase::FallbackStrategy::Nothing; - - pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(1u32, 10_000); + pallet_election_provider_multi_phase::FallbackStrategy::OnChain; + pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); // miner configs - pub MultiPhaseUnsignedPriority: TransactionPriority = StakingUnsignedPriority::get() - 1u64; pub const MinerMaxIterations: u32 = 10; } @@ -328,10 +324,10 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type Currency = Balances; type SignedPhase = SignedPhase; type UnsignedPhase = UnsignedPhase; - type SolutionImprovementThreshold = MinSolutionScoreBump; + type SolutionImprovementThreshold = SolutionImprovementThreshold; type MinerMaxIterations = MinerMaxIterations; type MinerMaxWeight = OffchainSolutionWeightLimit; // For now use the one from staking. - type MinerTxPriority = MultiPhaseUnsignedPriority; + type MinerTxPriority = NposSolutionPriority; type DataProvider = Staking; type OnChainAccuracy = Perbill; type CompactSolution = pallet_staking::CompactAssignments; @@ -365,10 +361,6 @@ parameter_types! { pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub const MaxNominatorRewardedPerValidator: u32 = 128; - // quarter of the last session will be for election. - pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4; - pub const MaxIterations: u32 = 10; - pub MinSolutionScoreBump: Perbill = Perbill::from_rational(5u32, 10_000); } type SlashCancelOrigin = EnsureOneOf< @@ -394,14 +386,6 @@ impl pallet_staking::Config for Runtime { type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type NextNewSession = Session; - type ElectionLookahead = ElectionLookahead; - type Call = Call; - type UnsignedPriority = StakingUnsignedPriority; - type MaxIterations = MaxIterations; - type MinSolutionScoreBump = MinSolutionScoreBump; - // The unsigned solution weight targeted by the OCW. We set it to the maximum possible value of - // a single extrinsic. - type OffchainSolutionWeightLimit = OffchainSolutionWeightLimit; type ElectionProvider = ElectionProviderMultiPhase; type WeightInfo = weights::pallet_staking::WeightInfo; } @@ -633,7 +617,7 @@ parameter_types! { } parameter_types! { - pub StakingUnsignedPriority: TransactionPriority = + pub NposSolutionPriority: TransactionPriority = Perbill::from_percent(90) * TransactionPriority::max_value(); pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value(); } @@ -981,7 +965,7 @@ construct_runtime! { // Consensus support. Authorship: pallet_authorship::{Pallet, Call, Storage} = 5, - Staking: pallet_staking::{Pallet, Call, Storage, Config, Event, ValidateUnsigned} = 6, + Staking: pallet_staking::{Pallet, Call, Storage, Config, Event} = 6, Offences: pallet_offences::{Pallet, Call, Storage, Event} = 7, Historical: session_historical::{Pallet} = 34, Session: pallet_session::{Pallet, Call, Storage, Event, Config} = 8, @@ -1084,11 +1068,24 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPallets, - BabeEpochConfigMigrations, + (BabeEpochConfigMigrations, KillOffchainPhragmenStorageTest), >; /// The payload being signed in the transactions. pub type SignedPayload = generic::SignedPayload; +/// This is only for testing. The main migration is inside staking's `on_runtime_upgrade`. +pub struct KillOffchainPhragmenStorageTest; +impl frame_support::traits::OnRuntimeUpgrade for KillOffchainPhragmenStorageTest { + #[cfg(feature = "try-runtime")] + fn pre_upgrade() -> Result<(), &'static str> { + pallet_staking::migrations::v6::pre_migrate::() + } + + fn on_runtime_upgrade() -> frame_support::weights::Weight { + 0 + } +} + #[cfg(not(feature = "disable-runtime-api"))] sp_api::impl_runtime_apis! { impl sp_api::Core for Runtime { @@ -1336,6 +1333,7 @@ sp_api::impl_runtime_apis! { #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade() -> Result<(Weight, Weight), sp_runtime::RuntimeString> { + log::info!("try-runtime::on_runtime_upgrade kusama."); let weight = Executive::try_runtime_upgrade()?; Ok((weight, BlockWeights::get().max_block)) } diff --git a/polkadot/runtime/kusama/src/weights/pallet_staking.rs b/polkadot/runtime/kusama/src/weights/pallet_staking.rs index 5060d6b449..cfa7997212 100644 --- a/polkadot/runtime/kusama/src/weights/pallet_staking.rs +++ b/polkadot/runtime/kusama/src/weights/pallet_staking.rs @@ -199,21 +199,6 @@ impl pallet_staking::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().writes(13 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight))) } - fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 53_000 - .saturating_add((1_082_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 21_000 - .saturating_add((408_000 as Weight).saturating_mul(n as Weight)) - // Standard Error: 53_000 - .saturating_add((72_582_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 110_000 - .saturating_add((7_046_000 as Weight).saturating_mul(w as Weight)) - .saturating_add(T::DbWeight::get().reads(6 as Weight)) - .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight))) - .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight))) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight { (0 as Weight) // Standard Error: 111_000 diff --git a/polkadot/runtime/polkadot/src/lib.rs b/polkadot/runtime/polkadot/src/lib.rs index 6a68cfee9f..f48d685fb8 100644 --- a/polkadot/runtime/polkadot/src/lib.rs +++ b/polkadot/runtime/polkadot/src/lib.rs @@ -98,7 +98,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { apis: RUNTIME_API_VERSIONS, #[cfg(feature = "disable-runtime-api")] apis: version::create_apis_vec![[]], - transaction_version: 6, + transaction_version: 7, }; /// The BABE epoch configuration at genesis. @@ -318,18 +318,14 @@ impl pallet_session::historical::Config for Runtime { parameter_types! { // no signed phase for now, just unsigned. pub const SignedPhase: u32 = 0; - // NOTE: length of unsigned phase is, for now, different than `ElectionLookahead` to make sure - // that we won't run OCW threads at the same time with staking. - pub const UnsignedPhase: u32 = ElectionLookahead::get() / 2; + pub const UnsignedPhase: u32 = EPOCH_DURATION_IN_BLOCKS / 4; - // fallback: no need to do on-chain phragmen while we re on a dry-run. + // fallback: run election on-chain. pub const Fallback: pallet_election_provider_multi_phase::FallbackStrategy = - pallet_election_provider_multi_phase::FallbackStrategy::Nothing; - - pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(1u32, 10_000); + pallet_election_provider_multi_phase::FallbackStrategy::OnChain; + pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); // miner configs - pub MultiPhaseUnsignedPriority: TransactionPriority = StakingUnsignedPriority::get() - 1u64; pub const MinerMaxIterations: u32 = 10; } @@ -338,10 +334,10 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type Currency = Balances; type SignedPhase = SignedPhase; type UnsignedPhase = UnsignedPhase; - type SolutionImprovementThreshold = MinSolutionScoreBump; + type SolutionImprovementThreshold = SolutionImprovementThreshold; type MinerMaxIterations = MinerMaxIterations; type MinerMaxWeight = OffchainSolutionWeightLimit; // For now use the one from staking. - type MinerTxPriority = MultiPhaseUnsignedPriority; + type MinerTxPriority = NposSolutionPriority; type DataProvider = Staking; type OnChainAccuracy = Perbill; type CompactSolution = pallet_staking::CompactAssignments; @@ -374,10 +370,6 @@ parameter_types! { pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub const MaxNominatorRewardedPerValidator: u32 = 128; - // last 15 minutes of the last session will be for election. - pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 16; - pub const MaxIterations: u32 = 10; - pub MinSolutionScoreBump: Perbill = Perbill::from_rational(5u32, 10_000); } type SlashCancelOrigin = EnsureOneOf< @@ -403,14 +395,6 @@ impl pallet_staking::Config for Runtime { type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type NextNewSession = Session; - type ElectionLookahead = ElectionLookahead; - type Call = Call; - type UnsignedPriority = StakingUnsignedPriority; - type MaxIterations = MaxIterations; - type MinSolutionScoreBump = MinSolutionScoreBump; - // The unsigned solution weight targeted by the OCW. We set it to the maximum possible value of - // a single extrinsic. - type OffchainSolutionWeightLimit = OffchainSolutionWeightLimit; type ElectionProvider = ElectionProviderMultiPhase; type WeightInfo = weights::pallet_staking::WeightInfo; } @@ -679,7 +663,7 @@ parameter_types! { } parameter_types! { - pub StakingUnsignedPriority: TransactionPriority = + pub NposSolutionPriority: TransactionPriority = Perbill::from_percent(90) * TransactionPriority::max_value(); pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value(); } @@ -987,7 +971,7 @@ construct_runtime! { // Consensus support. Authorship: pallet_authorship::{Pallet, Call, Storage} = 6, - Staking: pallet_staking::{Pallet, Call, Storage, Config, Event, ValidateUnsigned} = 7, + Staking: pallet_staking::{Pallet, Call, Storage, Config, Event} = 7, Offences: pallet_offences::{Pallet, Call, Storage, Event} = 8, Historical: session_historical::{Pallet} = 33, Session: pallet_session::{Pallet, Call, Storage, Event, Config} = 9, @@ -1377,6 +1361,7 @@ sp_api::impl_runtime_apis! { #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade() -> Result<(Weight, Weight), sp_runtime::RuntimeString> { + log::info!("try-runtime::on_runtime_upgrade polkadot."); let weight = Executive::try_runtime_upgrade()?; Ok((weight, BlockWeights::get().max_block)) } diff --git a/polkadot/runtime/polkadot/src/weights/pallet_staking.rs b/polkadot/runtime/polkadot/src/weights/pallet_staking.rs index f77813d2f5..fb479b1468 100644 --- a/polkadot/runtime/polkadot/src/weights/pallet_staking.rs +++ b/polkadot/runtime/polkadot/src/weights/pallet_staking.rs @@ -199,21 +199,6 @@ impl pallet_staking::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().writes(13 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight))) } - fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 46_000 - .saturating_add((1_236_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 18_000 - .saturating_add((549_000 as Weight).saturating_mul(n as Weight)) - // Standard Error: 46_000 - .saturating_add((75_697_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 96_000 - .saturating_add((6_459_000 as Weight).saturating_mul(w as Weight)) - .saturating_add(T::DbWeight::get().reads(6 as Weight)) - .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight))) - .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight))) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight { (0 as Weight) // Standard Error: 102_000 diff --git a/polkadot/runtime/rococo/src/lib.rs b/polkadot/runtime/rococo/src/lib.rs index f3575182f9..f7fb6946e9 100644 --- a/polkadot/runtime/rococo/src/lib.rs +++ b/polkadot/runtime/rococo/src/lib.rs @@ -328,7 +328,6 @@ parameter_types! { } parameter_types! { - pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::max_value() / 2; pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value(); } @@ -338,7 +337,7 @@ impl pallet_im_online::Config for Runtime { type ValidatorSet = Historical; type NextSessionRotation = Babe; type ReportUnresponsiveness = Offences; - type UnsignedPriority = StakingUnsignedPriority; + type UnsignedPriority = ImOnlineUnsignedPriority; type WeightInfo = (); } diff --git a/polkadot/runtime/test-runtime/src/lib.rs b/polkadot/runtime/test-runtime/src/lib.rs index 9b947c7489..67b6416b3d 100644 --- a/polkadot/runtime/test-runtime/src/lib.rs +++ b/polkadot/runtime/test-runtime/src/lib.rs @@ -51,9 +51,7 @@ use runtime_common::{ use sp_runtime::{ create_runtime_str, generic, impl_opaque_keys, ApplyExtrinsicResult, Perbill, KeyTypeId, - transaction_validity::{ - TransactionValidity, TransactionSource, TransactionPriority, - }, + transaction_validity::{TransactionValidity, TransactionSource}, curve::PiecewiseLinear, traits::{ BlakeTwo256, Block as BlockT, StaticLookup, OpaqueKeys, ConvertInto, @@ -306,10 +304,6 @@ parameter_types! { pub storage SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub storage MaxNominatorRewardedPerValidator: u32 = 64; - pub storage ElectionLookahead: BlockNumber = 0; - pub storage StakingUnsignedPriority: TransactionPriority = TransactionPriority::max_value() / 2; - pub storage MaxIterations: u32 = 10; - pub MinSolutionScoreBump: Perbill = Perbill::from_rational(5u32, 10_000); } impl frame_election_provider_support::onchain::Config for Runtime { @@ -337,15 +331,8 @@ impl pallet_staking::Config for Runtime { type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type NextNewSession = Session; - type ElectionLookahead = ElectionLookahead; - type Call = Call; - type UnsignedPriority = StakingUnsignedPriority; - type MaxIterations = MaxIterations; - type OffchainSolutionWeightLimit = (); - type MinSolutionScoreBump = MinSolutionScoreBump; type ElectionProvider = frame_election_provider_support::onchain::OnChainSequentialPhragmen; type WeightInfo = (); - } impl pallet_grandpa::Config for Runtime { @@ -515,7 +502,7 @@ construct_runtime! { // Consensus support. Authorship: pallet_authorship::{Pallet, Call, Storage}, - Staking: pallet_staking::{Pallet, Call, Storage, Config, Event, ValidateUnsigned}, + Staking: pallet_staking::{Pallet, Call, Storage, Config, Event}, Offences: pallet_offences::{Pallet, Call, Storage, Event}, Historical: session_historical::{Pallet}, Session: pallet_session::{Pallet, Call, Storage, Event, Config}, diff --git a/polkadot/runtime/westend/src/lib.rs b/polkadot/runtime/westend/src/lib.rs index 6802f45dd2..61ebf8dc0d 100644 --- a/polkadot/runtime/westend/src/lib.rs +++ b/polkadot/runtime/westend/src/lib.rs @@ -106,7 +106,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion { apis: RUNTIME_API_VERSIONS, #[cfg(feature = "disable-runtime-api")] apis: version::create_apis_vec![[]], - transaction_version: 4, + transaction_version: 5, }; /// The BABE epoch configuration at genesis. @@ -312,18 +312,15 @@ impl pallet_session::historical::Config for Runtime { parameter_types! { // no signed phase for now, just unsigned. pub const SignedPhase: u32 = 0; - // NOTE: length of unsigned phase is, for now, different than `ElectionLookahead` to make sure - // that we won't run OCW threads at the same time with staking. - pub const UnsignedPhase: u32 = ElectionLookahead::get() / 2; + pub const UnsignedPhase: u32 = EPOCH_DURATION_IN_BLOCKS / 4; - // fallback: no need to do on-chain phragmen while we re on a dry-run. + // fallback: run election on-chain. pub const Fallback: pallet_election_provider_multi_phase::FallbackStrategy = - pallet_election_provider_multi_phase::FallbackStrategy::Nothing; + pallet_election_provider_multi_phase::FallbackStrategy::OnChain; - pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(1u32, 10_000); + pub SolutionImprovementThreshold: Perbill = Perbill::from_rational(5u32, 10_000); // miner configs - pub const MultiPhaseUnsignedPriority: TransactionPriority = StakingUnsignedPriority::get() - 1u64; pub const MinerMaxIterations: u32 = 10; } @@ -332,10 +329,10 @@ impl pallet_election_provider_multi_phase::Config for Runtime { type Currency = Balances; type SignedPhase = SignedPhase; type UnsignedPhase = UnsignedPhase; - type SolutionImprovementThreshold = MinSolutionScoreBump; + type SolutionImprovementThreshold = SolutionImprovementThreshold; type MinerMaxIterations = MinerMaxIterations; type MinerMaxWeight = OffchainSolutionWeightLimit; // For now use the one from staking. - type MinerTxPriority = MultiPhaseUnsignedPriority; + type MinerTxPriority = NposSolutionPriority; type DataProvider = Staking; type OnChainAccuracy = Perbill; type CompactSolution = pallet_staking::CompactAssignments; @@ -364,10 +361,6 @@ parameter_types! { pub const SlashDeferDuration: pallet_staking::EraIndex = 27; pub const RewardCurve: &'static PiecewiseLinear<'static> = &REWARD_CURVE; pub const MaxNominatorRewardedPerValidator: u32 = 64; - // quarter of the last session will be for election. - pub const ElectionLookahead: BlockNumber = EPOCH_DURATION_IN_BLOCKS / 4; - pub const MaxIterations: u32 = 10; - pub MinSolutionScoreBump: Perbill = Perbill::from_rational(5u32, 10_000); } impl pallet_staking::Config for Runtime { @@ -387,12 +380,6 @@ impl pallet_staking::Config for Runtime { type EraPayout = pallet_staking::ConvertCurve; type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator; type NextNewSession = Session; - type ElectionLookahead = ElectionLookahead; - type Call = Call; - type UnsignedPriority = StakingUnsignedPriority; - type MaxIterations = MaxIterations; - type MinSolutionScoreBump = MinSolutionScoreBump; - type OffchainSolutionWeightLimit = OffchainSolutionWeightLimit; type ElectionProvider = ElectionProviderMultiPhase; type WeightInfo = weights::pallet_staking::WeightInfo; } @@ -427,7 +414,7 @@ parameter_types! { } parameter_types! { - pub const StakingUnsignedPriority: TransactionPriority = TransactionPriority::max_value() / 2; + pub const NposSolutionPriority: TransactionPriority = TransactionPriority::max_value() / 2; pub const ImOnlineUnsignedPriority: TransactionPriority = TransactionPriority::max_value(); } @@ -437,7 +424,7 @@ impl pallet_im_online::Config for Runtime { type ValidatorSet = Historical; type NextSessionRotation = Babe; type ReportUnresponsiveness = Offences; - type UnsignedPriority = StakingUnsignedPriority; + type UnsignedPriority = ImOnlineUnsignedPriority; type WeightInfo = weights::pallet_im_online::WeightInfo; } @@ -837,7 +824,7 @@ construct_runtime! { // Consensus support. Authorship: pallet_authorship::{Pallet, Call, Storage} = 5, - Staking: pallet_staking::{Pallet, Call, Storage, Config, Event, ValidateUnsigned} = 6, + Staking: pallet_staking::{Pallet, Call, Storage, Config, Event} = 6, Offences: pallet_offences::{Pallet, Call, Storage, Event} = 7, Historical: session_historical::{Pallet} = 27, Session: pallet_session::{Pallet, Call, Storage, Event, Config} = 8, @@ -940,7 +927,7 @@ pub type Executive = frame_executive::Executive< frame_system::ChainContext, Runtime, AllPallets, - BabeEpochConfigMigrations, + BabeEpochConfigMigrations >; /// The payload being signed in transactions. pub type SignedPayload = generic::SignedPayload; @@ -1193,6 +1180,7 @@ sp_api::impl_runtime_apis! { #[cfg(feature = "try-runtime")] impl frame_try_runtime::TryRuntime for Runtime { fn on_runtime_upgrade() -> Result<(Weight, Weight), sp_runtime::RuntimeString> { + log::info!("try-runtime::on_runtime_upgrade westend."); let weight = Executive::try_runtime_upgrade()?; Ok((weight, BlockWeights::get().max_block)) } diff --git a/polkadot/runtime/westend/src/weights/pallet_staking.rs b/polkadot/runtime/westend/src/weights/pallet_staking.rs index 6dde37f330..e3e25f4b1c 100644 --- a/polkadot/runtime/westend/src/weights/pallet_staking.rs +++ b/polkadot/runtime/westend/src/weights/pallet_staking.rs @@ -199,21 +199,6 @@ impl pallet_staking::WeightInfo for WeightInfo { .saturating_add(T::DbWeight::get().writes(13 as Weight)) .saturating_add(T::DbWeight::get().writes((3 as Weight).saturating_mul(v as Weight))) } - fn submit_solution_better(v: u32, n: u32, a: u32, w: u32, ) -> Weight { - (0 as Weight) - // Standard Error: 49_000 - .saturating_add((1_193_000 as Weight).saturating_mul(v as Weight)) - // Standard Error: 19_000 - .saturating_add((613_000 as Weight).saturating_mul(n as Weight)) - // Standard Error: 49_000 - .saturating_add((77_076_000 as Weight).saturating_mul(a as Weight)) - // Standard Error: 103_000 - .saturating_add((7_277_000 as Weight).saturating_mul(w as Weight)) - .saturating_add(T::DbWeight::get().reads(6 as Weight)) - .saturating_add(T::DbWeight::get().reads((4 as Weight).saturating_mul(a as Weight))) - .saturating_add(T::DbWeight::get().reads((1 as Weight).saturating_mul(w as Weight))) - .saturating_add(T::DbWeight::get().writes(2 as Weight)) - } fn get_npos_voters(v: u32, n: u32, s: u32, ) -> Weight { (0 as Weight) // Standard Error: 108_000