Skip to content

chore(runtime): remove enacted block_time_6s migrations; heima spec 9270, node 0.9.27#4052

Open
Kailai-Wang wants to merge 1 commit into
devfrom
chore/remove-block-time-6s-migrations
Open

chore(runtime): remove enacted block_time_6s migrations; heima spec 9270, node 0.9.27#4052
Kailai-Wang wants to merge 1 commit into
devfrom
chore/remove-block-time-6s-migrations

Conversation

@Kailai-Wang

Copy link
Copy Markdown
Collaborator

What

The 12s→6s block-time migrations shipped at spec_version 9262 have been enacted and finalized on heima mainnet, so this removes the now-spent one-shot migrations (mirroring the earlier paseo cleanup in #4050) and bumps versions.

Changes:

  • Drop migration::block_time_6s::OnePassRescale from the executive Migrations tuple.
  • Drop migration::block_time_6s::VestingRescaleMigration from pallet_migrations::Config::Migrations (leaving just the lazy pallet_identity v1→v2 migration).
  • Delete the migration::block_time_6s module (onepass.rs, vesting.rs, mod.rs).
  • Keep the permanent MigrateToLatestXcmVersion and the still-lazy LazyMigrationV1ToV2.
  • Bump heima runtime spec_version 9262 → 9270, node version 0.9.26 → 0.9.27.

Why it's safe — on-chain verification

Verified the 9262 migrations are fully enacted on heima mainnet before removing:

  • OnePassRescale (single-block): idempotency guard OnePassRescaleDone is set on-chain; parachain-staking Round, score-staking RoundConfig.interval, and the scheduler Agenda were rebased. The one scheduled task is anonymous + non-periodic with an empty Scheduler::Lookup (the only kind this migration rebases correctly) and now sits at a sane future block.
  • VestingRescaleMigration and identity LazyMigrationV1ToV2 (multi-block): both appear in pallet_migrations::Historic; pallet_migrations::Cursor is None (no MBM in progress) → both completed.

The leftover OnePassRescaleDone guard key remains in storage (harmless dead key; paseo's cleanup left its equivalent too — clearing it would need another migration, not worth it).

Note

No data migration in this PR — it only removes already-run migration code and bumps the version. The spec bump (9270) is the next on-chain runtime upgrade.

…pec 9270, node 0.9.27

The 12s->6s block-time migrations (spec 9262) have been enacted and finalized on
heima mainnet and verified on-chain:
- OnePassRescale (single-block): guard `OnePassRescaleDone` set; parachain-staking
  Round, score-staking RoundConfig, and scheduler Agenda rebased correctly.
- VestingRescaleMigration + identity LazyMigrationV1ToV2 (multi-block): both present
  in pallet_migrations Historic; MBM Cursor is None (idle, nothing in progress).

Remove the now-enacted one-shot migrations (matching the earlier paseo cleanup in
#4050):
- drop `block_time_6s::OnePassRescale` from the executive `Migrations` tuple
- drop `block_time_6s::VestingRescaleMigration` from `pallet_migrations` MBMs
- delete the `migration::block_time_6s` module
- keep the permanent `MigrateToLatestXcmVersion` and the lazy `LazyMigrationV1ToV2`

Bump heima runtime spec_version 9262 -> 9270 and node version 0.9.26 -> 0.9.27.
@vercel

vercel Bot commented Jun 25, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
heima-aa-demo-app Ignored Ignored Jun 25, 2026 1:51pm

Request Review

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.

1 participant