Skip to content

Commit 6fa1efe

Browse files
tdimitrovordianordianOverkillus
authored
Filter votes from disabled validators in BackedCandidates in process_inherent_data (#2889)
Backport of paritytech/polkadot-sdk#1863 to master Extend candidate sanitation in paras_inherent by removing backing votes from disabled validators. Check paritytech/polkadot-sdk#1592 for more details. This change is related to the disabling strategy implementation (paritytech/polkadot-sdk#2226). --------- Co-authored-by: ordian <[email protected]> Co-authored-by: ordian <[email protected]> Co-authored-by: Maciej <[email protected]>
1 parent 79fa8fb commit 6fa1efe

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

xcm-builder/tests/mock/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ impl pallet_balances::Config for Runtime {
128128
type MaxFreezes = ConstU32<0>;
129129
}
130130

131-
impl shared::Config for Runtime {}
131+
impl shared::Config for Runtime {
132+
type DisabledValidators = ();
133+
}
132134

133135
impl configuration::Config for Runtime {
134136
type WeightInfo = configuration::TestWeightInfo;

xcm-simulator/example/src/relay_chain.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,9 @@ impl pallet_uniques::Config for Runtime {
120120
type Helper = ();
121121
}
122122

123-
impl shared::Config for Runtime {}
123+
impl shared::Config for Runtime {
124+
type DisabledValidators = ();
125+
}
124126

125127
impl configuration::Config for Runtime {
126128
type WeightInfo = configuration::TestWeightInfo;

xcm-simulator/fuzzer/src/relay_chain.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,9 @@ impl pallet_balances::Config for Runtime {
100100
type MaxFreezes = ConstU32<0>;
101101
}
102102

103-
impl shared::Config for Runtime {}
103+
impl shared::Config for Runtime {
104+
type DisabledValidators = ();
105+
}
104106

105107
impl configuration::Config for Runtime {
106108
type WeightInfo = configuration::TestWeightInfo;

0 commit comments

Comments
 (0)