Skip to content

[AHM] Staking async fixes for XCM and election planning #8422

New issue

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

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

Already on GitHub? Sign in to your account

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

kianenigma
Copy link
Contributor

This PR brings a few small fixes related to the XCM messages of stkaing-async, among other small fixes:

  • Allows xcm::validate to check the message size, and we actually now act upon it in the staking-async-rc/parachain-runtimes. The code is a bit duplicate now, and there is a TOOD about how to better refactor it later.
  • Part of this work is backported separately as check XCM size in VMP routing #8409
  • It brings a default EraElectionPlannerOf which should be the right tool to use to ensure elections always happen in time, with an educated guess based on ElectionProvider::duration rather than a random number.
  • It adds a few unit tests about the above
  • It silences some logs that were needlessly INFO, and makes the printing of some types a bit more CLI friendly.
  • Renames type SessionDuration in staking-async to type RelaySessionDuration for better clarity.

@kianenigma kianenigma added the T2-pallets This PR/Issue is related to a particular pallet. label May 5, 2025
@kianenigma kianenigma requested a review from a team as a code owner May 5, 2025 09:05
@kianenigma
Copy link
Contributor Author

\cmd prdoc --bump minor

@kianenigma
Copy link
Contributor Author

/cmd prdoc --bump minor

@paritytech-workflow-stopper
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
T2-pallets This PR/Issue is related to a particular pallet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants