-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
|
||
impl OnRuntimeUpgrade for FixCouncilDepositMigration { | ||
fn on_runtime_upgrade() -> frame_support::weights::Weight { | ||
if VERSION.spec_version == 9150 { |
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.
I mean this if isn't "problematic", but do we need it?
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.
I am worried of accidentally running this migration twice, in case we forgot to remove it. Since this is not part of any pallet, it is even more likely to happen.
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.
The same could be said about every migration :P
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.
most other migrations are guarded by at least some storage item (i.e. PalletVersion
, StorageVersion
), but not this one, therefore I guarded it with the spec version.
I came to the exact same results using a different (more manual) method. So, I believe the accounts included in this PR are all that have been affected by this bug. |
Can this not be fixed via an extrinsic voted by governance? Feels like the more appropriate process here. |
You're probably right, but we felt this is more straightforward and fast, especially now that Raul is OOO. And since the runtime upgrade needs to be upvoted by governance anyway, we're hitting two (or three with the nicks fix #4656) birds with one stone. If you feel strongly about it, though, personally I don't mind doing it with an extrinsic. |
bot merge |
* Fix locked deposit of council voters * add account ids as comment
* Fix locked deposit of council voters * add account ids as comment
Closes #4160
See the linked issue and comments for more detail.
Affected accounts:
Release Note Addition
Please make sure this is added to the release note of 9150 runtime for transparency: