Skip to content

Commit d0bb870

Browse files
authored
Merge branch 'main' into base
2 parents 772d8fb + 44cbb2e commit d0bb870

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

lib/bsc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ pwd
110110
cp ./sample-configs/.env-sample-full .env
111111
nano .env
112112
```
113-
> **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.*
113+
> **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.*
114114
115115
4. Deploy common components such as IAM role
116116

lib/bsc/lib/assets/download-snapshot.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ BSC_SNAPSHOTS_DIR=/data/
1212
BSC_SNAPSHOTS_DOWNLOAD_STATUS=-1
1313

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

1818
# 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
5050
echo "Decompression BSC snapshot success ..."
5151

5252
mv /data/geth.full/geth /data/
53-
sudo rm -rf /data/geth.full
53+
mv /data/full/geth /data/
54+
sudo rm -rf /data/full
5455
sudo rm -rf /data/geth.tar.zst
5556

5657
echo "BSC snapshot is ready !!!"

0 commit comments

Comments
 (0)