0g-chain/migrate/v0_17/rollback.md
Draco Li 014038ee57
kava-10 upgrade instructions (#1227)
* migrate doc for kava 10

* update wording

* height & time update

* update to 4 hours before failure

* correct times & block height

* add rollback doc

Co-authored-by: karzak <kjydavis3@gmail.com>
2022-04-28 16:34:47 -06:00

1.4 KiB

Kava-10 Rollback Instructions

In the event that the Kava-10 relaunch is unsuccessful, we will restart the Kava-9 chain using the last known state.

In order to restore the previous chain, the following data must be recovered by validators:

  • The database that contains the state of the previous chain (in ~/.kava/data by default)
  • The priv_validator_state.json file of the validator (in ~/.kava/data by default)

If you don't have the database data, the Kava developer team or another validator will share a copy of the database via Amazon s3 or a similar service. You will be able to download a copy of the data and verify it before starting your node. If you don't have the backup priv_validator_state.json file, you will not have double sign protection on the first block. If this is the case, it's best to consult in the validator discord before starting your node.

Restoring state procedure

  1. Stop your node
kava stop
  1. Copy the contents of your backup data directory back to the $KAVA_HOME/data directory. By default this is ~/.kava/data.
# Assumes backup is stored in "backup" directory
rm -rf ~/.kava/data
mv backup/.kava/data ~/.kava/data
  1. Install the previous version of kava
# from kava directory
git checkout v0.16.1
make install
## verify version
kava version --long
  1. Start kava process
### be sure to remove --halt-time flag if it is set
sudo systemctl daemon-reload
sudo systemctl start kava