Skip to content
Height33,351,336 Producing blocks Chain IDcosmoshub-4 Versionv28.3.0

Cosmos Hub snapshot

Our latest Cosmos Hub snapshot, and the steps to restore it into a node that is already set up.

Height
33,331,683
Taken
Size
7.5 GB
Database
pebbledb

Step 1: Install aria2 and zstd

sudo apt update && sudo apt install aria2 zstd -y

Step 2: Stop the node, back up the validator state and reset

sudo service cosmoshub stop
cp $HOME/.gaia/data/priv_validator_state.json $HOME/.gaia/priv_validator_state.json.backup
gaiad tendermint unsafe-reset-all --home $HOME/.gaia --keep-addr-book

Step 3: Set the database backend

The data opens only with the backend it was written with, pebbledb. Your node binary must be built with support for it.

sed -i -E 's/^db_backend *=.*/db_backend = "pebbledb"/' $HOME/.gaia/config/config.toml
sed -i -E 's/^app-db-backend *=.*/app-db-backend = "pebbledb"/' $HOME/.gaia/config/app.toml

Step 4: Download and extract

The commands name the current archive; copy them again for a newer snapshot.

Download with

Streams the archive into the node's folder; needs no free disk space for it.

Reading the current snapshot…

Step 5: Start the node and follow the logs

sudo service cosmoshub start && sudo journalctl -fu cosmoshub -o cat