Skip to content

Instantly share code, notes, and snippets.

@karzak
Last active May 13, 2022 23:50
Show Gist options
  • Save karzak/91e86e9a5604aadf7453da38bb059cb6 to your computer and use it in GitHub Desktop.
Save karzak/91e86e9a5604aadf7453da38bb059cb6 to your computer and use it in GitHub Desktop.
Kava EVM Alpha Upgrade 3 Data Directory Replacement

Theese instructions are to replace the data directory on pruning nodes that had corrupted dbs.

Requirements

  • ~150GB of available space

Steps

  1. Make backup of priv_validator_state.json
cp ~/.kava/data/priv_validator_state.json ~/priv_validator_state.json.bak
  1. Shutdown kava process and install updated version
sudo systemctl stop kava
cd ~/kava
git fetch && git checkout v0.17.0-testnet.1
make install
  1. Remove old data directory
cd ~/.kava
rm -rf data/
  1. Download backup
wget https://kava-genesis-files.s3.amazonaws.com/evm-alpha/kava-evm-alpha-block-882600.tar.gz
  1. Inflate backup (this takes a while)
tar -xvzf kava-evm-alpha-block-882600.tar.gz
  1. Restart kava process
sudo systemctl restart kava
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment