Celestia Consensus Snapshots

Quick Info

You can copy & paste all CLI commands from the Batch pasta section to download and apply a snapshot in one go. Alternatively, you can execute the steps one by one.

Download Snapshot [pruned]

🔄 Created: 122 d 5 h 48 min ago. 📦 Size: 3.6GiB. 🗄️ DB: goleveldb.

wget https://snapshot01.at.htw.tech/celestia/testnet/celestia_snapshot_8182350.tar.lz4

Batch "pasta"

Set your node folder

export FOLDER=.celestia-app

Just copy and paste into the terminal:

# Stop service
sudo systemctl stop celestia-appd.service
# Download addrbook
wget -O $HOME/$FOLDER/config/addrbook.json https://snapshot01.at.htw.tech/celestia/testnet/addrbook.json --inet4-only
# Download genesys
wget -O $HOME/$FOLDER/config/genesis.json https://snapshot01.at.htw.tech/celestia/testnet/genesis.json --inet4-only
# Save validator state file
cp $HOME/$FOLDER/data/priv_validator_state.json $HOME/$FOLDER/priv_validator_state.json.backup
# Clear data
rm -rf $HOME/$FOLDER/data
# Download snaphot file
curl https://snapshot01.at.htw.tech/celestia/testnet/celestia_snapshot_8182350.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/$FOLDER
# Restore validator state file
mv $HOME/$FOLDER/priv_validator_state.json.backup $HOME/$FOLDER/data/priv_validator_state.json
# Restart service
sudo systemctl restart celestia-appd && sudo journalctl -o cat -fu celestia-appd

Step By Step

Stop node

Stop the service:

sudo systemctl stop celestia-appd.service

Node Folder

Set your node folder name:

export FOLDER=".celestia-app"

Download genesis

Download the network genesis file.

wget -O $HOME/$FOLDER/config/genesis.json https://snapshot01.at.htw.tech/celestia/testnet/genesis.json --inet4-only

Download addrbook

Download the network addrbook file.

wget -O $HOME/$FOLDER/config/addrbook.json https://snapshot01.at.htw.tech/celestia/testnet/addrbook.json --inet4-only

Backup node state

⚠️ Make sure to save priv_validator_state.json. It contains your node state.

cp $HOME/$FOLDER/data/priv_validator_state.json $HOME/$FOLDER/priv_validator_state.json.backup

Clear data folders

Delete old data folders:

rm -rf $HOME/$FOLDER/data

Download snapshot and restore data

Download the snapshot file and extract it into the data folder:

curl https://snapshot01.at.htw.tech/celestia/testnet/celestia_snapshot_8182350.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/$FOLDER

Restore node state

Move the saved validator state back to the data folder:

mv $HOME/$FOLDER/priv_validator_state.json.backup $HOME/$FOLDER/data/priv_validator_state.json

Restart node

Restart the service and follow logs:

sudo systemctl restart celestia-appd && sudo journalctl -o cat -fu celestia-appd