Skip to content

Fast-sync a node

The node installer provides download_state for mainnet and testnet. It downloads a published state, stops Rusk, replaces the local state and chain database, and leaves the service stopped for operator verification.

Fast sync does not backfill archive indexes for blocks before the snapshot. Do not use a state snapshot alone to bootstrap an archive node that promises complete historical data.

The command detects the network from /opt/dusk/conf/rusk.toml:

Terminal window
download_state --list

Override detection only when necessary:

Terminal window
download_state --network testnet --list

Download the latest snapshot:

Terminal window
sudo download_state

Or select one of the listed block heights:

Terminal window
sudo download_state <BLOCK_HEIGHT>

The tool downloads to a unique temporary file and removes it afterward. A successful command still leaves Rusk stopped.

Terminal window
sudo systemctl start rusk
systemctl is-active rusk
ruskquery peers
ruskquery block-height

Check the height again after roughly 30 seconds. The node should continue syncing from the snapshot toward the current network tip.

If the service fails, inspect systemctl status rusk, /var/log/rusk.log, and /var/log/rusk_recovery.log before retrying. See Re-sync a node for the decision process.