Skip to content

Commit

Permalink
fix(node): complete state-sync in init container (#230)
Browse files Browse the repository at this point in the history
fixes #229
  • Loading branch information
andy108369 authored Oct 17, 2023
1 parent eaa4253 commit 3af97e4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion 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: 6.0.2
version: 6.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 Down
4 changes: 4 additions & 0 deletions charts/akash-node/scripts/init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,10 @@ if [ "$AKASH_STATESYNC_ENABLE" == true ]; then
export AKASH_STATESYNC_TRUST_HEIGHT=$BLOCK_HEIGHT
export AKASH_STATESYNC_TRUST_HASH=$TRUST_HASH

# Make sure we state-sync the node first if it has never been synced before
export AKASH_HALT_HEIGHT=$LATEST_HEIGHT
/bin/akash start

else
if [ "$AKASH_CHAIN_ID" == "akashnet-2" ]; then
apt -y --no-install-recommends install aria2 lz4 liblz4-tool wget > /dev/null 2>&1
Expand Down
5 changes: 3 additions & 2 deletions charts/akash-node/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ akash_node:
pex: true
minimum_gas_prices: 0.025uakt
net: https://raw.githubusercontent.com/akash-network/net/main/mainnet
peers: [email protected]:26656,[email protected]:26656,[email protected]:11456,[email protected]:26603,[email protected]:11456,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:26636,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:28956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:2020,[email protected]:26656,[email protected]:26656,[email protected]:28956,[email protected]:26656,[email protected]:26696,[email protected]:26656,[email protected]:28656,[email protected]:26656,[email protected]:26656,[email protected]:56656,[email protected]:28956,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:26656
# 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]:17656,[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]:26696,[email protected]:39656,[email protected]:26656,[email protected]:26219,[email protected]:26656,[email protected]:26656,[email protected]:26656,[email protected]:16656,[email protected]:21656,[email protected]:12856,[email protected]:1506,[email protected]:20656,[email protected]:26656
pruning: "default"
iavl_disable_fastnode: "true"

Expand All @@ -36,7 +37,7 @@ state_sync:
enabled: false
rpc1: "https://akash-rpc.polkachu.com:443"
rpc2: "https://akash-rpc.polkachu.com:443"
# https://polkachu.com/live_peers/akash
# Get Polkachu State-Sync Peer for Akash from https://polkachu.com/live_peers/akash
node_id: "[email protected]:12856"
# height_offset should equal the AKASH_STATE_SYNC_SNAPSHOT_INTERVAL on the node which makes the state-sync snapshots
height_offset: 2000
Expand Down

0 comments on commit 3af97e4

Please sign in to comment.