Skip to content

Commit

Permalink
Filter votes from disabled validators in BackedCandidates in proces…
Browse files Browse the repository at this point in the history
…s_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 <noreply@reusable.software>
Co-authored-by: ordian <write@reusable.software>
Co-authored-by: Maciej <maciej.zyszkiewicz@parity.io>
  • Loading branch information
4 people authored Jan 18, 2024
1 parent 79fa8fb commit 6fa1efe
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion xcm-builder/tests/mock/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,9 @@ impl pallet_balances::Config for Runtime {
type MaxFreezes = ConstU32<0>;
}

impl shared::Config for Runtime {}
impl shared::Config for Runtime {
type DisabledValidators = ();
}

impl configuration::Config for Runtime {
type WeightInfo = configuration::TestWeightInfo;
Expand Down
4 changes: 3 additions & 1 deletion xcm-simulator/example/src/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@ impl pallet_uniques::Config for Runtime {
type Helper = ();
}

impl shared::Config for Runtime {}
impl shared::Config for Runtime {
type DisabledValidators = ();
}

impl configuration::Config for Runtime {
type WeightInfo = configuration::TestWeightInfo;
Expand Down
4 changes: 3 additions & 1 deletion xcm-simulator/fuzzer/src/relay_chain.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,9 @@ impl pallet_balances::Config for Runtime {
type MaxFreezes = ConstU32<0>;
}

impl shared::Config for Runtime {}
impl shared::Config for Runtime {
type DisabledValidators = ();
}

impl configuration::Config for Runtime {
type WeightInfo = configuration::TestWeightInfo;
Expand Down

0 comments on commit 6fa1efe

Please # to comment.