diff --git a/lib/bsc/README.md b/lib/bsc/README.md index 9c218249..56e07f0f 100644 --- a/lib/bsc/README.md +++ b/lib/bsc/README.md @@ -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 diff --git a/lib/bsc/lib/assets/download-snapshot.sh b/lib/bsc/lib/assets/download-snapshot.sh index 1f50663f..a518adfe 100644 --- a/lib/bsc/lib/assets/download-snapshot.sh +++ b/lib/bsc/lib/assets/download-snapshot.sh @@ -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 @@ -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 !!!"