Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
parity
Mirrored projects
polkadot
Commits
dfc0167b
Unverified
Commit
dfc0167b
authored
Nov 12, 2021
by
Kian Paimani
Committed by
GitHub
Nov 12, 2021
Browse files
Enable full use of pallet-bags-list in westend and kusama runtimes (#4195)
parent
a2244b66
Pipeline
#165707
failed with stages
in 37 minutes and 56 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
runtime/kusama/src/lib.rs
View file @
dfc0167b
...
...
@@ -554,7 +554,7 @@ impl pallet_staking::Config for Runtime {
type
MaxNominatorRewardedPerValidator
=
MaxNominatorRewardedPerValidator
;
type
OffendingValidatorsThreshold
=
OffendingValidatorsThreshold
;
// Use the nominators map to iter voters, but also keep bags-list up-to-date.
type
SortedListProvider
=
runtime_common
::
elections
::
UseNominatorsAndUpdateBagsList
<
Runtime
>
;
type
SortedListProvider
=
BagsList
;
type
WeightInfo
=
weights
::
pallet_staking
::
WeightInfo
<
Runtime
>
;
}
...
...
runtime/westend/src/lib.rs
View file @
dfc0167b
...
...
@@ -456,7 +456,7 @@ impl pallet_staking::Config for Runtime {
type
ElectionProvider
=
ElectionProviderMultiPhase
;
type
GenesisElectionProvider
=
runtime_common
::
elections
::
GenesisElectionOf
<
Self
>
;
// Use the nominators map to iter voters, but also keep bags-list up-to-date.
type
SortedListProvider
=
runtime_common
::
elections
::
UseNominatorsAndUpdateBagsList
<
Runtime
>
;
type
SortedListProvider
=
BagsList
;
type
WeightInfo
=
weights
::
pallet_staking
::
WeightInfo
<
Runtime
>
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment