-
Notifications
You must be signed in to change notification settings - Fork 25
Description
Description
Before reading refer again to the L1 migration plan.
When we perform the migration, the current DB on movement
branch (and all its data) need to be switched out to the latest upstream DB main
. Aptos guarantees backward compatibility and this has been tested to some degree with a high success rate by @areshand.
We need to write the tooling / logic that will perform this switch, essentially upgrading the entire stateDB. This is the Phase 2 section of the L1 Migration Plan.
We then need to test it in three different environments
- Locally (with some basic transaction data against a fresh local movement-full node
main
branch) - On a Testnet Mirror
- On a Mainnet Mirror
- On Real testnet
cc @radupopa369 & @nicholasflintwillow to support here on creating Mirror Environments.
Other steps should occur around before and after this DB upgrade, such as the framework upgrade. These steps are being done separately, if we have 🟢 for each of these steps we should be able to chain them into a final upgrade binary which will perform all the steps with one command. In the L1 migration plan, referred to as the meta-migrate binary. Another part of this is writing the necessary infrastructure code, to stop the old network, start the aptos-core full-node, run the meta-migrate binary / script. These infra and framework steps are not part of this issue.
- Define the separate sub-tasks involved in creating this tool.
- Implement the tool
- Test the tool
Success Criteria
- Successful DB upgrade on the Mainnet Mirror
- Successful Replay of transactions post DB upgrade from blockheight 1 of movement network