Are you a Namada operator or you want to run a Namada node ? Use a snapshot to speed up the synchronization of your node.
A snapshot is a saved state of the blockchain database at a specific point in time. It allows new nodes to synchronize with the network much faster by downloading and applying the snapshot instead of replaying all transactions from the beginning of the chain.
Snapshot is taken from our public RPC node that is synched directly from the blokchain (Not from other snapshots).
#!/bin/bash
NAMADA_PATH=$HOME/.local/share/namada/namada.5f5de2dd1b88cba30586420
# Install required dependencies
sudo apt-get install wget lz4 -y
# Stop your node
sudo systemctl stop namadad
# Back up your validator state
sudo cp $NAMADA_PATH/cometbft/data/priv_validator_state.json $NAMADA_PATH/priv_validator_state.json.backup
# Delete previous db and data folders
sudo rm -rf $NAMADA_PATH/db
sudo rm -rf $NAMADA_PATH/cometbft/data
# Download db and data snapshots
wget -O db.lz4 https://namada-snapshot.shield-crypto.com/db.lz4
wget -O data.lz4 https://namada-snapshot.shield-crypto.com/data.lz4
# Decompress db and data snapshots
lz4 -c -d db.lz4 | tar -xv -C $NAMADA_PATH
lz4 -c -d data.lz4 | tar -xv -C $NAMADA_PATH/cometbft
# Delete downloaded db and data snapshots
sudo rm -v db.lz4
sudo rm -v data.lz4
# Restore your validator state
sudo cp $NAMADA_PATH/priv_validator_state.json.backup $NAMADA_PATH/cometbft/data/priv_validator_state.json
# Start your node
sudo systemctl start namadad
Snapshot Timestamp: Loading...
Latest Block Timestamp: Loading...
Latest Block Height: Loading...
DB Size: Loading...
Data Size: Loading...