Snapshot

sudo apt install lz4
sudo systemctl stop selfchaind
cp $HOME/.selfchain/data/priv_validator_state.json $HOME/.selfchain/priv_validator_state.json.backup
rm -rf $HOME/.selfchain/data

SNAP_NAME=$(curl -s https://snapshot3.konsortech.xyz/selfchain/ | egrep -o ">self-snapshot.*\.tar.lz4" | tr -d ">")
curl https://snapshot3.konsortech.xyz/selfchain/${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 && journalctl -u selfchaind -f --no-hostname -o cat

Last updated