WARNING: This will erase your node database. If you are already running validator, be sure you backed up your config/priv_validator_key.json and config/node_key.json prior to running unsafe-reset-all.
The state-sync configuration in ~/.secretd/config/app.toml is as follows:
# 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 =10
1. Set SNAP_RPC variable to a snapshot RPC
SNAP_RPC="http://rpc.testnet.secretsaturn.net"
Set the state-sync BLOCK_HEIGHT and fetch the TRUST_HASH from the snapshot RPC. The BLOCK_HEIGHT to sync is determined by finding the latest block that's a multiple of snapshot-interval.
WARNING: This will erase your node database. If you are already running validator, be sure you backed up your config/priv_validator_key.json and config/node_key.json prior to running unsafe-reset-all.
It is recommended to copy data/priv_validator_state.json to a backup and restore it after unsafe-reset-all to avoid potential double signing.