Execute create_restore_artifacts.sh to transform the ZEND and EON dumps in a format used in the migration process.
- Python installed
- Zend and EON network dumps - refer to this howto for help
- install horizen_dump_scripts module:
cd python
python -m pip install --require-hashes -r requirements.txt
python -m pip install -e .(For more recent Ubuntu versions you may be forced to activate an environment first, in this case you can follow these steps: )
- Install the Ubuntu package python3-venv:
sudo apt update && sudo apt install python3-venv- Activate the environment
python3 -m venv .venv
source .venv/bin/activate- When completed, in order to exit from the .venv type: deactivate
create_restore_artifacts.sh <network_type> <zend_dump> <eon_dump> <eon_height> <output_folder> [<eon_rpc_url>]<network_type>: Network used for the input data (mainnet or testnet)<zend_dump>: Path to Zend dump, obtained with zend dumper command<eon_dump>: Path to EON dump, obtained with zen_dump rpc method on EON<eon_height>: Height of the EON dump<output_folder>: Output folder of the final artifacts<eon_rpc_url>: (Optional) EON rpc url. If not specified - the official rpc urls will be used, based on network_type parameter
Note: If you want to execute manually the process step-by-step, follow the detailed description here .
Go to the horizen-migration-check project and use the produced artifacts to check the migration correctness.