-
Notifications
You must be signed in to change notification settings - Fork 741
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
[FRAME] Remove Gov V1 from Polkadot and Kusama & unlock/unreserve funds #485
Comments
@kianenigma I would like to work on this if that is ok. A few questions:
|
fyi, I have been working on this, in this branch: https://github.com/Gioyik/polkadot/tree/gio-opengov1-storage-cleanup |
Hey @Gioyik, the task isn't about removing the pallets from the runtime code (already done in paritytech/polkadot#6701) but rather about cleaning up the DB storage used by those pallets. I've updated the issue description with some more details, still up for grabs if you want it but obviously no obligation :). |
Whats the status? Anyone working on this? |
No. Gov V1 must first be properly disabled & undeployed as XLC commented here paritytech/polkadot#6977 (comment) |
Removal of Kusama Gov V1 already in master. |
Given Gov V1 is removed from Kusama (correct is us we're wrong @ggwpez) I'm going to start working on a migration to unlock gov v1 funds and remove the storage in the next couple days. |
Okay i missed that we already un-deployed it on Kusama in paritytech/polkadot#6701. |
The upcoming Kusama runtime 9420 have removed gov1 yet does not refund locked tokens. It means people still have token locked in gov1 will not able to access those token. |
Thanks for bumping this @xlc, prioritising it now |
@liamaharon can we do those in a lazy migration way? |
Valid concern @xlc, thanks for raising. If we find an instance where one of the migrations is too risky to run due to PoV issues I can convert it to be multi-block, finalizing multi-block migrations is high on the priority stack and this seems like a perfect application for it. If for some reason multi-block migrations are delayed and parachains need to migrate, then we should consider adding a lazy option as you suggest. |
Yea I am working on a small version of #198. The migration gets in an optional |
Migration guide published: https://forum.polkadot.network/t/gov-v1-to-opengov-a-technical-migration-guide/4116 |
Heya. I'm sitting on a Kusama account that still has a democracy lock on it. Not completely sure what's going on there, but it looks like many, many other accounts are affected. Somewhere to start looking around could be accounts with votes that were expired (ready to unlock) but not unlocked during the migration (ie, they would not be visible in VotingOf or DepositOf, the storage you checked in your migration, and just needed a simple call to democracy.unlock()), but I also notice some high-conviction votes that wouldn't have been expired at the time of migration with this issue, so it's probably not that simple. To illustrate the scale of this issue, you can go to any gov1 referendum: https://kusama.subscan.io/referenda and look through the voters. Almost all voters who have votes that are not labelled as expired also still have a democracy lock, but this is not a rule. (for illustration, here's the final referendum: https://kusama.subscan.io/referenda/273, and the first voter you see there: https://kusama.subscan.io/account/D3Fh5td8SjuWn3GR7WEQyZx6TncxwFLaix2YTvygMyxDcU9, has a substantial lock still on their account. This can also be verified in the apps UI in case you don't trust block explorers for whatever reason) fwiw, I suspect that the reason why folks haven't been noticing this is because it primarily effects older members of the community and active or previously high conviction voters 🙃 - our wallets and gov UI's generally automatically set vote sizes to the amount currently already locked for voting, so unless you stopped voting and let other locks expire like I have, you wouldn't notice that you have a permanent gov1 lock on your account. I'm frankly not interested in participating in this community anymore tbqh, just want my tokens unlocked, so forgive me for not speaking up about/looking into this earlier, that's it for my free labor, good luck. 🤷 |
Hey @jam10o-new, the runtimes have not been deployed yet, that is responsibility of the fellowship. Deployment can be tracked on their repo here: polkadot-fellows/runtimes#20 |
apologies.
Threw me off, as it seemed to imply these changes had already been deployed - I just realized that Polkadot still has Gov1 pallets but has apparently also been verified, so I guess y'all are talking about tests. |
* Copy-Pasta owner and freezing code from `message-lane` * Halt pallet if bridge hasn't been initialized * Make owner optional in `message-lane` pallet * Add `is_halted` to `InitializationData` * Fix initialization tests * Only allow pallet to be initialized once * Add some logging around halting and ownership changes * Remove `target` in debugging calls
Originally posted by @kianenigma in paritytech/polkadot#6701 (comment)
Tasks
elections-phragmen
: migration unreservingMembers
,RunnerUps
,Candidates
, andVoters
deposit
s and unlockingVoter
stakes
.democracy
: migration unreserving all accs inDepositOf
and unlock allVoter
funds stored under this pallet.tips
: migration unreserving allOpenTip
scollective
: balances migration not necessarymembership
: balances migration not necessaryRemovePallet
migration utility (RemovePallet
migration utility struct substrate#13835)Unreserving / unlocking details
We need to unreserve / unlock all funds in the pallets before we delete the storage.
more info from @kianenigma :
The text was updated successfully, but these errors were encountered: