-
Notifications
You must be signed in to change notification settings - Fork 71
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
Runtime migrations tracking issue #164
Comments
Thanks for sharing! Will keep an eye on this here as well. I've also gone ahead with updating the branch with more recent substrate versions (on our fork). I'll link you there so we can make sure we're not stepping on each others feet, though I presume updating the |
@apopiak would you be able to document how you're running the upgrades/tests? Are you using Alice/bob accounts. Would be appreciated to keep the info here as up-to-date :)! |
Build: cargo build --release Purge: ./target/release/edgeware purge-chain -y --chain=./chains/hybrid-mainnet-dev.json Run: #!/usr/bin/env bash
timestamp=$(date +%s)
mkdir -p ./logs
./target/release/edgeware --chain=./chains/hybrid-mainnet-dev.json --alice -lruntime=debug |& tee logs/${timestamp}.log Then I connect with polkadot-js apps to the local node and:
|
* add migration.md to track the process * remove migration md (moved to issue #164) * WIP add signaling hasher migration and (failing) test * fix migration test * add voting hasher change test and fix migration * add WIP state grafting script * actually execute migration for voting pallet * use live chain for grafting and reformt code * use apopiak-migrations substrate branch * update grafting script to skip staking * remove berlin.json loading line * add mainnet-dev hybrid chainspec for migration testing * update Cargo.lock * add custom migration that orders balances and account migration correctly * update cargo.lock
Do we need to migrate authorities? |
Nope, removed the code. |
Found a missing migration: indices migration. |
removed the pallet listing, leaving it here just in case: Pallets
|
Migration was run. |
This issue tracks the runtime migrations necessary for the edgeware chain upgrade.
Based on PRs with migrations hackMD as well as Substrate PRs labeled
D1-runtime-migration
.Migration Strategy
General strategy:
Some pallets need to go through this flow in a custom way (e.g. staking combines a pre- and post-hasher migration (lazy and simple payouts)).
Relevant Migration PRs
Last commit in
v1.0.1redo
was on2020-02-13
.These might include more than one logical migration each.
2020-02-01
: balances refactor: Refactor the balances module paritytech/substrate#46492020-02-14
: composite accounts: Composite accounts paritytech/substrate#4820 (includes indices migration removed in Remove Old Migration Code paritytech/substrate#5870)2020-02-24
: lazy reaping Lazy reaping paritytech/substrate#48952020-03-03
: lazy payouts Lazy payouts paritytech/substrate#44742020-03-05
: introduceon_runtime_upgrade
Introduceon_runtime_upgrade
paritytech/substrate#5058 (includes balances migration, removed in Remove balances migration. paritytech/substrate#5224 )2020-03-14
: unique storage names: Assign unique storage names to pallets. paritytech/substrate#5010⬆️ pre-hasher migrations
2020-03-16
: iterable storage maps (away from opaque hashes): Refactor away from opaque hashes paritytech/substrate#5226⬇️ post-hasher migrations
2020-03-21
: democracy redesign: Redesign Democracy pallet paritytech/substrate#52942020-03-23
: prime member selection: Sensible way of selecting Prime member paritytech/substrate#53462020-03-26
: scheduler introduction (and democracy refactoring), no migration in substrate, but requires one for edgeware: Introduce scheduler and use it for the democracy dispatch queue paritytech/substrate#54122020-04-04
: simple staking payouts: Simple Staking Payouts paritytech/substrate#54062020-04-17
: fee multiplier: Migration forpallet-transaction-payment
transitioning to u64 weights paritytech/substrate#56732020-05-15
: democracy weights (flip deposit order of fields): Democracy weight paritytech/substrate#58282020-06-08
: stacked filtering (multisigs) Introduce stacked filtering paritytech/substrate#62732020-06-09
: frozen indices: Introduce frozen indices. paritytech/substrate#63072020-06-17
: next fee multiplier: Fix the broken weight multiplier update function paritytech/substrate#6334Removed Migrations
2020-03-12
: Remove balances migration. paritytech/substrate#5224 (balances)2020-03-19
: Remove migration code. paritytech/substrate#5291 (mostly account/hasher migration, epochs, opaque hashers, grandpa authorities)2020-05-03
: Remove Old Migration Code paritytech/substrate#5870 (Democracy, Indices, Offences, Staking, Transaction Payment)2020-06-24
: Remove lingering runtime upgrades paritytech/substrate#6476 (Democracy, Indices, Multisigs, Staking, Transaction Payment)Maybe Relevant Migrations
2020-03-26
: time module usage in staking Make Staking pallet using a proper Time module. paritytech/substrate#46622020-04-24
: staking migration code Make sure staking migration code runs only forversion = 2_0_0
paritytech/substrate#57682020-06-05
: staking remove era migration: Remove pre-simple-payout code from staking paritytech/substrate#6253Removed Migrations
The text was updated successfully, but these errors were encountered: