Loading...

Snapshot

Network celestia
Block 3,156,006
Pruning custom 100/0/10
Indexer null
Frequency every 4 hours
Timestamp 22/12/2024 07:09 UTC
Age 3 hours ago
Download celestia_latest.tar.lz4 (5.0G)

The snapshot is designed for node opeartors to run an efficient node on Celestia chain. To make the snapshot as small as possible while still viable as a validator, we use the following setting to save on the disk space. It might be helpful for you to sync with our snapshot periodically because Tendermint chain storage grows over time regardless of the pruning. Since we periodically state-sync our snapshot nodes, you might notice that sometimes the size of our snapshot is surprisingly small.
app.toml
# Prune Type
pruning = "custom"

# Prune Strategy
pruning-keep-recent = "100"
pruning-keep-every = "0"
pruning-interval = "10"
config.toml
indexer = "null"

Install lz4 if needed

sudo apt update
sudo apt install lz4

Stop the service and reset the data

Reset your node. This will erase your node database. If you are already running validator, be sure you backed up your `priv_validator_key.json` prior to running the the command. The command does not wipe the file. However, you should have a backup of it already in a safe location.

WARNING: If you use this snapshot on a validator node during a chain halt, make sure you back up priv_validator_state.json and then replace it after the snapshot is extracted but before you start the node process. This is very important in order to avoid double-sign.
# Stop your node 
sudo systemctl stop celestia-appd

# Back up priv_validator_state.json if needed
cp $HOME/.celestia-app/data/priv_validator_state.json $HOME/.celestia-app/priv_validator_state.json.backup

# Reset tendermint chain
celestia-appd tendermint unsafe-reset-all --home $HOME/.celestia-app --keep-addr-book

Download latest snapshot

# Download the Celestia snapshot
wget -O celestia_latest.tar.lz4 https://snapshots.tienthuattoan.com/mainnet/celestia/celestia_latest.tar.lz4

# Decompress the Celestia snapshot
lz4 -c -d celestia_latest.tar.lz4 | tar -x -C $HOME/.celestia-app

# Replace with the backed-up priv_validator_state.json
mv $HOME/.celestia-app/priv_validator_state.json.backup $HOME/.celestia-app/data/priv_validator_state.json

Restart the service and check the log

sudo systemctl restart celestia-appd
sudo journalctl -u celestia-appd -f

Remove downloaded snapshot to free up space

rm celestia_latest.tar.lz4