Skip to content

Commit

Permalink
Scheduler pallet moved after ParachainSystem
Browse files Browse the repository at this point in the history
  • Loading branch information
martinfridrich committed Feb 20, 2023
1 parent 5818ee3 commit e89e459
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 8 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion runtime/basilisk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "basilisk-runtime"
version = "91.0.0"
version = "92.0.0"
authors = ["GalacticCouncil"]
edition = "2021"
homepage = "https://github.com/galacticcouncil/Basilisk-node"
Expand Down
8 changes: 6 additions & 2 deletions runtime/basilisk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("basilisk"),
impl_name: create_runtime_str!("basilisk"),
authoring_version: 1,
spec_version: 91,
spec_version: 92,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -946,7 +946,7 @@ construct_runtime!(
TransactionPayment: pallet_transaction_payment exclude_parts { Config } = 3,
Treasury: pallet_treasury = 4,
Utility: pallet_utility = 5,
Scheduler: pallet_scheduler = 6,
//NOTE: 6 - is used by Scheduler which must be after cumulus_pallet_parachain_system
Democracy: pallet_democracy exclude_parts { Config } = 7,
Elections: pallet_elections_phragmen = 8,
Council: pallet_collective::<Instance1> = 9,
Expand All @@ -969,6 +969,10 @@ construct_runtime!(
ParachainSystem: cumulus_pallet_parachain_system exclude_parts { Config } = 50,
ParachainInfo: parachain_info = 51,

//NOTE: Scheduler must be after ParachainSystem otherwise RelayChainBlockNumberProvider
//will return 0 as current block number when used with Scheduler(democracy).
Scheduler: pallet_scheduler = 6,

PolkadotXcm: pallet_xcm = 52,
CumulusXcm: cumulus_pallet_xcm = 53,
XcmpQueue: cumulus_pallet_xcmp_queue exclude_parts { Call } = 54,
Expand Down
2 changes: 1 addition & 1 deletion runtime/testing-basilisk/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "testing-basilisk-runtime"
version = "91.0.0"
version = "92.0.0"
authors = ["GalacticCouncil"]
edition = "2021"
homepage = "https://github.com/galacticcouncil/Basilisk-node"
Expand Down
8 changes: 6 additions & 2 deletions runtime/testing-basilisk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub const VERSION: RuntimeVersion = RuntimeVersion {
spec_name: create_runtime_str!("testing-basilisk"),
impl_name: create_runtime_str!("testing-basilisk"),
authoring_version: 1,
spec_version: 91,
spec_version: 92,
impl_version: 0,
apis: RUNTIME_API_VERSIONS,
transaction_version: 1,
Expand Down Expand Up @@ -911,7 +911,7 @@ construct_runtime!(
TransactionPayment: pallet_transaction_payment exclude_parts { Config } = 3,
Treasury: pallet_treasury = 4,
Utility: pallet_utility = 5,
Scheduler: pallet_scheduler = 6,
//NOTE: 6 - is used by Scheduler which must be after cumulus_pallet_parachain_system
Democracy: pallet_democracy exclude_parts { Config } = 7,
Elections: pallet_elections_phragmen = 8,
Council: pallet_collective::<Instance1> = 9,
Expand All @@ -934,6 +934,10 @@ construct_runtime!(
ParachainSystem: cumulus_pallet_parachain_system exclude_parts { Config } = 50,
ParachainInfo: parachain_info = 51,

//NOTE: Scheduler must be after ParachainSystem otherwise RelayChainBlockNumberProvider
//will return 0 as current block number when used with Scheduler(democracy).
Scheduler: pallet_scheduler = 6,

PolkadotXcm: pallet_xcm = 52,
CumulusXcm: cumulus_pallet_xcm = 53,
XcmpQueue: cumulus_pallet_xcmp_queue exclude_parts { Call } = 54,
Expand Down

0 comments on commit e89e459

Please sign in to comment.