Skip to content

Commit

Permalink
Add snapshot download script to run mainnet via docker
Browse files Browse the repository at this point in the history
  • Loading branch information
paolino committed Jul 15, 2024
1 parent 158f24e commit 37f4b69
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions run/common/snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ case "$NETWORK" in
echo "Snapshot name: $SNAPSHOT_NAME"
SNAPSHOT_URL="https://downloads.csnapshots.io/testnet/$SNAPSHOT_NAME"
;;
mainnet)
SNAPSHOT_NAME=$(curl -s https://downloads.csnapshots.io/mainnet/mainnet-db-snapshot.json| jq -r .[].file_name )
echo "Snapshot name: $SNAPSHOT_NAME"
SNAPSHOT_URL="https://downloads.csnapshots.io/mainnet/$SNAPSHOT_NAME"
;;
*)
echo "Error: Invalid network $NETWORK"
exit 1
Expand Down
1 change: 1 addition & 0 deletions run/mainnet/docker/snapshot.sh

0 comments on commit 37f4b69

Please sign in to comment.