Update to monthly-2021-12 upstream (#277)

main
Dan Shields 2021-12-06 11:39:50 -07:00 committed by GitHub
parent 3a4044f70c
commit ad7ce8e3da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 68 additions and 69 deletions

View File

@ -18,7 +18,7 @@ targets = ['x86_64-unknown-linux-gnu']
[build-dependencies.substrate-build-script-utils] [build-dependencies.substrate-build-script-utils]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '3.0.0' version = '3.0.0'
[dependencies.node-template-runtime] [dependencies.node-template-runtime]
@ -31,140 +31,140 @@ structopt = '0.3.8'
[dependencies.frame-benchmarking] [dependencies.frame-benchmarking]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-benchmarking-cli] [dependencies.frame-benchmarking-cli]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-transaction-payment-rpc] [dependencies.pallet-transaction-payment-rpc]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-basic-authorship] [dependencies.sc-basic-authorship]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-cli] [dependencies.sc-cli]
features = ['wasmtime'] features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-client-api] [dependencies.sc-client-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-consensus] [dependencies.sc-consensus]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-consensus-aura] [dependencies.sc-consensus-aura]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-executor] [dependencies.sc-executor]
features = ['wasmtime'] features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-finality-grandpa] [dependencies.sc-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-keystore] [dependencies.sc-keystore]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-rpc] [dependencies.sc-rpc]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-rpc-api] [dependencies.sc-rpc-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-service] [dependencies.sc-service]
features = ['wasmtime'] features = ['wasmtime']
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sc-telemetry] [dependencies.sc-telemetry]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-transaction-pool] [dependencies.sc-transaction-pool]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sc-transaction-pool-api] [dependencies.sc-transaction-pool-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-api] [dependencies.sp-api]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-block-builder] [dependencies.sp-block-builder]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-blockchain] [dependencies.sp-blockchain]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-consensus] [dependencies.sp-consensus]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sp-consensus-aura] [dependencies.sp-consensus-aura]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sp-core] [dependencies.sp-core]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-finality-grandpa] [dependencies.sp-finality-grandpa]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-runtime] [dependencies.sp-runtime]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-timestamp] [dependencies.sp-timestamp]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.substrate-frame-rpc-system] [dependencies.substrate-frame-rpc-system]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[features] [features]

View File

@ -134,7 +134,6 @@ fn testnet_genesis(
system: SystemConfig { system: SystemConfig {
// Add Wasm runtime to storage. // Add Wasm runtime to storage.
code: wasm_binary.to_vec(), code: wasm_binary.to_vec(),
changes_trie_config: Default::default(),
}, },
balances: BalancesConfig { balances: BalancesConfig {
// Configure endowed accounts with initial balance of 1 << 60. // Configure endowed accounts with initial balance of 1 << 60.

View File

@ -89,7 +89,7 @@ pub fn new_partial(
let client = Arc::new(client); let client = Arc::new(client);
let telemetry = telemetry.map(|(worker, telemetry)| { let telemetry = telemetry.map(|(worker, telemetry)| {
task_manager.spawn_handle().spawn("telemetry", worker.run()); task_manager.spawn_handle().spawn("telemetry", None, worker.run());
telemetry telemetry
}); });
@ -194,7 +194,6 @@ pub fn new_full(mut config: Configuration) -> Result<TaskManager, ServiceError>
transaction_pool: transaction_pool.clone(), transaction_pool: transaction_pool.clone(),
spawn_handle: task_manager.spawn_handle(), spawn_handle: task_manager.spawn_handle(),
import_queue, import_queue,
on_demand: None,
block_announce_validator_builder: None, block_announce_validator_builder: None,
warp_sync: Some(warp_sync), warp_sync: Some(warp_sync),
})?; })?;
@ -234,8 +233,6 @@ pub fn new_full(mut config: Configuration) -> Result<TaskManager, ServiceError>
task_manager: &mut task_manager, task_manager: &mut task_manager,
transaction_pool: transaction_pool.clone(), transaction_pool: transaction_pool.clone(),
rpc_extensions_builder, rpc_extensions_builder,
on_demand: None,
remote_blockchain: None,
backend, backend,
system_rpc_tx, system_rpc_tx,
config, config,
@ -289,7 +286,9 @@ pub fn new_full(mut config: Configuration) -> Result<TaskManager, ServiceError>
// the AURA authoring task is considered essential, i.e. if it // the AURA authoring task is considered essential, i.e. if it
// fails we take down the service with it. // fails we take down the service with it.
task_manager.spawn_essential_handle().spawn_blocking("aura", aura); task_manager
.spawn_essential_handle()
.spawn_blocking("aura", Some("block-authoring"), aura);
} }
// if the node isn't actively participating in consensus then it doesn't // if the node isn't actively participating in consensus then it doesn't
@ -329,6 +328,7 @@ pub fn new_full(mut config: Configuration) -> Result<TaskManager, ServiceError>
// if it fails we take down the service with it. // if it fails we take down the service with it.
task_manager.spawn_essential_handle().spawn_blocking( task_manager.spawn_essential_handle().spawn_blocking(
"grandpa-voter", "grandpa-voter",
None,
sc_finality_grandpa::run_grandpa_voter(grandpa_config)?, sc_finality_grandpa::run_grandpa_voter(grandpa_config)?,
); );
} }

