Sync & Endpoint
API, RPC and Peers:
API: https://kiichain-api-testnet.node39.top:443
RPC: https://kiichain-rpc-testnet.node39.top:443
gRPC: kiichain-testnet-grpc:62090
Peer: 89137ae052578557a6062557cc8c6cce6b08ab13@kiichain-testnet-peers.node39.top:62656
Snapshot Server 3:
time: 24 hours | db: goleveldb | pruning: 100/0/50 | indexer: null
Soon
State sync:
sudo systemctl stop kiichaind
cp $HOME/.kiichain/data/priv_validator_state.json $HOME/.kiichain/priv_validator_state.json.backup
kiichaind tendermint unsafe-reset-all --home $HOME/.kiichain --keep-addr-book
SNAP_RPC="https://rpc.dos.sentry.testnet.v3.kiivalidator.com:443"
LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height); \
BLOCK_HEIGHT=$((LATEST_HEIGHT - 1000)); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)
sed -i "/\[statesync\]/, /^enable =/ s/=.*/= true/;\
/^rpc_servers =/ s|=.*|= \"$SNAP_RPC,$SNAP_RPC\"|;\
/^trust_height =/ s/=.*/= $BLOCK_HEIGHT/;\
/^trust_hash =/ s/=.*/= \"$TRUST_HASH\"/" $HOME/.kiichain/config/config.toml
mv $HOME/.kiichain/priv_validator_state.json.backup $HOME/.kiichain/data/priv_validator_state.json
sudo systemctl restart kiichaind && sudo journalctl -u kiichaind -fo cat