Conversation
…ove-kusama-gov-v1-storage
Co-authored-by: Oliver Tale-Yazdi <oliver.tale-yazdi@parity.io>
|
how about locked/reserved funds? |
…tech/polkadot into liam-remove-kusama-gov-v1-storage
This tool is specifically for removing storage. Something for migrating/recovering locked/reserved funds I think should be part of a seperate work effort. Sounds like deserving of a new issue to me. |
I thought the PR that kickstarted Gov V2 already did that. If not, it will be much harder to do once we remove the storage. We should also do all the unreserve/unlocks in this PR. |
|
We have not yet disabled gov1 and the migration must happen after it is disabled before it is removed |
RemovePallet migration tool
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
Co-authored-by: Kian Paimani <5588131+kianenigma@users.noreply.github.com>
…ove-kusama-gov-v1-storage
|
The CI pipeline was cancelled due to failure one of the required jobs. |
| /// (https://github.com/paritytech/substrate/issues/13690) | ||
| pub struct RemovePallet<P: Get<&'static str>>(PhantomData<P>); | ||
| impl<P: Get<&'static str>, DbWeight: Get<DbWeight>> frame_support::traits::OnRuntimeUpgrade for RemovePallet<P> { | ||
| pub struct RemovePallet<P: Get<&'static str>, DbWeight: Get<RuntimeDbWeight>>( |
There was a problem hiding this comment.
We could also move it to Substrate… 🤷♂️
Not sure if it is worth it right now though.
There was a problem hiding this comment.
@ggwpez good point, I think we may as well do it now if it would need to happen later anyway.
Is there an existing package in substrate you think this would fit well into?
|
Closing this PR, will reopen another in substrate adding |
RemovePalletwhich can be used to remove all storage items for a given pallet on the next runtime upgrade.UsesRemovePalletto delete storage for Kusama pallets that were removed from the runtime in Introduce OpenGov into Polkadot #6701Related: paritytech/polkadot-sdk#485