osmosis icon indicating copy to clipboard operation
osmosis copied to clipboard

feat: module app hash checker after state import

Open p0mvn opened this issue 1 year ago • 1 comments

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:

  1. State export a node at height X
  2. Import state into a node with different home folder
  3. 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

p0mvn avatar Nov 29 '23 17:11 p0mvn

CC: @czarcas7ic

p0mvn avatar Nov 29 '23 17:11 p0mvn