BitCanna Network

SERVICE
CLI

Safe Block

Staking Service

BITCANNA SNAPSHOT SETUP

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


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

sudo journalctl -fu bcnad -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 Bitcanna Network