πŸ“· Snapshots

Update every 6 hours

◻️ How to use?

Copy and paste the command on your server.

sudo systemctl stop emped 

cp $HOME/.empe-chain/data/priv_validator_state.json $HOME/.empe-chain/priv_validator_state.json.backup

emped tendermint unsafe-reset-all --home $HOME/.empe-chain --keep-addr-book
curl https://snapshots-testnet.unitynodes.com/empeiria-testnet/empeiria-testnet-latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.empe-chain

mv $HOME/.empe-chain/priv_validator_state.json.backup $HOME/.empe-chain/data/priv_validator_state.json

sudo systemctl restart emped 
sudo journalctl -u emped -f -o cat

◻️ How to check?

After downloading the snapshot, you can use the command to check the synchronization of your node with the network, you will be shown the following information:

while true; do 
  local_height=$(emped status | jq -r .sync_info.latest_block_height)
  network_height=$(curl -s https://rpc.empeiria-testnet.unitynodes.com/status | jq -r '.result.sync_info.latest_block_height')
  blocks_left=$((network_height - local_height))

  echo -e "\033[1;33m[Sync Status]\033[0m \033[1;32mNode Height:\033[0m \033[1;37m$local_height\033[0m | \033[1;32mNetwork Height:\033[0m \033[1;37m$network_height\033[0m | \033[1;32mBlocks Left:\033[0m \033[1;31m$blocks_left\033[0m"

  sleep 5
done

If "Block left - 0-1" - synchronized

◻️ How does it work?

When a new node joins a blockchain network, it can use a snapshot to quickly synchronize with the current state of the network. Snapshots are compressed backups of blockchain data that significantly reduce the time required for node synchronization compared to fully verifying the entire transaction history. Conditionally, there are 100,000 blocks in the network. Without a snapshot, you would have to sync and download all of them completely. In the case of using a snapshot, it can be conditionally only the last 10,000 blocks.

Our team provides up-to-date network snapshots that are updated every 6 hours, so you can sync with less of your own time.

β—½ Advantages of using snapshots:

  • Speed: Significantly reduces sync time.

  • Saving resources: reduces the load on server resources and data storage.

  • Convenience: allows you to quickly restore the operation of the node after failures or transfers.

Last updated