bech32 prefix migration test
This script is for testing the data store migration for bech32 prefix change in v2.0.0 upgrade.
It imports a genesis state into test app, runs the migration code, then runs test cases and export the resultant state.
Usage
- Export state from mainnet / testnet node.
The file structure is: (default structure of liked export
)
{
"app_state": {...}
}
- Run the script:
go run ./migrate.go /path/to/input_state.json /path/to/output_state.json
System requirement
- 8 core cpu
- 32GB RAM + 32GB Swap
Note 64GB of memory will be used in total. Using swap file on lower end machine can avoid OOM crashes but will lengthen the processing time significantly.