Crescent Node Snapshot

Chain ID: crescent-1 | Current Node Version: v4.2.0

Latest
Block Height
Size
Timestamp
Download
17997557 628 MB 2 hours ago crescent_17997557.tar.lz4
17981734 621 MB 1 day ago crescent_17981734.tar.lz4

Our Crescent Snapshot Server Setup

We take one node snapshot every day. We then delete all the previous snapshots to free up the space on the file server.

The snapshot is designed for node opeartors to run an efficient node on Crescent 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"

How To Process Crescent Snapshot

Install lz4 if needed

sudo apt install lz4

Download the snapshot

wget -O crescent_17997557.tar.lz4 https://snapshots.polkachu.com/snapshots/crescent/crescent_17997557.tar.lz4 --inet4-only

Stop your node

sudo service crescent stop

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. When in doubt, reach out to the project team.

# Back up priv_validator_state.json if needed
cp ~/.crescent/data/priv_validator_state.json  ~/.crescent/priv_validator_state.json

# Reset node state
crescentd tendermint unsafe-reset-all --home $HOME/.crescent --keep-addr-book

Decompress the snapshot to your database location. You database location will be something to the effect of ~/.crescent depending on your node implementation.

lz4 -c -d crescent_17997557.tar.lz4  | tar -x -C $HOME/.crescent

IMPORTANT: If you run a validator node and the chain is in halt, it is time to replace the priv_validator_state.json file that you have backed up.

# Replace with the backed-up priv_validator_state.json
cp ~/.crescent/priv_validator_state.json  ~/.crescent/data/priv_validator_state.json

If everything is good, now restart your node

sudo service crescent start

Remove downloaded snapshot to free up space

rm -v crescent_17997557.tar.lz4

Make sure that your node is running

sudo service crescent status
sudo journalctl -u crescent -f

ADVANCED ROUTE: The above solution requires you to download the compressed file, uncompressed it and then delete the original file. This requires extra storage space on your server. You can run the following combo command to stream the snapshot into your database location. For advanced users only:

curl -o - -L https://snapshots.polkachu.com/snapshots/crescent/crescent_17997557.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.crescent

ALTERNATIVE ROUTE: We also have Crescent state-sync service to help you bootstrap a node.