deploy.sh state-sync for normal c8ntinuum installs; the hosted script and peer-list source are listed in Deployment Scripts. The script resolves trusted RPC endpoints and snapshot peers, patches the node config, resets local chain data, starts the node, waits for catch-up, then disables state sync again.
Prerequisites
- Managed install and node home created by
deploy.sh install --moniker <moniker> curl,jq, andsed- Network access to trusted CometBFT RPC endpoints and P2P snapshot peers
Quick start
Linux:Testnet
Install the node with the testnet chain ID first.deploy.sh state-sync reads the chain ID from the initialized home, so the chain selection happens during install, not as a state-sync flag. The peers file is shared across networks and selected by the installed chain ID.
Linux:
Custom endpoints
deploy.sh state-sync reads RPCs and snapshot peers from https://resources.c8ntinuum.io/peers.json, selected by chain ID. Override individual endpoints when you need private infrastructure:
The trust period is fixed at
168h0m0s, and snapshot peer addresses use P2P port 26656.
What the script does
- Detects the host OS and node home.
- Verifies required commands and the initialized node home.
- Reads the installed chain ID from
client.tomland resolves trusted RPCs and P2P snapshot peers. - Stops the Linux service, or checks for a running local process on macOS.
- Downloads and verifies
genesis.json. - Repairs chain ID settings in
app.toml,client.toml, andconfig.toml. - Fetches the latest height from RPC 1 and computes
trust_height = latest_height - lag. - Fetches the
trust_hashat the trust height. - Patches
[statesync],[mempool], and[p2p]. - Resets local data with
unsafe-reset-all --keep-addr-book. - Starts the node and waits until catch-up completes or the node reaches the trusted RPC tip.
- Sets
[statesync].enable = false. - Restarts the service on Linux or starts the managed background node on macOS.
Trust verification
Before confirming the run, verify the printedTrust Height and Trust Hash against an independent source. The script uses RPC 1 to compute the trust point, so an explorer or third RPC gives you a better safety check.
Look up the block at the printed trust height and compare its block hash to the printed trust hash. The comparison is case-insensitive. If the hashes do not match, do not continue.
Config written
deploy.sh state-sync writes these fields in config.toml:
Nodes that should provide snapshots to the network need snapshots enabled in
app.toml:
Logs and artifacts
Check local sync status: