Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(node): complete state-sync in init container #230

Merged
merged 1 commit into from
Oct 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading