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 sided
sided tendermint unsafe-reset-all --home $HOME/.side --keep-addr-book
STATE_SYNC_RPC="https://testnet-side-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]:4656"
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.side/config/config.toml
sed -i -e "s|^enable *=.*|enable = true|" $HOME/.side/config/config.toml
sed -i -e "s|^rpc_servers *=.*|rpc_servers = \"$STATE_SYNC_RPC,$STATE_SYNC_RPC\"|" \
$HOME/.side/config/config.toml
sed -i -e "s|^trust_height *=.*|trust_height = $SYNC_BLOCK_HEIGHT|" \
$HOME/.side/config/config.toml
sed -i -e "s|^trust_hash *=.*|trust_hash = \"$SYNC_BLOCK_HASH\"|" \
$HOME/.side/config/config.toml
sudo systemctl restart sided
journalctl -fu sided -o cat
systemctl --user restart sided
journalctl --user -fu sided -o cat
++ Instructions
curl -o - -L https://snapshot-de-1.genznodes.dev/side/wasm_file.tar.lz4 | lz4 -c -d - | tar -x -C $HOME/.side
sed -i -e "s|^enable *=.*|enable = false|" $HOME/.side/config/config.toml
PEERS=""
sed -i -e "s/^persistent_peers *=.*/persistent_peers = \"$PEERS\"/" $HOME/.side/config/config.toml
1. Post failed: ...: context deadline exceeded
error="post failed: Post "https://testnet-side-rpc.genznodes.dev:443": context deadline exceeded"