Skip to main content
Support us by delegating to "Staketab Validator"

State-Sync

Binary versionChain IDStaketab PeerSnapshot intervalSnapshot keep recent

Manual launch:

Stop the service:

sudo systemctl stop axelard.service

Reset the service:

axelard tendermint unsafe-reset-all --home $HOME/.axelar --keep-addr-book

Fetch the data for config.toml

Our State-Sync RPC server and PEER:

SNAP_RPC=https://axelar-rpc.staketab.org:443 STAKETAB_PEER=381d7961c9e44bc25e02d60b94c26763a42db045@65.21.91.99:16756 LATEST_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height) TRUST_HEIGHT=$((LATEST_HEIGHT - 1000)) TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$TRUST_HEIGHT" | jq -r .result.block_id.hash) sed -i -e 's|^persistent_peers *=.*|persistent_peers = "'$STAKETAB_PEER'"|' $HOME/.axelar/config/config.toml sed -i -e 's|^enable *=.*|enable = true|' $HOME/.axelar/config/config.toml sed -i -e 's|^rpc_servers *=.*|rpc_servers = "'$SNAP_RPC','$SNAP_RPC'"|' $HOME/.axelar/config/config.toml sed -i -e 's|^trust_height *=.*|trust_height = "'$TRUST_HEIGHT'"|' $HOME/.axelar/config/config.toml sed -i -e 's|^trust_hash *=.*|trust_hash = "'$TRUST_HASH'"|' $HOME/.axelar/config/config.toml

If you are unable to connect to the state sync server, then add the Staketab state-sync Peer. You can find it here.

Restart the service:

sudo systemctl restart axelard.service

Autolaunch State-Sync:

Specify HOST_PORT, BINARY, CONFIG_FOLDER, SERVICE_NAME and BLOCKS:

wget https://raw.githubusercontent.com/Staketab/cosmos-tools/main/state-sync/statesync.sh chmod +x statesync.sh ./statesync.sh https://axelar-rpc.staketab.org:443 axelard .axelar axelard 1000

Wait for the snapshot to finish downloading with the message: INF Snapshot restored...