💡State Sync
Stop existing service and reset database.
sudo systemctl stop aurad
aurad tendermin unsafe-reset-all --home $HOME/.aura
Add peers.
PEER="[email protected]:40656,[email protected]:26656,[email protected]:26656,[email protected]:16656,[email protected]:26656,[email protected]:60756,[email protected]:41256"
sed -i.bak -e "s/^persistent_peers *=.*/persistent_peers = \"$PEER\"/" $HOME/.aura/config/config.toml
Fill variables with data for State Sync.
RPC="https://aura-rpc.stakeangle.com:443"
RECENT_HEIGHT=$(curl -s $RPC/block | jq -r .result.block.header.height)
TRUST_HEIGHT=$((RECENT_HEIGHT - 1000))
TRUST_HASH=$(curl -s "$RPC/block?height=$TRUST_HEIGHT" | jq -r .result.block_id.hash)
echo $RECENT_HEIGHT $TRUST_HEIGHT $TRUST_HASH
Add variable values to config.toml.
sed -i.bak -E "s|^(enable[[:space:]]+=[[:space:]]+).*$|\1true| ; \
s|^(rpc_servers[[:space:]]+=[[:space:]]+).*$|\1\"$RPC,$RPC\"| ; \
s|^(trust_height[[:space:]]+=[[:space:]]+).*$|\1$TRUST_HEIGHT| ; \
s|^(trust_hash[[:space:]]+=[[:space:]]+).*$|\1\"$TRUST_HASH\"|" $HOME/.aura/config/config.toml
Start service and check journal.
sudo systemctl restart aurad
sudo journalctl -u aurad -f -o cat
Last updated