Use updated bags list: Companion to #10997 (#5065)

* Use updated bags list: Companion to #10997

* Use Score, not Value

* update lockfile for {"substrate"}

* Fix match_types

* Fix

Co-authored-by: parity-processbot <>
This commit is contained in:
Zeke Mostov
2022-03-10 09:02:15 +00:00
committed by GitHub
parent 49f7e5cce4
commit b13bb87870
8 changed files with 180 additions and 180 deletions
+2 -1
View File
@@ -466,9 +466,10 @@ parameter_types! {
impl pallet_bags_list::Config for Runtime {
type Event = Event;
type VoteWeightProvider = Staking;
type ScoreProvider = Staking;
type WeightInfo = weights::pallet_bags_list::WeightInfo<Runtime>;
type BagThresholds = BagThresholds;
type Score = sp_npos_elections::VoteWeight;
}
fn era_payout(
+2 -2
View File
@@ -21,7 +21,7 @@ use super::{
Runtime, WeightToFee, XcmPallet,
};
use frame_support::{
match_type, parameter_types,
match_types, parameter_types,
traits::{Everything, Nothing},
weights::Weight,
};
@@ -111,7 +111,7 @@ parameter_types! {
pub type TrustedTeleporters =
(xcm_builder::Case<KusamaForStatemine>, xcm_builder::Case<KusamaForEncointer>);
match_type! {
match_types! {
pub type OnlyParachains: impl Contains<MultiLocation> = {
MultiLocation { parents: 0, interior: X1(Parachain(_)) }
};