Skip to content

Commit

Permalink
revert paritytech/polkadot#6577 & related changes
Browse files Browse the repository at this point in the history
Moves `pallet_mmr` back behind `pallet_session` to address polkadot-fellows#160.
  • Loading branch information
Lederstrumpf committed Jan 30, 2024
1 parent b5ba0e9 commit f19156a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions relay/kusama/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1527,13 +1527,6 @@ construct_runtime! {
Offences: pallet_offences::{Pallet, Storage, Event} = 7,
Historical: session_historical::{Pallet} = 34,

// BEEFY Bridges support.
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
// MMR leaf construction must be before session in order to have leaf contents
// refer to block<N-1> consistently. see substrate issue #11797 for details.
Mmr: pallet_mmr::{Pallet, Storage} = 201,
BeefyMmrLeaf: pallet_beefy_mmr::{Pallet, Storage} = 202,

Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 8,
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 10,
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 11,
Expand Down Expand Up @@ -1637,6 +1630,13 @@ construct_runtime! {

// Asset rate.
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 101,

// BEEFY Bridges support.
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
// MMR leaf construction must be after session in order to have a leaf's next_auth_set
// refer to block<N>. See issue #160 for details.
Mmr: pallet_mmr = 201,
MmrLeaf: pallet_beefy_mmr = 202,
}
}

Expand Down
14 changes: 7 additions & 7 deletions relay/polkadot/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1563,13 +1563,6 @@ construct_runtime! {
Offences: pallet_offences::{Pallet, Storage, Event} = 8,
Historical: session_historical::{Pallet} = 33,

// BEEFY Bridges support.
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
// MMR leaf construction must be before session in order to have leaf contents
// refer to block<N-1> consistently. see substrate issue #11797 for details.
Mmr: pallet_mmr::{Pallet, Storage} = 201,
BeefyMmrLeaf: pallet_beefy_mmr::{Pallet, Storage} = 202,

Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 9,
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 11,
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 12,
Expand Down Expand Up @@ -1645,6 +1638,13 @@ construct_runtime! {

// Asset rate.
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 101,

// BEEFY Bridges support.
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
// MMR leaf construction must be after session in order to have a leaf's next_auth_set
// refer to block<N>. See issue #160 for details.
Mmr: pallet_mmr = 201,
MmrLeaf: pallet_beefy_mmr = 202,
}
}

Expand Down

0 comments on commit f19156a

Please sign in to comment.