-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Rename BagsList to VoterList and Add Score #5463
Conversation
Naming it as "NominatorList" would be consistent with the terminology already introduced and avoids ambiguity IMO. Would also sound more intuitive to the end user of our Staking system. intention to nominate: an account that has stated the intention to nominate; also called simply a "nominator". |
Happy to name them |
Happy to name them
I take it back: What you are suggesting to be called |
Makes sense. I could be mistaken, but I vaguely remember reading on plans to separate the votes from Validator self-stake from the bags-list on a PR? If that is the case, NominatorList would still be a valid name I think. Could also argue that with self-stake, the validators are nominating themselves and in that context they are still nominators :) |
@paritytech/locks-review need some approves here. |
// For other pre-upgrade checks, we need the storage to already be migrated. | ||
frame_support::storage::migration::move_pallet(b"BagsList", b"VoterList"); |
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 don't get why we need this in the pre upgrade check?
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.
this is just a hack because we have two migrations around the same pallet. All pre-migrations are ran first, then all migrations, then all post migrations.
We need to mimic the old migrations happening to make it work.
Perhaps we can change the logic here to run the pre-post hooks per migration, not all at once.
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.
Yeah I was thinking the same thing, but not sure how easily implementable that is given the "tuple" trait stuff.
Waiting for commit status. |
Merge cancelled due to error. Error: Statuses failed for da4d1f0 |
Simple rename of
BagsList
toVoterList
, and addingScore
to the bags list pallet.Part of: https://github.com/paritytech/substrate/pull/11013/files
Companion to: paritytech/substrate#11357
Tested with try-runtime on Polkadot: