chain-registry icon indicating copy to clipboard operation
chain-registry copied to clipboard

Feat: Specify enough information to sync from genesis

Open UnityChaos opened this issue 3 years ago • 0 comments

chain.json provides both a genesis_url and recommended_version, but these are not enough to actually start a mainnet node syncing from genesis. To make this possible, I would propose that we modify the standard codebase struct, to include both a genesis_version, and an upgrades value, which specifies enough information to automate stepping through each upgrade (either with cosmovisor, or through halt heights / external tooling).

ex (for osmosis):

"codebase": {
        "git_repo" : "https://github.com/osmosis-labs/osmosis",
        "genesis_version" : "v3.1.0",
        "upgrades" : [
          {
            "height" : 1314500,
            "version" : "v.4.2.0",
            "name" : "v4",
          },
          {
            "height" : 2383300,
            "version" : "v6.0.0",
            "name" : "v5",
          },
        ],
    }

UnityChaos avatar Jan 01 '22 04:01 UnityChaos