⚠️ RBZL, the author of SiaSetup, has been banned by Sia's unreasonable project management due to our criticism of the Sia/Skynet projects.
We'd suggest that you read our criticism, which includes details on how the ban came about, and avoid the Sia and Skynet projects as a result. ⚠️

Sia Consensus Download

Why the first sync takes so long, and what a consensus bootstrap actually does.


What the consensus database is

A Sia node keeps its own copy of the blockchain's state in a file called consensus.db. Every block the node has verified — every transaction, every file contract, every contract revision and payout — is reflected in that database. It is what allows your wallet to know your balance without asking anyone, and what allows your renter or host to form contracts against the same history everyone else sees.

On a default installation the database lives inside the node's data directory: the consensus folder under ~/.sia on Linux and macOS, or under the Sia folder in your user's application data on Windows. It grows steadily as the chain does, and it is by far the largest thing a Sia node stores if you are not hosting.

Why the first sync is slow

When a fresh node starts, it downloads every block from its peers and verifies each one before moving on. Verification — not download speed — is usually the bottleneck: the node is checking signatures and rebuilding state on a single machine, and the chain is years long. On a spinning hard drive with a modest CPU this can take days; on an SSD it is considerably faster but still measured in hours.

Until that process finishes, the wallet reports a balance based on an incomplete view of the chain, and the renter and host modules stay effectively idle. This is the stage at which many newcomers conclude something is broken. Nothing is: the node is simply working through the backlog, and the progress indicator in the interface is the number to watch.

What a consensus bootstrap does

A bootstrap is nothing more than a copy of an already-synchronised consensus.db. You stop the node, drop the file into the consensus folder in place of the one that is there, and start the node again; it then only has to verify the blocks produced since that snapshot was taken rather than the entire history. The saving in time is large, which is why such snapshots have always circulated in the community.

The trade-off is trust. A downloaded database is a claim about the state of the chain that you did not verify yourself. A malformed or malicious file can, at minimum, waste your time by refusing to load, and a node started on a bad database will not agree with the network. Snapshots are also version-sensitive: a database written by a much newer or much older node may not be readable by the one you are running.

Doing it safely

If you decide to bootstrap, a few habits make it a low-risk operation. Take the snapshot from a source you already trust for software, not from whoever posts a link; keep your original consensus.db until the node has started cleanly and reported a sensible height, so you can always fall back to a normal sync; make sure the node is fully stopped before you swap files, because a running node holds the database open and will overwrite your change; and check the reported block height against a public explorer once the node is up.

It is also worth remembering that the impatience a bootstrap solves is temporary. A node only performs the full initial sync once, and on reasonably modern hardware — particularly with the database on an SSD — simply letting it run overnight is the option that requires no trust in anyone at all. If you are setting up a wallet for the first time, our wallet setup guide walks through the whole process, sync included.