Skip to content

Parachains runtime: properly filter backed candidate votes#9564

Merged
EgorPopelyaev merged 6 commits into
masterfrom
sandreim/drop_right_vote
Aug 27, 2025
Merged

Parachains runtime: properly filter backed candidate votes#9564
EgorPopelyaev merged 6 commits into
masterfrom
sandreim/drop_right_vote

Conversation

@sandreim
Copy link
Copy Markdown
Contributor

@sandreim sandreim commented Aug 27, 2025

The filter_backed_statements_from_disabled_validators function does not properly map indices in the validator group to indices in the validity votes vec. This PR fixes that.

TODO:

  • add more tests
  • PRDoc

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Comment thread polkadot/runtime/parachains/src/paras_inherent/mod.rs
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
@sandreim sandreim marked this pull request as ready for review August 27, 2025 14:50
@sandreim sandreim requested a review from tdimitrov August 27, 2025 14:52
Comment thread polkadot/runtime/parachains/src/paras_inherent/mod.rs
@paritytech-workflow-stopper
Copy link
Copy Markdown

All GitHub workflows were cancelled due to failure one of the required jobs.
Failed workflow url: https://github.com/paritytech/polkadot-sdk/actions/runs/17270302766
Failed job name: test-linux-stable

@sandreim
Copy link
Copy Markdown
Contributor Author

/cmd prdoc generate --bump patch

sandreim and others added 4 commits August 27, 2025 19:26
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
@sandreim sandreim added T8-polkadot This PR/Issue is related to/affects the Polkadot network. A4-backport-stable2503 A4-backport-stable2506 Pull request must be backported to the stable2506 release branch A4-backport-unstable2507 Pull request must be backported to the unstable2507 release branch labels Aug 27, 2025
Comment thread polkadot/runtime/parachains/src/paras_inherent/tests.rs
@sandreim sandreim enabled auto-merge August 27, 2025 18:24
@EgorPopelyaev EgorPopelyaev disabled auto-merge August 27, 2025 19:49
@EgorPopelyaev EgorPopelyaev added this pull request to the merge queue Aug 27, 2025
Merged via the queue into master with commit 3dfbdf4 Aug 27, 2025
284 of 292 checks passed
@EgorPopelyaev EgorPopelyaev deleted the sandreim/drop_right_vote branch August 27, 2025 20:28
paritytech-release-backport-bot Bot pushed a commit that referenced this pull request Aug 27, 2025
The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO:
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 3dfbdf4)
@paritytech-release-backport-bot
Copy link
Copy Markdown

Successfully created backport PR for stable2503:

paritytech-release-backport-bot Bot pushed a commit that referenced this pull request Aug 27, 2025
The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO:
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 3dfbdf4)
@paritytech-release-backport-bot
Copy link
Copy Markdown

Successfully created backport PR for stable2506:

paritytech-release-backport-bot Bot pushed a commit that referenced this pull request Aug 27, 2025
The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO:
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 3dfbdf4)
@paritytech-release-backport-bot
Copy link
Copy Markdown

Successfully created backport PR for unstable2507:

sandreim added a commit that referenced this pull request Aug 28, 2025
Backport #9564 into `unstable2507` from sandreim.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
EgorPopelyaev pushed a commit that referenced this pull request Aug 28, 2025
Backport #9564 into `stable2503` from sandreim.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
fellowship-merge-bot Bot pushed a commit to polkadot-fellows/runtimes that referenced this pull request Aug 28, 2025
Release runtimes 1.7.1:
- Bump `polkadot-runtime-parachains` to 21.0.1 (includes
[#9564](paritytech/polkadot-sdk#9564))
- Updated CHANGELOG
- Bumped runtime spec versions to `1_007_001`

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
fellowship-merge-bot Bot pushed a commit to polkadot-fellows/runtimes that referenced this pull request Aug 29, 2025
This is release targeting only the Polkadot RC, so I am not bumping spec
versions for anything else.

Changes:
- Bump `polkadot-runtime-parachains` to 19.2.1 (includes
[#9564](paritytech/polkadot-sdk#9564))
- Updated CHANGELOG
- Bumped Polkadot RC runtime spec versions to `1_006_002`

I've also checked the diff of PRs since Polkdot-SDK `2503-7-rc1` @
[b9ac350](paritytech/polkadot-sdk@b9ac350)
relevant to the minor/patch bumps for dependencies of
`polkadot-runtime-parachains v19.2.1`:
- frame-benchmarking v40.2.0 -> v40.2.1 
- frame-system v40.1.0 -> v40.2.0
- pallet-balances v41.1.0 -> v41.1.1
- staging-xcm-executor v19.1.2 -> v19.1.3 

There is no need to do any further changes (weights, migrations, etc)
for this Polkadot RC release, but please review and double check.

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Adrian Catangiu <adrian@parity.io>
EgorPopelyaev added a commit that referenced this pull request Sep 2, 2025
Backport #9564 into `stable2506` from sandreim.

See the
[documentation](https://github.com/paritytech/polkadot-sdk/blob/master/docs/BACKPORT.md)
on how to use this bot.

<!--
  # To be used by other automation, do not modify:
  original-pr-number: #${pull_number}
-->

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Egor_P <egor@parity.io>
@Polkadot-Forum
Copy link
Copy Markdown

This pull request has been mentioned on Polkadot Forum. There might be relevant details there:

https://forum.polkadot.network/t/2025-08-24-kusama-stall-postmortem/14729/1

ParthDesai pushed a commit to moondance-labs/polkadot-sdk that referenced this pull request Sep 3, 2025
…h#9564)

The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO: 
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ParthDesai added a commit to moondance-labs/polkadot-sdk that referenced this pull request Sep 3, 2025
…h#9564) (#13)

The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO: 
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: Andrei Sandu <54316454+sandreim@users.noreply.github.com>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
ParthDesai pushed a commit to moondance-labs/polkadot-sdk that referenced this pull request Sep 8, 2025
…h#9564)

The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO: 
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
alvicsam pushed a commit that referenced this pull request Oct 17, 2025
The `filter_backed_statements_from_disabled_validators` function does
not properly map indices in the validator group to indices in the
validity votes vec. This PR fixes that.

TODO: 
- [x] add more tests
- [x] PRDoc

---------

Signed-off-by: Andrei Sandu <andrei-mihail@parity.io>
Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A4-backport-stable2506 Pull request must be backported to the stable2506 release branch A4-backport-unstable2507 Pull request must be backported to the unstable2507 release branch T8-polkadot This PR/Issue is related to/affects the Polkadot network.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants