Skip to content

Commit

Permalink
feat(node): add decloudnodeslab snapshot provider
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimokus88 authored and andy108369 committed Sep 26, 2024
1 parent 3f2b97e commit 6a59523
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 7 additions & 0 deletions charts/akash-node/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,13 @@ else
rm -rf snapshot.tar
;;

"decloudnodeslab")
SNAPSHOT_URL="https://akash.declab.pro/latest.tar.lz4"
aria2c --out=snapshot.tar.lz4 --check-certificate=false --max-tries=99 --retry-wait=5 --always-resume=true --max-file-not-found=99 --conditional-get=true -s 8 -x 8 -k 1M -j 1 "${SNAPSHOT_URL}"
tar -xf snapshot.tar -C "$AKASH_HOME"
rm -rf snapshot.tar
;;

*)
SNAPSHOTS_DIR_URL="https://snapshots.polkachu.com/snapshots/"
USER_AGENT="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
Expand Down
3 changes: 2 additions & 1 deletion charts/akash-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,11 @@ debug: "false"
# Defaults to mainnet
akash_node:
enabled: true
# snapshot_provider can be : "polkachu" (1Gi), "c29r3" (2Gi), or "autostake" (3Gi)
# snapshot_provider can be : "polkachu" (1Gi), "c29r3" (2Gi), "autostake" (3Gi), or "decloudnodeslab"(3Gi)
# Nov/02 2023: disabled polkachu since it is now behind Cloudflare's "Verify you are human" CAPTCHA
# Nov/14 2023: autostake snapshot is unavailable, fixed polkachu and set as default, fix "c29r3" snapshot provider
# Aprl/14 2024: peers updated and autostake working again
# Sep/16 2024: add decloudnodeslab snapshot provider

snapshot_provider: "polkachu"
api_enable: false
Expand Down

0 comments on commit 6a59523

Please sign in to comment.