Skip to content

BSC. Changes to snapshot download script #194

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/bsc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ pwd
cp ./sample-configs/.env-sample-full .env
nano .env
```
> **IMPORTANT**: *By default we use the latest Geth Fullnode snapshot from [48 Club](https://github.com/48Club/bsc-snapshots/blob/main/data.json) If you want to set your own `BSC_SNAPSHOTS_URI`, check this GitHub: https://github.com/48Club/bsc-snapshots, and use Geth full node link.*
> **IMPORTANT**: *By default we use the latest Geth Fullnode snapshot from [48 Club](https://github.com/48Club/bsc-snapshots/blob/develop/data.json) If you want to set your own `BSC_SNAPSHOTS_URI`, check this GitHub: https://github.com/48Club/bsc-snapshots, and use Geth full node link.*
4. Deploy common components such as IAM role

Expand Down
5 changes: 3 additions & 2 deletions lib/bsc/lib/assets/download-snapshot.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ BSC_SNAPSHOTS_DIR=/data/
BSC_SNAPSHOTS_DOWNLOAD_STATUS=-1

if [ "$BSC_SNAPSHOTS_URI" == "none" ]; then
BSC_SNAPSHOTS_URI=$(curl https://raw.githubusercontent.com/48Club/bsc-snapshots/main/data.json | jq -r .geth.local.link)
BSC_SNAPSHOTS_URI=$(curl https://raw.githubusercontent.com/48Club/bsc-snapshots/develop/data.json | jq -r .geth.local.link)
fi

# take about 1 hour to download the bsc snapshot
Expand Down Expand Up @@ -50,7 +50,8 @@ zstd -cd geth.tar.zst | pv | tar xvf - 2>&1 | tee unzip.log && echo "decompressi
echo "Decompression BSC snapshot success ..."

mv /data/geth.full/geth /data/
sudo rm -rf /data/geth.full
mv /data/full/geth /data/
sudo rm -rf /data/full
sudo rm -rf /data/geth.tar.zst

echo "BSC snapshot is ready !!!"
Loading