@@ -26,7 +26,7 @@ use codec::{Decode, Encode, MaxEncodedLen};
2626use frame_support:: {
2727 construct_runtime, parameter_types,
2828 traits:: {
29- ConstU32 , Currency , EqualPrivilegeOnly , Everything , Imbalance , InstanceFilter ,
29+ ConstU32 , Currency , EnsureOneOf , EqualPrivilegeOnly , Everything , Imbalance , InstanceFilter ,
3030 KeyOwnerProofSystem , LockIdentifier , Nothing , OnUnbalanced , U128CurrencyToVote ,
3131 } ,
3232 weights:: {
@@ -37,7 +37,7 @@ use frame_support::{
3737} ;
3838use frame_system:: {
3939 limits:: { BlockLength , BlockWeights } ,
40- EnsureOneOf , EnsureRoot ,
40+ EnsureRoot ,
4141} ;
4242pub use node_primitives:: { AccountId , Signature } ;
4343use node_primitives:: { AccountIndex , Balance , BlockNumber , Hash , Index , Moment } ;
@@ -535,7 +535,6 @@ impl pallet_staking::Config for Runtime {
535535 type SlashDeferDuration = SlashDeferDuration ;
536536 /// A super-majority of the council can cancel the slash.
537537 type SlashCancelOrigin = EnsureOneOf <
538- AccountId ,
539538 EnsureRoot < AccountId > ,
540539 pallet_collective:: EnsureProportionAtLeast < _3 , _4 , AccountId , CouncilCollective > ,
541540 > ;
@@ -726,7 +725,6 @@ impl pallet_democracy::Config for Runtime {
726725 // To cancel a proposal before it has been passed, the technical committee must be unanimous or
727726 // Root must agree.
728727 type CancelProposalOrigin = EnsureOneOf <
729- AccountId ,
730728 EnsureRoot < AccountId > ,
731729 pallet_collective:: EnsureProportionAtLeast < _1 , _1 , AccountId , TechnicalCollective > ,
732730 > ;
@@ -817,7 +815,6 @@ impl pallet_collective::Config<TechnicalCollective> for Runtime {
817815}
818816
819817type EnsureRootOrHalfCouncil = EnsureOneOf <
820- AccountId ,
821818 EnsureRoot < AccountId > ,
822819 pallet_collective:: EnsureProportionMoreThan < _1 , _2 , AccountId , CouncilCollective > ,
823820> ;
@@ -857,12 +854,10 @@ impl pallet_treasury::Config for Runtime {
857854 type PalletId = TreasuryPalletId ;
858855 type Currency = Balances ;
859856 type ApproveOrigin = EnsureOneOf <
860- AccountId ,
861857 EnsureRoot < AccountId > ,
862858 pallet_collective:: EnsureProportionAtLeast < _3 , _5 , AccountId , CouncilCollective > ,
863859 > ;
864860 type RejectOrigin = EnsureOneOf <
865- AccountId ,
866861 EnsureRoot < AccountId > ,
867862 pallet_collective:: EnsureProportionMoreThan < _1 , _2 , AccountId , CouncilCollective > ,
868863 > ;
@@ -1268,6 +1263,8 @@ construct_runtime!(
12681263 Utility : pallet_utility,
12691264 Babe : pallet_babe,
12701265 Timestamp : pallet_timestamp,
1266+ // Authorship must be before session in order to note author in the correct session and era
1267+ // for im-online and staking.
12711268 Authorship : pallet_authorship,
12721269 Indices : pallet_indices,
12731270 Balances : pallet_balances,
@@ -1345,7 +1342,7 @@ pub type Executive = frame_executive::Executive<
13451342 Block ,
13461343 frame_system:: ChainContext < Runtime > ,
13471344 Runtime ,
1348- AllPallets ,
1345+ AllPalletsWithSystem ,
13491346 pallet_bags_list:: migrations:: CheckCounterPrefix < Runtime > ,
13501347> ;
13511348
0 commit comments