osmosis
osmosis copied to clipboard
feat: module app hash checker after state import
Background
For testnets, we frequently modify exported genesis in some modules and import it.
There have been a number of hard-to-debug bugs where we either erroneously modify a state export or forget to export it in the right module.
Suggested Design
We should have a tool for checking the root hashes of relevant modules that we expect to match.
The process would be:
- State export a node at height X
- Import state into a node with different home folder
- Using scripts, confirm that root hashes match for the relevant modules
Here are the tools that can be used for step 3: Tooling: https://github.com/p0mvn/chdbg Debugging guide: https://app.clickup.com/37420681/v/dc/13nzm9-23133/13nzm9-46933
Acceptance Criteria
- Tool created
- Automated in CI
CC: @czarcas7ic