diff --git a/node/Cargo.toml b/node/Cargo.toml index cbb4732..35349d2 100644 --- a/node/Cargo.toml +++ b/node/Cargo.toml @@ -18,7 +18,7 @@ targets = ['x86_64-unknown-linux-gnu'] [build-dependencies.substrate-build-script-utils] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '3.0.0' [dependencies.node-template-runtime] @@ -31,140 +31,140 @@ structopt = '0.3.8' [dependencies.frame-benchmarking] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-benchmarking-cli] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-transaction-payment-rpc] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sc-basic-authorship] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-cli] features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-client-api] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sc-consensus] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-consensus-aura] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-executor] features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-finality-grandpa] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-keystore] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sc-rpc] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sc-rpc-api] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-service] features = ['wasmtime'] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sc-telemetry] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sc-transaction-pool] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sc-transaction-pool-api] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-api] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-block-builder] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-blockchain] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-consensus] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sp-consensus-aura] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sp-core] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-finality-grandpa] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-runtime] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-timestamp] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.substrate-frame-rpc-system] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [features] diff --git a/node/src/chain_spec.rs b/node/src/chain_spec.rs index baf5e5d..d32a0dc 100644 --- a/node/src/chain_spec.rs +++ b/node/src/chain_spec.rs @@ -134,7 +134,6 @@ fn testnet_genesis( system: SystemConfig { // Add Wasm runtime to storage. code: wasm_binary.to_vec(), - changes_trie_config: Default::default(), }, balances: BalancesConfig { // Configure endowed accounts with initial balance of 1 << 60. diff --git a/node/src/service.rs b/node/src/service.rs index d673a54..82b1c56 100644 --- a/node/src/service.rs +++ b/node/src/service.rs @@ -89,7 +89,7 @@ pub fn new_partial( let client = Arc::new(client); let telemetry = telemetry.map(|(worker, telemetry)| { - task_manager.spawn_handle().spawn("telemetry", worker.run()); + task_manager.spawn_handle().spawn("telemetry", None, worker.run()); telemetry }); @@ -194,7 +194,6 @@ pub fn new_full(mut config: Configuration) -> Result transaction_pool: transaction_pool.clone(), spawn_handle: task_manager.spawn_handle(), import_queue, - on_demand: None, block_announce_validator_builder: None, warp_sync: Some(warp_sync), })?; @@ -234,8 +233,6 @@ pub fn new_full(mut config: Configuration) -> Result task_manager: &mut task_manager, transaction_pool: transaction_pool.clone(), rpc_extensions_builder, - on_demand: None, - remote_blockchain: None, backend, system_rpc_tx, config, @@ -289,7 +286,9 @@ pub fn new_full(mut config: Configuration) -> Result // the AURA authoring task is considered essential, i.e. if 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 @@ -329,6 +328,7 @@ pub fn new_full(mut config: Configuration) -> Result // if it fails we take down the service with it. task_manager.spawn_essential_handle().spawn_blocking( "grandpa-voter", + None, sc_finality_grandpa::run_grandpa_voter(grandpa_config)?, ); } diff --git a/pallets/template/Cargo.toml b/pallets/template/Cargo.toml index cfb7240..8327e6d 100644 --- a/pallets/template/Cargo.toml +++ b/pallets/template/Cargo.toml @@ -22,19 +22,19 @@ version = '2.0.0' default-features = false git = 'https://github.com/paritytech/substrate.git' optional = true -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.scale-info] @@ -45,19 +45,19 @@ version = '1.0' [dev-dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dev-dependencies.sp-io] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dev-dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [features] @@ -70,4 +70,4 @@ std = [ 'frame-system/std', 'frame-benchmarking/std', ] -try-runtime = ['frame-support/try-runtime'] \ No newline at end of file +try-runtime = ['frame-support/try-runtime'] diff --git a/pallets/template/src/lib.rs b/pallets/template/src/lib.rs index 1859916..f5ce8c5 100644 --- a/pallets/template/src/lib.rs +++ b/pallets/template/src/lib.rs @@ -16,7 +16,7 @@ mod benchmarking; #[frame_support::pallet] pub mod pallet { - use frame_support::{dispatch::DispatchResult, pallet_prelude::*}; + use frame_support::pallet_prelude::*; use frame_system::pallet_prelude::*; /// Configure the pallet by specifying the parameters and types on which it depends. diff --git a/runtime/Cargo.toml b/runtime/Cargo.toml index 51e89d0..06c3171 100644 --- a/runtime/Cargo.toml +++ b/runtime/Cargo.toml @@ -19,7 +19,7 @@ version = '4.0.0-dev' [build-dependencies.substrate-wasm-builder] git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '5.0.0-dev' [dependencies.codec] @@ -32,38 +32,38 @@ version = '2.0.0' default-features = false git = 'https://github.com/paritytech/substrate.git' optional = true -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-executive] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-support] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-system] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-system-benchmarking] default-features = false git = 'https://github.com/paritytech/substrate.git' optional = true -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.frame-system-rpc-runtime-api] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.hex-literal] @@ -73,49 +73,49 @@ version = '0.3.1' [dependencies.pallet-aura] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-balances] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-grandpa] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-randomness-collective-flip] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-sudo] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-timestamp] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-transaction-payment] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.pallet-transaction-payment-rpc-runtime-api] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.scale-info] @@ -126,67 +126,67 @@ version = '1.0' [dependencies.sp-api] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-block-builder] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-consensus-aura] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '0.10.0-dev' [dependencies.sp-core] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-inherents] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-offchain] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-runtime] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-session] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-std] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-transaction-pool] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [dependencies.sp-version] default-features = false git = 'https://github.com/paritytech/substrate.git' -tag = 'devhub/latest' +tag = 'monthly-2021-12' version = '4.0.0-dev' [features] diff --git a/runtime/src/lib.rs b/runtime/src/lib.rs index 8ecb219..4eaa0aa 100644 --- a/runtime/src/lib.rs +++ b/runtime/src/lib.rs @@ -323,7 +323,7 @@ pub type Executive = frame_executive::Executive< Block, frame_system::ChainContext, Runtime, - AllPallets, + AllPalletsWithSystem, >; impl_runtime_apis! {