Skip to content

Conversation

paritytech-release-backport-bot[bot]

Backport #10051 into stable2509 from kianenigma.

See the documentation on how to use this bot.

TLDR: Thanks to a number of reports from Kusama validator, we have been
investigating an issue where the self stake of some validators is not
present in `ErasStakersPaged` and `ErasStakersOverview`, and
consequently not earning staking rewards.

After investigation, it was clear that the `polkadot-staking-miner` is
doing the right thing, and the self-stake is indeed submitted to the
chain as a part of the staking election result.

The root cause in how `pallet-staking-async` ingests the staking
election result. This code **made a (wrong) assumption that self-stake
is only present in the first page of a multi-page election. This PR
fixes this issue.**

---

- [x] (nice to have) revisit try-state checks of the pallet,
`ErasStakersPaged`, `ErasStakersOverview` and `ErasTotalStake` are
triple checked for correctness
- [ ] (nice to have) fix related displays in PJS:
polkadot-js/apps#11930
- [ ] backport to 2507 and 2509
- Westend
- [ ] Find a similar issue in westend for monitoring
(paritytech/devops#4402)
  - [ ] Upgrade westend to a branch/release containing this fix
- [ ] Upgrade westend with this fix, observe test examples are resolved
- [ ] Bump backported version in `fellowship/runtimes`
- [ ] Release 1.9.3 for Kusama with this fix
- [ ] Ensure known test cases are fixed
- One example: `F2WyUUFXLYnBg6acv7t2KFzH6D7CyNcvC4mRCwUdsHTUB4t` (in
election round 46, likely repeating in subsequent ones too)
- This PR will be part of Polkadot release 2.0.0, the Polkadot AHM.
- [ ] Forum post with further explanation once PR is merged.

---------

Co-authored-by: cmd[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 56e4b10)
@paritytech-release-backport-bot paritytech-release-backport-bot bot requested a review from a team as a code owner October 20, 2025 19:48
@github-actions github-actions bot added the A3-backport Pull request is already reviewed well in another branch. label Oct 20, 2025
@github-actions github-actions bot requested a review from kianenigma October 20, 2025 19:48
Copy link
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.

@kianenigma kianenigma enabled auto-merge (squash) October 20, 2025 20:07
@kianenigma kianenigma merged commit b4a7f1c into stable2509 Oct 20, 2025
270 of 275 checks passed
@kianenigma kianenigma deleted the backport-10051-to-stable2509 branch October 20, 2025 21: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.

3 participants