test

command
v3.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 30, 2022 License: GPL-3.0 Imports: 18 Imported by: 0

README

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

  1. Export state from mainnet / testnet node.

The file structure is: (default structure of liked export)

{
  "app_state": {...}
}
  1. 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.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL