Skip to content

Commit 1cdde0a

Browse files
Lederstrumpfbkchr
authored andcommitted
revert paritytech/polkadot#6577 & related changes (#169)
Moves BEEFY pallets - in particular `pallet_mmr` - back behind `pallet_session` to address #160. See paritytech/polkadot-sdk#3108 for the equivalent Rococo change. --------- Co-authored-by: Bastian Köcher <[email protected]>
1 parent bfeb098 commit 1cdde0a

File tree

3 files changed

+15
-14
lines changed

3 files changed

+15
-14
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
1414
### Changed
1515

1616
- XCM transactional processing ([polkadot-fellows/runtimes#165](https://github.com/polkadot-fellows/runtimes/pull/165))
17+
- MMR leaves generated by `pallet_mmr` point to the next-authority-set of the current block instead of the prior block [polkadot-fellows/runtimes#169](https://github.com/polkadot-fellows/runtimes/pull/169)
1718

1819
## [1.1.1] 25.01.2024
1920

relay/kusama/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1525,13 +1525,6 @@ construct_runtime! {
15251525
Offences: pallet_offences::{Pallet, Storage, Event} = 7,
15261526
Historical: session_historical::{Pallet} = 34,
15271527

1528-
// BEEFY Bridges support.
1529-
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
1530-
// MMR leaf construction must be before session in order to have leaf contents
1531-
// refer to block<N-1> consistently. see substrate issue #11797 for details.
1532-
Mmr: pallet_mmr::{Pallet, Storage} = 201,
1533-
BeefyMmrLeaf: pallet_beefy_mmr::{Pallet, Storage} = 202,
1534-
15351528
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 8,
15361529
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 10,
15371530
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 11,
@@ -1636,6 +1629,13 @@ construct_runtime! {
16361629

16371630
// Asset rate.
16381631
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 101,
1632+
1633+
// BEEFY Bridges support.
1634+
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
1635+
// MMR leaf construction must be after session in order to have a leaf's next_auth_set
1636+
// refer to block<N>. See issue #160 for details.
1637+
Mmr: pallet_mmr = 201,
1638+
BeefyMmrLeaf: pallet_beefy_mmr = 202,
16391639
}
16401640
}
16411641

relay/polkadot/src/lib.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1563,13 +1563,6 @@ construct_runtime! {
15631563
Offences: pallet_offences::{Pallet, Storage, Event} = 8,
15641564
Historical: session_historical::{Pallet} = 33,
15651565

1566-
// BEEFY Bridges support.
1567-
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
1568-
// MMR leaf construction must be before session in order to have leaf contents
1569-
// refer to block<N-1> consistently. see substrate issue #11797 for details.
1570-
Mmr: pallet_mmr::{Pallet, Storage} = 201,
1571-
BeefyMmrLeaf: pallet_beefy_mmr::{Pallet, Storage} = 202,
1572-
15731566
Session: pallet_session::{Pallet, Call, Storage, Event, Config<T>} = 9,
15741567
Grandpa: pallet_grandpa::{Pallet, Call, Storage, Config<T>, Event, ValidateUnsigned} = 11,
15751568
ImOnline: pallet_im_online::{Pallet, Call, Storage, Event<T>, ValidateUnsigned, Config<T>} = 12,
@@ -1645,6 +1638,13 @@ construct_runtime! {
16451638

16461639
// Asset rate.
16471640
AssetRate: pallet_asset_rate::{Pallet, Call, Storage, Event<T>} = 101,
1641+
1642+
// BEEFY Bridges support.
1643+
Beefy: pallet_beefy::{Pallet, Call, Storage, Config<T>, ValidateUnsigned} = 200,
1644+
// MMR leaf construction must be after session in order to have a leaf's next_auth_set
1645+
// refer to block<N>. See issue #160 for details.
1646+
Mmr: pallet_mmr = 201,
1647+
BeefyMmrLeaf: pallet_beefy_mmr = 202,
16481648
}
16491649
}
16501650

0 commit comments

Comments
 (0)