Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temp Feature: Halt-height #5

Closed
youngjoon-lee opened this issue Oct 5, 2020 · 0 comments
Closed

Temp Feature: Halt-height #5

youngjoon-lee opened this issue Oct 5, 2020 · 0 comments
Assignees

Comments

@youngjoon-lee
Copy link

youngjoon-lee commented Oct 5, 2020

The current panacead doesn't have the --halt-height flag which makes panacead stop when it reaches the halt-height.
But, we need it now to upgrade panacead with the new module did (That is, we cannot upgrade panacead without exporting the genesis).

By cosmos#4059, we'll get the --halt-height flag from the new cosmos-sdk v0.36.0+.
Until then, I'd suggest to cherry-pick the commit for --halt-height to the cosmos-sdk v0.35.6-internal. (I need to check if it's possible to cherry-pick it easily.)

Then, the upgrade process would be like:

[v1.2.5 -> v1.2.6]
1. sudo systemctl stop panacead
2. git checkout v1.2.6    (which has the --halt-height flag)
3. make build && make install && sudo cp $GOPATH/bin/panacea* /usr/local/bin/
4. panacead start --halt-height=XXXXX

[v1.2.6 -> v1.3.0]
1. Check if all panacead processes are stopped.
2. panacead export --for-zero-height --height=XXXXX > genesis_XXX.json
3. panacead unsafe-reset-all
4. git checkout v1.3.0
5. make build && make install && sudo cp $GOPATH/bin/panacea* /usr/local/bin/
6. sudo systemctl start panacead

Reference: https://github.com/cosmos/gaia/blob/master/docs/migration/cosmoshub-2.md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant