From c02a4b59c7504afe335e5d53b3423d393bfbbf15 Mon Sep 17 00:00:00 2001 From: Dimokus Date: Thu, 12 Sep 2024 13:14:19 +0300 Subject: [PATCH] feat(node): add decloudnodeslab snapshot provider --- charts/akash-node/Chart.yaml | 2 +- charts/akash-node/scripts/init.sh | 7 +++++++ charts/akash-node/values.yaml | 3 ++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/charts/akash-node/Chart.yaml b/charts/akash-node/Chart.yaml index af9e38e..106a6f9 100644 --- a/charts/akash-node/Chart.yaml +++ b/charts/akash-node/Chart.yaml @@ -17,7 +17,7 @@ type: application # Versions are expected to follow Semantic Versioning (https://semver.org/) # Major version bit highlights the mainnet release (e.g. mainnet4 = 4.x.x, mainnet5 = 5.x.x, ...) -version: 11.1.0 +version: 11.1.1 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/akash-node/scripts/init.sh b/charts/akash-node/scripts/init.sh index 3c5936b..d863280 100644 --- a/charts/akash-node/scripts/init.sh +++ b/charts/akash-node/scripts/init.sh @@ -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" diff --git a/charts/akash-node/values.yaml b/charts/akash-node/values.yaml index 762fec9..6173209 100644 --- a/charts/akash-node/values.yaml +++ b/charts/akash-node/values.yaml @@ -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" (9Gi) # 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