Skip to content

[stable2412] Backport #6971#7174

Merged
EgorPopelyaev merged 1 commit intostable2412from
backport-6971-to-stable2412
Jan 15, 2025
Merged

[stable2412] Backport #6971#7174
EgorPopelyaev merged 1 commit intostable2412from
backport-6971-to-stable2412

Conversation

@paritytech-cmd-bot-polkadot-sdk
Copy link
Copy Markdown
Contributor

Backport #6971 into stable2412 from alexggh.

See the documentation on how to use this bot.

…6971)

Normally, approval-voting wouldn't receive duplicate assignments because
approval-distribution makes sure of it, however in the situation where
we restart we might receive the same assignment again and since
approval-voting already persisted it we will end up inserting it twice
in `ApprovalEntry.tranches.assignments` because that's an array.

Fix this by making sure duplicate assignments are a noop if the
validator already had an assignment imported at the same tranche.

---------

Signed-off-by: Alexandru Gheorghe <[email protected]>
Co-authored-by: ordian <[email protected]>
(cherry picked from commit 0d660a4)
@github-actions github-actions bot added the A3-backport Pull request is already reviewed well in another branch. label Jan 15, 2025
@github-actions
Copy link
Copy Markdown
Contributor

This pull request is amending an existing release. Please proceed with extreme caution,
as to not impact downstream teams that rely on the stability of it. Some things to consider:

  • Backports are only for 'patch' or 'minor' changes. No 'major' or other breaking change.
  • Should be a legit fix for some bug, not adding tons of new features.
  • Must either be already audited or not need an audit.
Emergency Bypass

If you really need to bypass this check: add validate: false to each crate
in the Prdoc where a breaking change is introduced. This will release a new major
version of that crate and all its reverse dependencies and basically break the release.

@EgorPopelyaev EgorPopelyaev merged commit e8c3710 into stable2412 Jan 15, 2025
@EgorPopelyaev EgorPopelyaev deleted the backport-6971-to-stable2412 branch January 15, 2025 16:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A3-backport Pull request is already reviewed well in another branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants