-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Conversation
kianenigma
commented
Oct 14, 2021
•
edited
Loading
edited
- enables the bags-list pallet in a write-only (safe) mode in polkadot
- adds corresponding migration
- removes stale migrations
- add pallet calls to proxy type for all runtimes.
dry-run of migration:
|
…kadot into kiz-enable-bags-list-polk
"some data already seem to exist in the bags-list pallet.." | ||
); | ||
} | ||
<Runtime as pallet_staking::Config>::SortedListProvider::clear(None); |
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.
Why do we clear here? I think this would mean the test is being applied to a chain which already has voter bags up and running. In this case this test is not relevant. Instead I think we should exit early with a clear message.
In the future for this case we will make somethings that calls migrate
(bag thresholds) instead of regenerate
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.
exiting is also an option, but perhaps you want to re-create the migration. Main point is that we don't double write.
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 think we just need to add pallet-bags-list as benchmark feature dep in polkadot. Otherwise looks good.
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.
Can't see anything that could be problematic introduced here.
bot merge |
Waiting for commit status. |
* master: (73 commits) Fix XCM Teleport Benchmark (#4146) Allow Queries and Subscriptions (#4150) Fix weights on hard-coded XCM fragments (#4144) Bump spec versions (#4142) Bump libc from 0.2.104 to 0.2.105 (#4141) Enable bags-list pallet in polkadot (#4080) Move artifacts states into memory in PVF validation host (#3907) Introduce new Runtime API endpoint for fetching the validation data (#3728) export xcm_pallet config (#4116) Apply cargo fmt (#4122) remove logging from the check-dependent-* job (#4120) Remove stale migrations (#4107) Bump structopt from 0.3.23 to 0.3.25 (#4098) remove hardcoded pipeline scripts tag (#4109) Bump libc from 0.2.103 to 0.2.104 (#4099) some spelling fixes (#4088) polkadot: remove call filters on registrar pallets (#4093) Fix typos in docs (#4092) Rename Statemint where appropriate (#4087) bump substrate (#4091) ...
* Enable bags-list pallet in polkadot * add files * Remove trailing semicolon * more fixes * Update runtime/polkadot/src/lib.rs * add features * remove par Co-authored-by: Keith Yeung <[email protected]> Co-authored-by: Shawn Tabrizi <[email protected]>