From 3af97e4d5522751c960a3aebe0ee4efaa5116425 Mon Sep 17 00:00:00 2001 From: Andrey Arapov <107317698+andy108369@users.noreply.github.com> Date: Tue, 17 Oct 2023 16:04:19 +0200 Subject: [PATCH] fix(node): complete state-sync in init container (#230) fixes #229 --- charts/akash-node/Chart.yaml | 2 +- charts/akash-node/scripts/init.sh | 4 ++++ charts/akash-node/values.yaml | 5 +++-- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/charts/akash-node/Chart.yaml b/charts/akash-node/Chart.yaml index eea1e472..b7b52854 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: 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 diff --git a/charts/akash-node/scripts/init.sh b/charts/akash-node/scripts/init.sh index cdc8d970..bb12cb85 100644 --- a/charts/akash-node/scripts/init.sh +++ b/charts/akash-node/scripts/init.sh @@ -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 diff --git a/charts/akash-node/values.yaml b/charts/akash-node/values.yaml index a7181bd4..37d8baf0 100644 --- a/charts/akash-node/values.yaml +++ b/charts/akash-node/values.yaml @@ -25,7 +25,8 @@ akash_node: pex: true minimum_gas_prices: 0.025uakt net: https://raw.githubusercontent.com/akash-network/net/main/mainnet - peers: 267f95c69ae90ac179961d82dee5bead2ea77715@65.108.137.38:26656,85dd710b87d0e5c2e91b98b3da5a9f872a61b782@65.21.136.170:26656,2ff49afb569fb6cbfe837ec1f699e75927d230f4@23.88.67.24:11456,cb6ae22e1e89d029c55f2cb400b0caa19cbe5523@15.222.240.244:26603,b4d30b0023aaf6decd087292a5cb797dd1d4cfea@65.108.67.53:11456,f85fa6df6f03a8fa48ff37a929d72daabbf4e414@47.156.153.124:28656,b9e9f4b5bdc7d816558cc45bb2c77efb4e6d8166@173.27.185.103:26656,aa8cfe6dcad6dae8038e93e53ce71209597f1c12@138.201.8.248:26656,b9285625133d55410dd0f7e0d1f957165b6bb53b@185.216.178.35:26636,6adc00bef235246c90757547d5f0703d6a548460@178.128.82.28:26656,cca5fa8c0cdf2c85fcf3100b3863f67099d74ebb@144.91.95.105:26656,10f046b1d0db753ed49503c1150bd0f70cea6c89@74.96.87.62:26656,43544bc781b88d6785420427926d86a5332940b3@142.132.131.184:26656,21f2000ce742606f3a764d0f27c6ece0ffdff357@65.108.6.185:26656,106b7a61b2d289ed8f7ff52c77d39a97bc1afee5@85.10.216.131:26656,e4d57288fd145c58dc2f1b3b3ef5eaab95070cc1@45.34.1.114:28656,05c30fd95b888ca8df8171ce65a06f1de683d6e3@84.252.129.17:26656,9bca6d87a4a01d77cc7503ef5f5291ff131223d6@89.149.218.67:26656,0ecc848709fa1d9a85899086910b245626bad758@31.7.207.245:26656,ee695c9cbb345fbf60a98a182fa702200d1432f6@88.198.26.29:26656,af570853d04941c1cba7694bda4c36bd1cff0e75@65.108.14.96:28956,6cceba286b498d4a1931f85e35ea0fa433373057@88.198.128.175:26656,be3a538cebb28e7224db10920bb7fe32456e1aad@116.202.244.153:26656,0393c19b176d1cf8bc560c5a8fa990301deb1a7e@95.216.235.55:26656,20180c45451739668f6e272e007818139dba31e7@88.198.62.198:2020,42f173cf91e2ed30a9ad2526a61c1bb8a5f94448@89.149.218.76:26656,bba10290da32f3cb41e15c3a192413666ce05cee@5.9.208.15:26656,840fca1ad59e7f48fde5f45082465fc2b40f7d6a@135.181.60.250:28956,8e4e1f1e087c76c71c64e477e95495833da82aa2@95.217.65.55:26656,82064b099c8c4c0ebf8bdeb6a9093aeb76a293b3@176.57.188.225:26696,52dfaaf443f635e5c9874623b5e95d21ff708613@167.88.61.242:26656,070b3c936e2995bc269a2981702b87de05411baa@148.251.13.186:28656,ee82fc8fb0f532078904ba4d70ca2fdfdea11a09@167.88.61.139:26656,30b8008d4ea5069a8724a0aa73833493efa88e67@65.108.140.62:26656,16521dc41bd06acaaa8baa2d08574ccd6703798d@51.79.176.203:56656,b0191eea5e539a1295f16251ea4a36cbce69ad42@65.21.202.37:28956,82588f011491c6100d922d133f52fc23460b9231@95.217.91.239:26656,6dfd5df6165a7bb60c92380a14d3bb67ab35a871@64.225.67.248:26656,7718cdffbb99c82e64f2db1381efdcd7de0a54a6@147.182.193.92:26656,f945f7c85cd3fd772b17fd011602bc550b943c86@176.9.188.21:26656,8a210f1bcfc9015a7bc18dcc5add29c0dce3f2dc@95.217.70.63:26656,e9f23228faffd9af9d77e0cd65bba1a37e226ca4@13.213.115.164:26656,2d58f8dccc80e24fb406b0abb4cbf3eba7fc7d01@50.18.140.207:26656,8b9e4b558b1c5bb3144c97985f0ba1509c134ee7@96.43.141.170:26656,97e4468ac589eac505a800411c635b14511a61bb@5.9.239.239:26656,c124ce0b508e8b9ed1c5b6957f362225659b5343@136.243.248.191:26656,ebeea522e069f9037876e13f73310a601cfcff8a@95.179.212.224:26656,ff91c835871dc57a028fdb8d312200b5ddcd952f@51.222.249.140:26656,e4fa0383a59a023bd1c8a44f651e5a351c1246f2@198.204.240.170:26656,72808552759ead80b853bca58b08f10be9dd144e@185.213.26.158:26656 + # Get the peers from https://polkachu.com/live_peers/akash, https://github.com/akash-network/net/blob/main/mainnet/peer-nodes.txt + peers: 835c8aab295400dcf52e318f64894f60d84f83b2@185.233.106.174:26656,7dd1d2a3446b2399032335acb2c119d3dbfc4501@139.180.185.11:26621,5ee521ee9434dc5686cf43fe9f560adbc606fb7a@162.55.0.195:26656,731394cfc97fca39d52334eb703413ada5273098@51.81.107.4:26656,b5790eccf0a3d9c9555fb641fdd72cbc4b9d6dbc@135.181.223.115:2020,bd2525f1a86af8b1a3798c04387f47f0c0627d24@159.223.201.38:26656,9701ce34aca66bb9da906a4a62f0c25ecc2cfbc8@43.207.102.64:26656,0207b5ba46339ecfc3b8f271852a73595a4ef116@40.143.96.116:26656,f9215993d48d8e0abc31cea931d573a45d201ac8@65.108.232.104:12856,1e8aaf3654887a05caeb0c1f73ce39e859e2f0c9@159.223.201.86:26656,c908f3dca67111c21ce166d90042f2b898e526b5@34.83.147.183:26656,ef632f070f35d4da085304e67057d142dca9f1a8@95.211.196.113:17656,f493614e0f76855fdb19e3bf2965f4cb065f748e@173.174.16.27:26656,c58852a0c6ee1d1a68b76e5a54a9dbce895065d9@162.55.245.149:2140,765c32f8c3150681a5c2c9ce97f4d9b39f1231c9@173.215.85.171:20090,4bac1c3cfc22e56f8d7be4ee4b55faef4dc03758@37.59.18.110:26656,89b5c363babe7c4983c3ef06c3c9ed1e39ec4246@51.79.176.202:56656,e5c12f3f5b3748004ef25174127594e0a55cd012@185.177.229.99:26656,02b5a74f0cc909045efe170da3cc5706de2c0be5@88.208.243.62:26656,e1463762af252ea6d7f9b73ae4fd02c3a85092a7@68.142.182.44:26656,a89ded27c2323388fc0f12e7a08f17424b2b7a45@135.181.142.60:15607,37201c92625df2814a55129f73f10ab6aa2edc35@95.214.53.215:26696,42f173cf91e2ed30a9ad2526a61c1bb8a5f94448@89.149.218.76:26656,807bf04200166592bd128bba51fedd37659b13ec@66.172.36.134:16656,335c6ec765642a94bd5080a45d2a9b374598dfa0@184.105.162.170:26656,86f866a645bcc25d3d26fe8dffbd603ebfc0d6ee@142.132.158.93:12856,30b8008d4ea5069a8724a0aa73833493efa88e67@142.44.137.180:26656,00a39ac3ec012ffa3116a162c17f49df484d0298@34.34.136.79:26656,dda1f59957f767e20b0fc64b1c915b4799fc0cc5@159.223.201.93:26656,4799e2f3af4eebff187dc0ee9b5057c86bed6173@95.217.202.49:39656,506002b391be8d653b14f0162325b14929cac72e@51.81.49.176:12856,df56ec71d905d43ded597f42f42ccad2c2e30c83@62.131.218.3:26656,8b2a967ddc01fd978371ac5cfa1f023b74f64709@13.213.115.164:26656,43544bc781b88d6785420427926d86a5332940b3@142.132.131.184:26676,29be85ccdaf954bd2fd834bc5615aea79382bdc6@38.109.200.33:26656,9e6f06c075f9e287e79831c8ca2c6fe37e1acb8b@68.186.247.133:26656,7d290b7ad464423b908ef040d5214e54707fd607@54.38.92.122:26656,ebc272824924ea1a27ea3183dd0b9ba713494f83@195.3.223.168:26696,6e82ac725aa4d8df49c1e9277606e1d75199537a@51.91.70.90:39656,6adc00bef235246c90757547d5f0703d6a548460@178.128.82.28:26656,30da0ee2c35abce21e6160e43f03ece0f18cdfe7@144.76.63.67:26219,13e17b356b5e97ce754c94aeb9c74e846d018bdb@85.237.193.106:26656,584fc944cce8d6dcd323f0bd3a7727d5af033e66@47.75.104.62:26656,aff5e4ac6c17965ea798b6d303b06ff19196835a@83.136.255.212:26656,b77dac854047574b0f15ac70db3698b5a1bbd48c@66.172.36.136:16656,bbf7cbfd305c89ef4a19c5cd9c9b4ae272dd72ea@65.21.23.109:21656,e5a3deca200af80c7f90e9627a20d29f60936f0b@85.10.197.58:12856,9aa4c9097c818871e45aaca4118a9fe5e86c60e2@135.181.113.227:1506,7f74f4413b7fca586df59d9ed4bab2bc23d4ada4@136.243.21.50:20656,db35b7a49154d265801e12520e92f0307b5868c9@109.70.113.100:26656 pruning: "default" iavl_disable_fastnode: "true" @@ -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: "d1e47b071859497089c944dc082e920403484c1a@65.108.128.201:12856" # height_offset should equal the AKASH_STATE_SYNC_SNAPSHOT_INTERVAL on the node which makes the state-sync snapshots height_offset: 2000