-
Notifications
You must be signed in to change notification settings - Fork 780
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
[MBM] Expose migrating keys #6128
Labels
T2-pallets
This PR/Issue is related to a particular pallet.
Comments
Hello @ggwpez, can I work on this issue ? |
Yes sure 😄 , please write here if there are Qs coming up. |
Thanks I would like to clarify the different steps to enable to access to the migration keys :
|
Yes sounds good. |
5 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Multi Block Migrations can cause chain indexers and explorers to not be able to decode specific storage prefixes since their storage layout is changing. There is currently no way for the outside world to know what keys the runtime is migrating.
One way to achieve this would be to add a function to the
SteppedMigration
trait:This will then be aggregated into the
SteppedMigrations
trait with anth_migrating_prefixes
function that returns the prefix iterator for the nth migration.To expose this information to the public, a Runtime API can be provided (if we dont have view functions then). It would query the
Migrations::Cursor
and then lookup the nth iterator and return all keys into a collected vector.This should not need any modifications to the migrations pallet or frame-executive.
Eventually, we can wrap the more pallet-centric aspects of MBMs into a PalletMBM trait and populate this automatically with the pallet prefix.
The text was updated successfully, but these errors were encountered: