Created
July 10, 2023 20:51
-
-
Save darkerego/a26e157a982cbf8e0727634f60524623 to your computer and use it in GitHub Desktop.
Proton Testnet grab snapshot and restart node
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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