PLANQ SNAPSHOT SETUP

# INSTALL LZ4
sudo apt update
sudo apt install lz4 -y
# STOP PLANQ NODE
sudo systemctl stop planqd
# 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/.planqd/config/priv_validator_key.json $HOME/backup
cp $HOME/.planqd/config/node_key.json $HOME/backup
# RESET PLANQ
planqd tendermint unsafe-reset-all --home $HOME/.planqd
# PRUNING SETUP
sed -i 's|^pruning *=.*|pruning = "custom"|g' $HOME/.planqd/config/app.toml
sed -i ‘s|^pruning-keep-recent *=.*|pruning-keep-recent = “100”|g’ $HOME/.planqd/config/app.toml
sed -i ‘s|^pruning-interval *=.*|pruning-interval = “10”|g’ $HOME/.planqd/config/app.toml
sed -i ‘s|^indexer *=.*|indexer = “null”|g’ $HOME/.planqd/config/config.toml
# DOWNLOAD AND EXTRACT SNAPSHOT AND ADDRBOOK.JSON
wget https://snapshot.safeblock.space/planq/addrbook.json -P $HOME/.planqd/config
wget https://snapshot.safeblock.space/planq/planq-snapshot_26-05-2024.tar.lz4
lz4 -c -d planq-snapshot_26-05-2024.tar.lz4 | tar -x -C $HOME/.planqd
rm planq-snapshot_26-05-2024.tar.lz4
# START PLANQ NODE
sudo systemctl start planqd

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

sudo journalctl -fu planqd -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 Planq Network