Skip to content

static config: Add support for AH and staking-async chains#1064

Merged
sigurpol merged 2 commits intomainfrom
sigurpol/fix_runtime_names
Jun 2, 2025
Merged

static config: Add support for AH and staking-async chains#1064
sigurpol merged 2 commits intomainfrom
sigurpol/fix_runtime_names

Conversation

@sigurpol
Copy link
Copy Markdown
Contributor

@sigurpol sigurpol commented May 30, 2025

  • Deprecated asset-hub-next as runtime version for staking-async, replaced by staking-async-parachain and staking-async-rc (see here)
  • Added support for statemint, statemine, westmint AH chains, without dropping the polkadot / kusama / westend RC runtime version variants until we deprecate the legacy monitor path and rely only on EPMB
  • Removed support for staking-async support from the legacy path

For the time being, static miner's config for StakingAsync is a copy-paste of Westend one but will evolve independently.

As a separate topic (see #994), a partial / complete removal of the static configuration per chain will be tackled.

Close #1065

- Deprecated `asset-hub-next`, replaced by `staking-async-parachain` and
`staking-async-rc` in
paritytech/polkadot-sdk#8422
- Add support for statemint, statemine, westmint AH chains, without
dropping the polkadot / kusama / westend RC variants until we deprecate
the legacy `monitor` path and rely only on EPMB

For the time being, static miner's config for StakingAsync is a
copy-paste of Westend one but will evolve independently.

As a separate topic (see #994), a partial / complete removal of the
static configuration per chain will be tackled.
@sigurpol sigurpol requested review from Ank4n, kianenigma and seadanda May 30, 2025 13:18
@sigurpol
Copy link
Copy Markdown
Contributor Author

@kianenigma , PTAL when you have time. This ideally needs to get merged at the same time of your epic PR due to these changes

Copy link
Copy Markdown
Contributor

@kianenigma kianenigma left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can remove a few code paths and just make them be panic!() or unimplemented!("legacy miner does not support multi-block") or the other way unimplemented!("multi-block mining is not supported on relay chains") etc.

This change removes staking-async runtime support from the legacy monitor
code path, replacing it with appropriate error messages for unsupported
cases.
@sigurpol
Copy link
Copy Markdown
Contributor Author

sigurpol commented Jun 2, 2025

unimplemented!("multi-block mining is not supported on relay chains")

Remove staking-async support from legacy (with related UT as extra bonus 😄 )

@sigurpol sigurpol merged commit ca7726f into main Jun 2, 2025
10 checks passed
@sigurpol sigurpol deleted the sigurpol/fix_runtime_names branch June 2, 2025 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

staking-miner integration tests failed against latest polkadot build.

2 participants