State Sync Info
Instructions ( Please Read This )
- Before using it, you can check the rpc url first whether it's down or notsudo systemctl stop routerd
routerd tendermint unsafe-reset-all --home $HOME/.routerd --keep-addr-book
STATE_SYNC_RPC="https://router-rpc.genznodes.dev:443"
LATEST_HEIGHT=$(curl -s $STATE_SYNC_RPC/block | jq -r .result.block.header.height)
SYNC_BLOCK_HEIGHT=$(($LATEST_HEIGHT - 2000))
SYNC_BLOCK_HASH=$(curl -s "$STATE_SYNC_RPC/block?height=$SYNC_BLOCK_HEIGHT" | jq -r .result.block_id.hash)
echo $LATEST_HEIGHT $SYNC_BLOCK_HEIGHT $SYNC_BLOCK_HASH
PEERS="[email protected]:3656"
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.routerd/config/config.toml
sed -i -e "s|^enable *=.*|enable = true|" $HOME/.routerd/config/config.toml
sed -i -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.routerd/config/config.toml
sed -i -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.routerd/config/config.toml
sed -i -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.routerd/config/config.toml
sudo systemctl restart routerd
journalctl -fu routerd -o cat
systemctl --user restart routerd
journalctl --user -fu routerd -o cat
++ Instructions
curl -o - -L https://snapshot-at-1.genznodes.dev/router/wasm_file.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.routerd
sed -i -e "s|^enable *=.*|enable = false|" $HOME/.routerd/config/config.toml
PEERS=""
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.routerd/config/config.toml
1. Post failed: ...: context deadline exceeded
error="post failed: Post "https://router-rpc.genznodes.dev:443": context deadline exceeded"