Sync & Endpoint
API, RPC and Peers:
API: https://daodiseo-api-testnet.node39.top
RPC: https://daodiseo-rpc-testnet.node39.top
gRPC: daodiseo-grpctestnet.node39.top:16090
Peer: b6451bcbc7a5afaad8a57aa74bafd99e07ca2f90@daodiseo-testnet-peers.node39.top:16656
Snapshot Server 3:
time: 24 hours | db: goleveldb | pruning: 100/0/50 | indexer: null
sudo systemctl stop achillesd
cp $HOME/.achilles/data/priv_validator_state.json $HOME/.achilles/priv_validator_state.json.backup
achillesd tendermint unsafe-reset-all --home $HOME/.achilles --keep-addr-book
SNAP_NAME=$(curl -s https://file3.node39.top/Testnet/Daodiseo/ | egrep -o 'snapshot-daodisei-[0-9]+\.tar\.lz4' | sort -V | tail -n 1)
wget -c https://file3.node39.top/Testnet/Daodiseo/${SNAP_NAME} -O - | lz4 -dc - | tar -xf - -C $HOME/.achilles
mv $HOME/.achilles/priv_validator_state.json.backup $HOME/.achilles/data/priv_validator_state.json
sudo systemctl restart achillesd && sudo journalctl -u achillesd -fo cat
State sync:
sudo systemctl stop achillesd
cp $HOME/.achilles/data/priv_validator_state.json $HOME/.achilles/priv_validator_state.json.backup
achillesd tendermint unsafe-reset-all --home $HOME/.achilles --keep-addr-book
SNAP_RPC="https://daodiseo-rpc-testnet.node39.top: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/.achilles/config/config.toml
mv $HOME/.achilles/priv_validator_state.json.backup $HOME/.achilles/data/priv_validator_state.json
sudo systemctl restart achillesd && sudo journalctl -u achillesd -fo cat