Snapshot

Catch the latest block faster by using our daily snapshots.

Snapshot

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

https://snapshots.stakeandrelax.net/mars/snapshot/_latest.tar.lz4

Instructions

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 https://snapshots.stakeandrelax.net/mars/snapshot_latest.tar.lz4 | 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 https://snapshots.stakeandrealx.net/wasm/mars/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 = \"9e7f28b8c0ac9d8d17bb17a390421d540a29eb3f@mars-rpc.stakeandrelax.net:12657\"|" $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