BITSONG SNAPSHOT SETUP

# INSTALL LZ4
sudo apt update
sudo apt install lz4 -y
# STOP BITSONG NODE
sudo systemctl stop bitsongd
# KEYS BACKUP
# If you are a Validator remember to backup your keys priv_validator_key.json and node_key.json
mkdir $HOME/backup
cp $HOME/.bitsongd/config/priv_validator_key.json $HOME/backup
cp $HOME/.bitsongd/config/node_key.json $HOME/backup
# RESET BITSONG
bitsongd tendermint unsafe-reset-all --home $HOME/.bitsongd
# PRUNING SETUP
sed -i 's|^pruning *=.*|pruning = "custom"|g' $HOME/.bitsongd/config/app.toml
sed -i ‘s|^pruning-keep-recent *=.*|pruning-keep-recent = “100”|g’ $HOME/.bitsongd/config/app.toml
sed -i ‘s|^pruning-keep-every *=.*|pruning-keep-every = “0”|g’ $HOME/.bitsongd/config/app.toml
sed -i ‘s|^pruning-interval *=.*|pruning-interval = “10”|g’ $HOME/.bitsongd/config/app.toml
sed -i ‘s|^indexer *=.*|indexer = “null”|g’ $HOME/.bitsongd/config/config.toml
# DOWNLOAD AND EXTRACT SNAPSHOT AND ADDRBOOK.JSON
wget https://snapshot.safeblock.space/bitsong/addrbook.json -P $HOME/.bitsongd/config
wget https://snapshot.safeblock.space/bitsong/bitsong-snapshot_26-05-2024.tar.lz4
lz4 -c -d bitsong-snapshot_26-05-2024.tar.lz4 | tar -x -C $HOME/.bitsongd
rm bitsong-snapshot_26-05-2024.tar.lz4
# START BITSONG NODE
sudo systemctl start bitsongd

# CHECK IF NODE HAS STARTED
sudo journalctl -fu bitsongd -o cat
# (Ctrl+C To Exit)

sudo journalctl -fu bitsongd -o cat | grep index
# (Ctrl+C To Exit)

http://0.0.0.0:26657/status | jq -r .result.sync_info.catching_up

If response is “true”, you not are synched, wait….
When response is “false”, your node are synched to Bitsongd Network