Snapshot Active Peers Seed State Sync Genesis & Addrbook
Copy Block Height: 2452528
Size: 200.55 GB
WASM: No
Indexer: null
Pruning: 100/0/10
File Name: latest.tar.lz4
Time: Fri Jul 12 02:44:59 UTC 2024
URL: https://krews.xyz/snapshots/initia/latest.tar.lz4
Copy sudo systemctl stop initiad
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup
rm -rf $HOME/.initia/data
curl https://krews.xyz/snapshots/initia/latest.tar.lz4 | lz4 -dc - | tar -xf - -C $HOME/.initia
mv $HOME/.initia/priv_validator_state.json.backup $HOME/.initia/data/priv_validator_state.json
sudo systemctl restart initiad && sudo journalctl -u initiad -f -o cat
Copy PEERS="91a45eb41d491e432abb9497bd0a3163103edca1@185.230.138.85:14656,0ac5727d219ee09a12cf3e2b61a25ae51bcbca70@49.12.174.227:26656,8a04fef8533625c51b1c11d3aa5d71e8978418dd@35.240.232.144:26656,3c1092650aac327aa3ff1f33efb14286af0c630a@37.27.124.51:44656,167a941a6c5a8f3b8a89128d09fb4dd85676cd37@37.27.115.100:26670"
sed -i 's|^persistent_peers *=.*|persistent_peers = "'$PEERS'"|' $HOME/.initia/config/config.toml
25ed2cb891b05bd5a28725cd19df601360b7cfdb@initia-seed.krews.xyz:443
Copy sudo systemctl stop initiad
SNAP_RPC="https://initia-rpc.krews.xyz:443"
cp $HOME/.initia/data/priv_validator_state.json $HOME/.initia/priv_validator_state.json.backup
initiad tendermint unsafe-reset-all --home ~/.initia/ --keep-addr-book
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)
echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_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\"|" ~/.initia/config/config.toml
more ~/.initia/config/config.toml | grep 'rpc_servers'
more ~/.initia/config/config.toml | grep 'trust_height'
more ~/.initia/config/config.toml | grep 'trust_hash'
sudo mv $HOME/.initia/priv_validator_state.json.backup $HOME/.initia/data/priv_validator_state.json
sudo systemctl restart initiad && journalctl -u initiad -f -o cat
Copy curl -Ls https://krews.xyz/snapshots/data/initia/genesis.json > $HOME/.initia/config/genesis.json
curl -Ls https://krews.xyz/snapshots/data/initia/addrbook.json > $HOME/.initia/config/addrbook.json