Snapshot data, live-peers, addrbook for Airchains Varanasi Testnet by Valoper.io
Airchains Varanasi Testnet
zkRollups Made Easy For Everyone Seamlessly zk for unmatched speed and privacy with zkRollup Framework, with diverse options for execution and data availability Airchains is a versatile and powerful framework for creating customized rollups with a variety of options. Our framework supports EVM, SVM, and CosmWasm-based rollupsChain ID: varanasi-1
d55b5d55e89d22c2b8dcaeb09b001b3b068af91d@37.27.127.145:63656,53e9e8172af43e746699e4a1cd317072c2fa6bed@65.109.117.113:30856,03c296401c5177ed06258d3bba0649131ef02fed@65.108.233.73:19656,ca0a4b67fd6ffd6a70ea8d0e3c8d284de0f8222f@37.27.132.57:19656,9c1e0640e91d3df2d34dc5ff0f42f1f13de9ea0f@65.109.70.11:19656,a635451ced8f49cd034c97aee978f176734abf56@100.42.177.205:26656,f894d87fc031c49e9e8ac8e86aec53237659e578@2001:41d0:a:2ee1::1:13756,39e1e9378427f3df60938e2a4e684f0421fcc2b9@65.109.83.40:30856,76f4b44562d26b75f2369c90ebc9f299857ea943@152.53.85.0:26656,aab8a9978e796a57c685370cc435775f71240d15@65.108.0.88:26656,b82f3cb589b730da922484a2a2c44b252bd3d5db@152.53.121.42:41656,79f26210777e84efb600bf776c32615a72675d9f@95.216.98.122:19656,b6faf48235ee4c32e04fcd317c71b17fd33cf237@62.171.130.196:26656,60bd886785eae1532a7ff016efb27dafaed11c9e@2001:41d0:a:2ade::1:13756,f84b41b95e828ee915aea19dd656cca7d39cf47b@37.17.244.207:33656,9ab814b8724a904f359eb83d2bd36847c2c651c5@65.109.57.180:26656,a54c8aeff87a8712e85c565135fe0d0d9d3daa2f@158.69.246.104:26656,9f6bb00d809be06b2603145e7f8f197780869dd8@78.46.58.241:60656,f5de13c155a191dddd84f6605e04d1c726539e62@152.53.125.167:26656,8b6322b556aa3937bf61807cadffb4c414ef8acb@162.19.235.100:26656,910cc6790cc6f97f5e1f9f049e81917bceba4870@144.76.70.103:19656,301a14ccbcf3fc15f9f90619e39743a8bf9eeafd@65.109.93.124:30856,c0f3abcd838aeb72f6c7a1c817407bfe021547f3@135.181.139.249:26656,5510914e1271930d8f21352e1d887c5e239f4041@144.76.106.228:26656,d81fed17aa10d838a11dd9ed87b7fc5a927d70d8@23.88.39.26:26656,943f57a87b8d28e3afa19ead8d05c4464bca5262@65.108.233.146:26656,1d7a1809b616ce2437a5978bebbfcefec4bc3aa0@193.34.212.80:60656,ffd827f323aed19442a1a9f3581875b6e1226272@65.21.221.110:63656,db686fcfdf0b4676d601d5beb11faee5ad96bff1@37.27.71.199:28656,795989371360f0b21e7037c09a2112804d5c48f4@138.201.62.254:26756,0eca81d4ef4b0edb2b6286be377fc028e3325894@93.115.25.41:26656,859485b13c2d8ab3888ffc11d1c506d78f681317@5.9.116.21:26756,d498f8b7be74de9f3c0abca0db1d4cc2d1b91ea3@184.107.167.202:26656,830e11da980d29cbcc0373bcfb7abb5bc959f935@157.180.6.152:26656
Download: addrbook.json
wget -O addrbook.json https://airchains.t.valoper.io/download/addrbook.json
mv addrbook.json $HOME/.junctiond/config
File size: 43.19 KB
Updated: 30 days ago
Download: snapshot.tar.lz4
How to process Airchains Varanasi Testnet snapshot
Install lz4 is required, install if not yet installed
sudo apt update && sudo apt install snapd -y && sudo snap install lz4
Download the snapshot
wget -O snapshot.tar.lz4 https://airchains.t.valoper.io/snapshot/snapshot.tar.lz4
Stop the node
sudo systemctl stop junctiond
Prepare to reset your node. This will erase your node database.
If you are running a validator, you HAVE TO backup your `priv_validator_key.json`.
cp $HOME/.junctiond/data/priv_validator_state.json $HOME/.junctiond/priv_validator_state.json
Verify `priv_validator_key.json` and the backup are equals
sleep 10 && cat $HOME/.junctiond/data/priv_validator_state.json && cat $HOME/.junctiond/priv_validator_state.json
Reset data of the node
junctiond tendermint unsafe-reset-all --home $HOME/.junctiond --keep-addr-book
Decompress the snapshot to your database location. Your database location under `.junctiond/data` or something like that, depending on the node implementation.
lz4 -c -d snapshot.tar.lz4 | tar -x -C $HOME/.junctiond
IMPORTANT: If you are running a validator node, be sure to restore the `priv_validator_state.json` file that you have backed up.
mv $HOME/.junctiond/priv_validator_state.json $HOME/.junctiond/data/priv_validator_state.json
Verify `priv_validator_key.json` was restored
cat $HOME/.junctiond/data/priv_validator_state.json
Restart the node
sudo systemctl restart junctiond
Remove the downloaded file to free-up disk space
rm -v snapshot.tar.lz4
Check log of the node
sudo journalctl -fu junctiond
ADVANCED ROUTE: (not recommended for Validator node) The above solution requires you to download the compressed file, uncompressed it and then delete the original file.
This requires extra storage space on your server.
You can run the following combo command to stream the snapshot into your database location.
For advanced users only:
sudo systemctl stop junctiond && cp $HOME/.junctiond/data/priv_validator_state.json $HOME/.junctiond/priv_validator_state.json.advanced_route.bak && junctiond tendermint unsafe-reset-all --home $HOME/.junctiond --keep-addr-book
curl -o - -L https://airchains.t.valoper.io/snapshot/snapshot.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.junctiond
restore `priv_validator_state.json` if needed, double check, carefulness is never redundant
Do not state-sync a validator node, instead state-sync a full-node and move data to validator node. Be sure backup and restore `priv_validator_key.json`
Our state-sync RPC server for Airchains Varanasi Testnet is
https://rpc1.airchains.t.valoper.io
#!/bin/bash
SNAP_RPC="https://rpc1.airchains.t.valoper.io"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 2000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.junctiond/config/config.toml
Consider adding 34 live-peers above to `persistent_peers` in `config.toml` and download `addrbook.json`
Stop the node
sudo systemctl stop junctiond
Reset data of the node
junctiond tendermint unsafe-reset-all --home $HOME/.junctiond --keep-addr-book
Execute the script
sh state_sync.sh
Restart the node
sudo systemctl restart junctiond