Skip to content
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

Clear council, democracy locks for users after removing governance v1 #1391

Closed
AurevoirXavier opened this issue Jan 19, 2024 · 3 comments · Fixed by #1460
Closed

Clear council, democracy locks for users after removing governance v1 #1391

AurevoirXavier opened this issue Jan 19, 2024 · 3 comments · Fixed by #1460
Assignees

Comments

@AurevoirXavier
Copy link
Member

AurevoirXavier commented Jan 19, 2024

We can call this before the upgrade.

https://github.com/paritytech/polkadot-sdk/blob/9db92115d023689581e8cf49edb9500b0dcced53/substrate/frame/democracy/src/lib.rs#L959

@AurevoirXavier
Copy link
Member Author

AurevoirXavier commented Jan 25, 2024

Crab Remaining Locks

[
  {
    "publicKey": "0xd891ce6a97b4f01a8b9b36d0298aa3631fe2eef5",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xabcf7060a68f62624f7569ada9d78b5a5db0782a",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x88a39b052d477cfde47600a7c9950a441ce61cb4",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x9f33a4809aa708d7a399fedba514e0a0d15efa85",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x0a1287977578f888bdc1c7627781af1cc000e6ab",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xe59261f6d4088bcd69985a3d369ff14cc54ef1e5",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x7ae2a0914db8bfbdad538b0eac3fa473a0e07843",
    "lockId": "democrac"
  },
  {
    "publicKey": "0xacfa39b864e42d1bd3792783a571d2958af0bf1f",
    "lockId": "democrac"
  },
  {
    "publicKey": "0x3e25247cff03f99a7d83b28f207112234fee73a6",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xb2960e11b253c107f973cd778bbe1520e35e8602",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x4ed7ae57608cf4f60753cde4f49cf821c293ed2a",
    "lockId": "democrac"
  },
  {
    "publicKey": "0x5b7544b3f6abd9e03fba494796b1ee6f9543e2e4",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x44cda595218ddb3810fb66c2e982f50ea00255ee",
    "lockId": "phrelect"
  }
]

@AurevoirXavier AurevoirXavier self-assigned this Jan 25, 2024
@AurevoirXavier
Copy link
Member Author

AurevoirXavier commented Jan 25, 2024

Darwinia Remaining Locks

[
  {
    "publicKey": "0x71571c42067900bfb7ca8b51fccc07ef77074aea",
    "lockId": "democrac"
  },
  {
    "publicKey": "0xabcf7060a68f62624f7569ada9d78b5a5db0782a",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x88a39b052d477cfde47600a7c9950a441ce61cb4",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x9f33a4809aa708d7a399fedba514e0a0d15efa85",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x0a1287977578f888bdc1c7627781af1cc000e6ab",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xb96b4429d522a210ecc3d1b2d3b0f4026588c340",
    "lockId": "democrac"
  },
  {
    "publicKey": "0xe59261f6d4088bcd69985a3d369ff14cc54ef1e5",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0x7ae2a0914db8bfbdad538b0eac3fa473a0e07843",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xfa5727be643dba6599fc7f812fe60da3264a8205",
    "lockId": "democrac"
  },
  {
    "publicKey": "0x3e25247cff03f99a7d83b28f207112234fee73a6",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xb2960e11b253c107f973cd778bbe1520e35e8602",
    "lockId": "phrelect"
  },
  {
    "publicKey": "0xc1c8f6ef43b39c279417e361969d535f2a20b92e",
    "lockId": "democrac"
  },
  {
    "publicKey": "0x5dd68958e07cec3f65489db8983ad737c37e0646",
    "lockId": "democrac"
  },
  {
    "publicKey": "0xf11d8d9412fc6b90242e17af259cf7bd1eaa416b",
    "lockId": "democrac"
  },
  {
    "publicKey": "0xdca962b899641d60ccf7268a2260f20b6c01c06d",
    "lockId": "democrac"
  }
]

@hackfisher hackfisher added the P-Mid [Priority] Median label Mar 20, 2024
@AurevoirXavier
Copy link
Member Author

image

Remove any lock storage entries entirely if they contain only a democracy lock. Ensure no empty vectors are left in storage.

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 a pull request may close this issue.

2 participants