Skip to content

fix: Add migration to clean bloated ismp storages#1371

Open
F3Joule wants to merge 35 commits intomasterfrom
fix/hyperbridge-cleanup
Open

fix: Add migration to clean bloated ismp storages#1371
F3Joule wants to merge 35 commits intomasterfrom
fix/hyperbridge-cleanup

Conversation

@F3Joule
Copy link
Copy Markdown
Contributor

@F3Joule F3Joule commented Feb 20, 2026

Description

Introduce a multi-block migration aimed at cleaning up old entries in specific ISMP storages.

Related Issue

Fixes #1346

Tests to do

  • "Measure" the migration on a mainnet state

@F3Joule F3Joule self-assigned this Feb 20, 2026
@github-actions
Copy link
Copy Markdown

github-actions bot commented Feb 20, 2026

Crate versions that have been updated:

  • pallet-dispatcher: v1.7.0 -> v1.7.1
  • hydradx-runtime: v405.0.0 -> v406.0.0

Runtime version has been increased.

@cl0w5
Copy link
Copy Markdown
Contributor

cl0w5 commented Feb 24, 2026

@F3Joule did you test this on some mainnet fork such as lark? How many blocks does it need to complete?

@F3Joule F3Joule marked this pull request as ready for review February 25, 2026 13:02
@cl0w5
Copy link
Copy Markdown
Contributor

cl0w5 commented Feb 27, 2026

consider using the more efficient
sp_io::storage::clear_prefix(&prefix, Some(1000))

@cl0w5
Copy link
Copy Markdown
Contributor

cl0w5 commented Mar 20, 2026

what's the rationale behind placing this in the dispatcher pallet?

@cl0w5
Copy link
Copy Markdown
Contributor

cl0w5 commented Mar 27, 2026

@F3Joule please include the outcome of the testing on lark in the PR description, after making sure that max(proof_size, ref_time) is no larger than 70% of the block limits

@github-actions
Copy link
Copy Markdown

Quick benchmark at commit b5bfa9c has been executed successfully.
View results

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.

Bug: Clean storage of HyperBridge

2 participants