Install dependencies, if needed
sudo apt update
sudo apt install lz4 -y
sudo systemctl stop selfchaind
cp $HOME/.selfchain/data/priv_validator_state.json $HOME/.selfchain/priv_validator_state.json.backup
selfchaind tendermint unsafe-reset-all --home $HOME/.selfchain --keep-addr-book
rm -rf $HOME/.selfchain/data
SNAP_NAME=$(curl -s https://snapshots.l0vd.com/selfchain-testnet/ | egrep -o ">self-dev-1.*\.tar.lz4" | tr -d ">")
curl https://snapshots.l0vd.com/selfchain-testnet/${SNAP_NAME} | lz4 -dc - | tar -xf - -C $HOME/.selfchain
mv $HOME/.selfchain/priv_validator_state.json.backup $HOME/.selfchain/data/priv_validator_state.json
sudo systemctl restart selfchaind
sudo journalctl -u selfchaind -f --no-hostname -o cat