Skip to content

Instantly share code, notes, and snippets.

@darkerego
Created July 10, 2023 20:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save darkerego/a26e157a982cbf8e0727634f60524623 to your computer and use it in GitHub Desktop.
Save darkerego/a26e157a982cbf8e0727634f60524623 to your computer and use it in GitHub Desktop.
Proton Testnet grab snapshot and restart node
#!/bin/bash
echo 'Changing directories ... '
cd /opt/ProtonTestnet/protonNode
echo "Delete old snaps"
rm snapshots/*
echo "Downloading latest snap "
cd snapshots
wget https://backup.cryptolions.io/ProtonTestNet/snapshots/latest-snapshot.bin.zst
unzstd latest-snapshot.bin.zst
cd ..
echo "Clearing blocks/state"
rm -rf blocks
rm -rf state
mkdir blocks
mkdir state
echo "Let's hope that worked! Stop ..."
./stop.sh
echo "Start ... "
./start.sh --snapshot /opt/ProtonTestnet/protonNode/snapshots/latest-snapshot.bin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment