Snapshot

Snapshot Crossfi From RoomIT

How to Deploy Snapshot?

  1. Install Compression/Decompression Tools

sudo apt install lzma -y
  1. Download Snapshot

SNAPSHOT=$(curl -s https://roomit.xyz/snapshot/mainnet/crossfi/ | grep -i "<a href=" | grep lzma | grep -v md5sum | awk -F"=" '{print $2}' |  sed 's/"//g' | sed "s/>//g" | sed "s/ //g")
wget -c https://roomit.xyz/snapshot/mainnet/crossfi/${SNAPSHOT} --inet4-only
  1. Stop Your Service Blockchain

sudo systemctl stop crossfi-node

Notes : for systemd init blockchain, adjust with your name of service. systemctl stop mineplex-chaind

  1. Backup State Validator

cp ${HOME}/.mineplex-chain/data/priv_validator_state.json ${HOME}/.mineplex-chain/priv_validator_state.json
  1. Reset Node Blockchain

mineplex-chaind tendermint unsafe-reset-all --home $HOME/.mineplex-chain --keep-addr-book
  1. Extract Data Snapshot

lzma -d -c ${SNAPSHOT} | tar -xv -C $HOME/.mineplex-chain 
  1. Restore State Validator

cp ${HOME}/.mineplex-chain /priv_validator_state.json ${HOME}/.mineplex-chain/data/priv_validator_state.json
  1. Start Node Blockchain

sudo systemctl start crossfi-node

Last updated