Snapshot

Address Book Updates every 5 hour

wget -O $HOME/.bcna/config/addrbook.json https://files.nodeshub.online/mainnet/bitcanna/addrbook.json

Snapshot

sudo systemctl stop bitcanna

# Back up priv_validator_state.json if needed
cp ~/.bcna/data/priv_validator_state.json  ~/.bcna/priv_validator_state.json.backup

# On some tendermint chains
bcnad unsafe-reset-all --home $HOME/.bcna--keep-addr-book

# On other tendermint chains
bcnad tendermint unsafe-reset-all --home $HOME/.bcna--keep-addr-book

SNAP_URL=$(curl -s https://files.nodeshub.online/mainnet/bitcanna/snapshot/snap-info.txt | grep "Snapshot_URL" | cut -d ' ' -f 2)
curl ${SNAP_URL} | lz4 -dc - | tar -xf - -C $HOME/.bcna

cp $HOME/.bcna/priv_validator_state.json.backup $HOME/.bcna/data/priv_validator_state.json
sudo systemctl restart bitcanna && sudo journalctl -u bitcanna -f -o cat

Last updated