[Substrate Companion] Part 1: add TargetList for validator ranking (#5930)

* [Substrate Companion] Part 1: add TargetList for validator ranking

* fix fmt

* don't change the pallet name

* eloquent migration

* fmt

* fix build

* update deps

* Cargo.lock conflicts resolved

* update deps

* Revert "update deps"

This reverts commit e0b07565854f9c66e5f30cdfe2c0a8f08457c96e.

* fix deps

Co-authored-by: kianenigma <kian@parity.io>
This commit is contained in:
Roman Useinov
2022-09-18 17:00:13 +02:00
committed by GitHub
parent da23abe28a
commit 059ad8a388
5 changed files with 244 additions and 184 deletions
+1
View File
@@ -355,6 +355,7 @@ impl pallet_staking::Config for Runtime {
// Use the nominator map to iter voter AND no-ops for all SortedListProvider hooks. The migration
// to bags-list is a no-op, but the storage version will be updated.
type VoterList = pallet_staking::UseNominatorsAndValidatorsMap<Runtime>;
type TargetList = pallet_staking::UseValidatorsMap<Runtime>;
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
type OnStakerSlash = ();