View File

@ -22,19 +22,19 @@ version = '2.0.0'
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
optional = true optional = true
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-support] [dependencies.frame-support]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system] [dependencies.frame-system]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.scale-info] [dependencies.scale-info]
@ -45,19 +45,19 @@ version = '1.0'
[dev-dependencies.sp-core] [dev-dependencies.sp-core]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dev-dependencies.sp-io] [dev-dependencies.sp-io]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dev-dependencies.sp-runtime] [dev-dependencies.sp-runtime]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[features] [features]
@ -70,4 +70,4 @@ std = [
'frame-system/std', 'frame-system/std',
'frame-benchmarking/std', 'frame-benchmarking/std',
] ]
try-runtime = ['frame-support/try-runtime'] try-runtime = ['frame-support/try-runtime']

View File

@ -16,7 +16,7 @@ mod benchmarking;
#[frame_support::pallet] #[frame_support::pallet]
pub mod pallet { pub mod pallet {
use frame_support::{dispatch::DispatchResult, pallet_prelude::*}; use frame_support::pallet_prelude::*;
use frame_system::pallet_prelude::*; use frame_system::pallet_prelude::*;
/// Configure the pallet by specifying the parameters and types on which it depends. /// Configure the pallet by specifying the parameters and types on which it depends.

View File

@ -19,7 +19,7 @@ version = '4.0.0-dev'
[build-dependencies.substrate-wasm-builder] [build-dependencies.substrate-wasm-builder]
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '5.0.0-dev' version = '5.0.0-dev'
[dependencies.codec] [dependencies.codec]
@ -32,38 +32,38 @@ version = '2.0.0'
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
optional = true optional = true
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-executive] [dependencies.frame-executive]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-support] [dependencies.frame-support]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system] [dependencies.frame-system]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system-benchmarking] [dependencies.frame-system-benchmarking]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
optional = true optional = true
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.frame-system-rpc-runtime-api] [dependencies.frame-system-rpc-runtime-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.hex-literal] [dependencies.hex-literal]
@ -73,49 +73,49 @@ version = '0.3.1'
[dependencies.pallet-aura] [dependencies.pallet-aura]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-balances] [dependencies.pallet-balances]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-grandpa] [dependencies.pallet-grandpa]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-randomness-collective-flip] [dependencies.pallet-randomness-collective-flip]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-sudo] [dependencies.pallet-sudo]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-timestamp] [dependencies.pallet-timestamp]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-transaction-payment] [dependencies.pallet-transaction-payment]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.pallet-transaction-payment-rpc-runtime-api] [dependencies.pallet-transaction-payment-rpc-runtime-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.scale-info] [dependencies.scale-info]
@ -126,67 +126,67 @@ version = '1.0'
[dependencies.sp-api] [dependencies.sp-api]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-block-builder] [dependencies.sp-block-builder]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-consensus-aura] [dependencies.sp-consensus-aura]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '0.10.0-dev' version = '0.10.0-dev'
[dependencies.sp-core] [dependencies.sp-core]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-inherents] [dependencies.sp-inherents]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-offchain] [dependencies.sp-offchain]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-runtime] [dependencies.sp-runtime]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-session] [dependencies.sp-session]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-std] [dependencies.sp-std]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-transaction-pool] [dependencies.sp-transaction-pool]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[dependencies.sp-version] [dependencies.sp-version]
default-features = false default-features = false
git = 'https://github.com/paritytech/substrate.git' git = 'https://github.com/paritytech/substrate.git'
tag = 'devhub/latest' tag = 'monthly-2021-12'
version = '4.0.0-dev' version = '4.0.0-dev'
[features] [features]

View File

@ -323,7 +323,7 @@ pub type Executive = frame_executive::Executive<
Block, Block,
frame_system::ChainContext<Runtime>, frame_system::ChainContext<Runtime>,
Runtime, Runtime,
AllPallets, AllPalletsWithSystem,
>; >;
impl_runtime_apis! { impl_runtime_apis! {