mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-13 21:01:05 +00:00
companion for validator self-vote in bags (#5088)
* companion for validator self-vote in bags * fix * cargo update -p sp-io
This commit is contained in:
Generated
+163
-163
File diff suppressed because it is too large
Load Diff
@@ -580,7 +580,7 @@ impl pallet_staking::Config for Runtime {
|
|||||||
type NextNewSession = Session;
|
type NextNewSession = Session;
|
||||||
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
|
type MaxNominatorRewardedPerValidator = MaxNominatorRewardedPerValidator;
|
||||||
type OffendingValidatorsThreshold = OffendingValidatorsThreshold;
|
type OffendingValidatorsThreshold = OffendingValidatorsThreshold;
|
||||||
type SortedListProvider = BagsList;
|
type VoterList = BagsList;
|
||||||
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
||||||
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
||||||
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
|
||||||
@@ -1519,7 +1519,10 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
CrowdloanIndexMigration,
|
(
|
||||||
|
CrowdloanIndexMigration,
|
||||||
|
pallet_staking::migrations::v9::InjectValidatorsIntoVoterList<Runtime>,
|
||||||
|
),
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in the transactions.
|
/// The payload being signed in the transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
|
|||||||
@@ -577,7 +577,7 @@ impl pallet_staking::Config for Runtime {
|
|||||||
type NextNewSession = Session;
|
type NextNewSession = Session;
|
||||||
type ElectionProvider = ElectionProviderMultiPhase;
|
type ElectionProvider = ElectionProviderMultiPhase;
|
||||||
type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf<Self>;
|
type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf<Self>;
|
||||||
type SortedListProvider = BagsList;
|
type VoterList = BagsList;
|
||||||
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
||||||
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
||||||
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
|
||||||
@@ -1473,7 +1473,11 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
(FixCouncilDepositMigration, CrowdloanIndexMigration),
|
(
|
||||||
|
FixCouncilDepositMigration,
|
||||||
|
CrowdloanIndexMigration,
|
||||||
|
pallet_staking::migrations::v9::InjectValidatorsIntoVoterList<Runtime>,
|
||||||
|
),
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in transactions.
|
/// The payload being signed in transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
|
|||||||
@@ -346,9 +346,7 @@ impl pallet_staking::Config for Runtime {
|
|||||||
frame_election_provider_support::onchain::OnChainSequentialPhragmen<Self>;
|
frame_election_provider_support::onchain::OnChainSequentialPhragmen<Self>;
|
||||||
type GenesisElectionProvider =
|
type GenesisElectionProvider =
|
||||||
frame_election_provider_support::onchain::OnChainSequentialPhragmen<Self>;
|
frame_election_provider_support::onchain::OnChainSequentialPhragmen<Self>;
|
||||||
// Use the nominator map to iter voter AND no-ops for all SortedListProvider hooks. The migration
|
type VoterList = pallet_staking::UseNominatorsAndValidatorsMap<Runtime>;
|
||||||
// to bags-list is a no-op, but the storage version will be updated.
|
|
||||||
type SortedListProvider = pallet_staking::UseNominatorsMap<Runtime>;
|
|
||||||
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
||||||
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
||||||
type WeightInfo = ();
|
type WeightInfo = ();
|
||||||
|
|||||||
@@ -466,7 +466,7 @@ impl pallet_staking::Config for Runtime {
|
|||||||
type NextNewSession = Session;
|
type NextNewSession = Session;
|
||||||
type ElectionProvider = ElectionProviderMultiPhase;
|
type ElectionProvider = ElectionProviderMultiPhase;
|
||||||
type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf<Self>;
|
type GenesisElectionProvider = runtime_common::elections::GenesisElectionOf<Self>;
|
||||||
type SortedListProvider = BagsList;
|
type VoterList = BagsList;
|
||||||
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
type MaxUnlockingChunks = frame_support::traits::ConstU32<32>;
|
||||||
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
type BenchmarkingConfig = runtime_common::StakingBenchmarkingConfig;
|
||||||
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
|
type WeightInfo = weights::pallet_staking::WeightInfo<Runtime>;
|
||||||
@@ -1087,7 +1087,10 @@ pub type Executive = frame_executive::Executive<
|
|||||||
frame_system::ChainContext<Runtime>,
|
frame_system::ChainContext<Runtime>,
|
||||||
Runtime,
|
Runtime,
|
||||||
AllPalletsWithSystem,
|
AllPalletsWithSystem,
|
||||||
CrowdloanIndexMigration,
|
(
|
||||||
|
CrowdloanIndexMigration,
|
||||||
|
pallet_staking::migrations::v9::InjectValidatorsIntoVoterList<Runtime>,
|
||||||
|
),
|
||||||
>;
|
>;
|
||||||
/// The payload being signed in transactions.
|
/// The payload being signed in transactions.
|
||||||
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
pub type SignedPayload = generic::SignedPayload<Call, SignedExtra>;
|
||||||
|
|||||||
Reference in New Issue
Block a user