Skip to content

Commit

Permalink
Node startup : Update peers and fix autostake (#274)
Browse files Browse the repository at this point in the history
* Fixes autostake node

* Update peers and fix autostake

* Version bump
  • Loading branch information
88plug authored Apr 16, 2024
1 parent ef01086 commit 54deec3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 8 deletions.
4 changes: 2 additions & 2 deletions charts/akash-node/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: 9.0.2
version: 9.0.3

# 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
Expand All @@ -26,4 +26,4 @@ version: 9.0.2
# Refs
# https://github.com/akash-network/node/releases
# https://github.com/akash-network/net/blob/main/mainnet/version.txt
appVersion: 0.32.2
appVersion: 0.32.3
12 changes: 7 additions & 5 deletions charts/akash-node/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,11 @@ else
rm -rf snapshot.tar.lz4
;;

"autostake") #Snapshot is not available as of 14/11/2023
SNAP_URL="http://snapshots.autostake.com/$AKASH_CHAIN_ID/"
SNAP_NAME=$(curl -s "${SNAP_URL}" | egrep -o "$AKASH_CHAIN_ID" | tr -d ">" | tail -1)
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 "${SNAP_URL}${SNAP_NAME}"
"autostake")
SNAPSHOTS_DIR_URL="https://autostake.com/networks/akash/"
USER_AGENT="Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:91.0) Gecko/20100101 Firefox/91.0"
SNAPSHOT_URL=$(curl -H "$USER_AGENT" -s "$SNAPSHOTS_DIR_URL" | grep -oP 'SNAP_URL="\K[^"]+')
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}"
lz4 -c -d snapshot.tar.lz4 | tar -x -C "$AKASH_HOME"
rm -rf snapshot.tar.lz4
;;
Expand Down Expand Up @@ -85,4 +86,5 @@ else
cd "$AKASH_HOME/data" || exit
fi

if [[ $AKASH_DEBUG == "true" ]]; then sleep 5000; fi
if [[ $AKASH_DEBUG == "true" ]]; then sleep 5000; fi

3 changes: 2 additions & 1 deletion charts/akash-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ akash_node:
# snapshot_provider can be : "polkachu" (1Gi), "c29r3" (2Gi), or "autostake" (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

snapshot_provider: "polkachu"
api_enable: false
Expand All @@ -29,7 +30,7 @@ akash_node:
minimum_gas_prices: 0.025uakt
net: https://raw.githubusercontent.com/akash-network/net/main/mainnet
# Get the peers from https://polkachu.com/live_peers/akash, https://github.com/akash-network/net/blob/main/mainnet/peer-nodes.txt
peers: [email protected]:26656,[email protected]:26621,[email protected]:26656,[email protected]:26656,[email protected]:2020,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2140,[email protected]:20090,[email protected]:26656,[email protected]:56656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:15607,[email protected]:26696,[email protected]:26656,[email protected]:16656,[email protected]:26656,[email protected]:12856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:39656,[email protected]:12856,[email protected]:26656,[email protected]:26656,[email protected]:26676,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:39656,[email protected]:26219,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:21656,[email protected]:12856,[email protected]:1506,[email protected]:20656,[email protected]:26656
peers: [email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:29656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12856,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12856,[email protected]:26656,[email protected]:26656,[email protected]:36656,[email protected]:26656,[email protected]:6180,[email protected]:26656,[email protected]:12856,[email protected]:35656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:12856,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:26696,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:30856,[email protected]:29656,[email protected]:2140,[email protected]:27566,[email protected]:26676,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26696,[email protected]:26656,[email protected]:26656,[email protected]:26656
pruning: "default"
iavl_disable_fastnode: "true"

Expand Down

0 comments on commit 54deec3

Please sign in to comment.