-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
…ove-kusama-gov-v1-storage
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Co-authored-by: Oliver Tale-Yazdi <[email protected]>
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yea going to block so we dont accidentally merge it until gov1 is removed.
Or rather: Just dont use it on Kusama. We can already merge the tooling.
RemovePallet
migration tool
Co-authored-by: Kian Paimani <[email protected]>
Co-authored-by: Kian Paimani <[email protected]>
…ove-kusama-gov-v1-storage
The CI pipeline was cancelled due to failure one of the required jobs. |
@@ -77,8 +84,12 @@ use sp_std::{marker::PhantomData, vec::Vec}; | |||
/// a multi-block scheduler currently under development which will allow for removal of storage | |||
/// items (and performing other heavy migrations) over multiple blocks. | |||
/// (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.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We could also move it to Substrate… 🤷♂️
Not sure if it is worth it right now though.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Probably frame-support
.
Closing this PR, will reopen another in substrate adding |
RemovePallet
which can be used to remove all storage items for a given pallet on the next runtime upgrade.UsesRemovePallet
to delete storage for Kusama pallets that were removed from the runtime in Introduce OpenGov into Polkadot #6701Related: paritytech/polkadot-sdk#485