Our State-Sync Server Setup
For your reference, the following are the state-sync related settings in our app.toml configuration file. Please note that this is provided for informational purposes only, and you are not required to replicate the same setup on your node.
# Prune Type pruning = "custom" # Prune Strategy pruning-keep-every = 2000 # State-Sync Snapshot Strategy snapshot-interval = 2000 snapshot-keep-recent = 5
Our state-sync RPC server for Bitsong is:
One line script
wget https://raw.githubusercontent.com/ProNodes11/NodeGuides/main/StateSync/bitsong-state-sync.sh && chmod +x bitsong-state-sync.sh && ./bitsong-state-sync.sh
Stop the node
sudo systemctl stop bitsongd
Reset the node
bitsongd tendermint unsafe-reset-all --keep-addr-book
Change config file
SNAP_RPC=https://bitsong-rpc.stakeme.io 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) echo $LATEST_HEIGHT $BLOCK_HEIGHT $TRUST_HASH sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \ s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$SNAP_RPC,$SNAP_RPC\"| ; \ s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$BLOCK_HEIGHT| ; \ s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"| ; \ s|^(seeds[[:space:]]+=[[:space:]]+).*$|\1\"\"|" $HOME/.bitsongd/config/config.toml
Start the node
sudo systemctl restart bitsongd
And check logs
sudo journalctl -fu bitsongd -o cat
If everything goes well, your node should start syncing within 10 minutes.
If you are experiencing difficulty connecting to the state-sync server, please check the status of our RPC node to rule out any downtimes.
In case you are able to connect, but encountering AppHash errors, ensure that you are using the most recent version of the chain node during state-sync.
If you continue to experience issues, please do not hesitate to reach out to us in our Telegram chat for further assistance. Keep in mind that occasional unavailability of state-sync is a possibility.