Catch the latest block faster by using our daily snapshots.


Snapshots allows a new node to join the network by recovering application state from a backup file. Snapshot contains compressed copy of chain data directory. To keep backup files as small as plausible, snapshot server is periodically beeing state-synced.

Snapshots are taken automatically every 24 hours


Stop the service and reset the data

sudo systemctl stop marsd
cp $HOME/.mars/data/priv_validator_state.json $HOME/.mars/priv_validator_state.json.backup
rm -rf $HOME/.mars/data

Download latest snapshot

curl -L | tar -Ilz4 -xf - -C $HOME/.mars
mv $HOME/.mars/priv_validator_state.json.backup $HOME/.mars/data/priv_validator_state.json

# Remove the empty wasm folder if you have an empty one, just in case
rm -r ~/.mars/data/wasm

# Get our wasm folder
wget -O wasmonly.tar.lz4 --inet4-only

# Extract the wasm folder into the right place
lz4 -c -d wasmonly.tar.lz4  | tar -x -C $HOME/.mars/data

# Clean up
rm wasmonly.tar.lz4

Add seeds

sed -i -e "s|^seeds *=.*|seeds = \"\"|" $HOME/.mars/config/config.toml

Restart the service and check the log

sudo systemctl start marsd && sudo journalctl -u marsd -f --no-hostname -o cat

Last updated