Sync & Endpoint
API, RPC and Peers:
API: https://sunrise-api.node39.top:443
RPC: https://sunrise-rpc.node39.top:443
gRPC: https://sunrise-grpc.node39.top:443
Peer: a87a406c31a3cc6a240c594277039011272ab67c@sunrise-peers.node39.top:21656
Live Peers:
Fetching live peers...
Snapshot Server ASIA:
time: 24 hours | db: goleveldb | pruning: 100/0/50 | indexer: null
sudo systemctl stop sunrised
cp $HOME/.sunrise/data/priv_validator_state.json $HOME/.sunrise/priv_validator_state.json.backup
sunrised tendermint unsafe-reset-all --home $HOME/.sunrise --keep-addr-book
SNAP_NAME=$(curl -s https://file2.node39.top/Mainnet/Sunrise/ | egrep -o 'snapshot-sunrise-[0-9]+\.tar\.lz4' | sort -V | tail -n 1)
wget -c https://file2.node39.top/Mainnet/Sunrise/${SNAP_NAME} -O - | lz4 -dc - | tar -xf - -C $HOME/.sunrise
mv $HOME/.sunrise/priv_validator_state.json.backup $HOME/.sunrise/data/priv_validator_state.json
sudo systemctl restart sunrised && sudo journalctl -u sunrised -fo cat
State sync:
sudo systemctl stop sunrised
cp $HOME/.sunrise/data/priv_validator_state.json $HOME/.sunrise/priv_validator_state.json.backup
sunrised comet unsafe-reset-all --home $HOME/.sunrise --keep-addr-book
SNAP_RPC="https://sunrise-rpc.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/.sunrise/config/config.toml
mv $HOME/.sunrise/priv_validator_state.json.backup $HOME/.sunrise/data/priv_validator_state.json
sudo systemctl restart sunrised && sudo journalctl -u sunrised -fo cat