Testnet State Sync
# snapshot-interval specifies the block interval at which local state sync snapshots are
# taken (0 to disable). Must be a multiple of pruning-keep-every.
snapshot-interval = 2000
# snapshot-keep-recent specifies the number of recent snapshots to keep and serve (0 to keep all).
snapshot-keep-recent = 101. Set SNAP_RPC variable to a snapshot RPC
SNAP_RPC variable to a snapshot RPCSNAP_RPC="http://rpc.testnet.secretsaturn.net"BLOCK_HEIGHT=$(curl -s $SNAP_RPC/block | jq -r .result.block.header.height | awk '{print $1 - ($1 % 2000)}'); \
TRUST_HASH=$(curl -s "$SNAP_RPC/block?height=$BLOCK_HEIGHT" | jq -r .result.block_id.hash)2. Check variables to ensure they have been set
echo $BLOCK_HEIGHT $TRUST_HASH
# output should be something similar to:
# 3506000 FCB54D74A4A33F8C1CC18A7240D76D87CB192A89C17837C4DB6C6140612DDFEB3. Set the required variables in ~/.secretd/config/config.toml
4. Stop the node and reset the node database
5. Restart node and check logs
Last updated
Was this helpful?