Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: restart node for chain that starts on v2 (#3477)
Closes #3462 Previously, `InitChain` for a genesis with app version 2 wouldn't save the app version to consensus params. This means that if the node stopped and started up again, it would fetch `0` from consensus params and default to using app version 1 because of [these lines](https://github.com/rootulp/celestia-app/blob/dd6b188c0553d7cdd81161c62558db88a353d173/app/app.go#L520-L525). The fix in this PR is to save app version 2 and above to consensus params in `InitGenesis`. ## Testing ```shell ./scripts/single-node.sh # wait a block then stop the node with CTRL + C celestia-appd start # works and doesn't panic ```
- Loading branch information