Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

fix regression in approval-voting introduced in #3747 #3831

Merged
merged 6 commits into from
Mar 26, 2024

Conversation

ordian
Copy link
Member

@ordian ordian commented Mar 25, 2024

Fixes #3826.

The docs on the candidates field of BlockEntry were incorrectly stating that they are sorted by core index. The (incorrect) optimization was introduced in #3747 based on this assumption. The actual ordering is based on CandidateIncluded events ordering in the runtime. We revert this optimization here.

  • verify the underlying issue
  • add a regression test

@ordian ordian added R0-silent Changes should not be mentioned in any release notes T0-node This PR/Issue is related to the topic “node”. labels Mar 25, 2024
@ordian ordian marked this pull request as ready for review March 26, 2024 09:51
@ordian ordian requested review from sandreim and alexggh March 26, 2024 09:51
@ordian ordian changed the title try fixing the regression fix regression in approval-voting introduced in #3747 Mar 26, 2024
@bkchr bkchr enabled auto-merge March 26, 2024 22:35
@bkchr bkchr added this pull request to the merge queue Mar 26, 2024
Merged via the queue into master with commit 3fc5b82 Mar 26, 2024
128 of 132 checks passed
@bkchr bkchr deleted the ao-fix-regression-from-3747 branch March 26, 2024 23:23
dharjeezy pushed a commit to dharjeezy/polkadot-sdk that referenced this pull request Apr 9, 2024
…tytech#3831)

Fixes paritytech#3826.

The docs on the `candidates` field of `BlockEntry` were incorrectly
stating that they are sorted by core index. The (incorrect) optimization
was introduced in paritytech#3747 based on this assumption. The actual ordering is
based on `CandidateIncluded` events ordering in the runtime. We revert
this optimization here.

- [x] verify the underlying issue
- [x] add a regression test

---------

Co-authored-by: Bastian Köcher <git@kchr.de>
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
R0-silent Changes should not be mentioned in any release notes T0-node This PR/Issue is related to the topic “node”.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

approval-voting: finality stalls in zombienet test 0006-parachains-max-tranche0
6 participants