Research·Verification

What Your Node Checks While It Syncs

A syncing node downloads headers before blocks, and downloads them twice on purpose. It then replays every transaction in Bitcoin's history against its own rules, skipping only the signature checks in blocks the software was shipped believing in. The shortcuts are real, narrow, and each one is switchable.

Level
Intermediate
Reading
8 min
Published
2026-11-24
Reviewed
2026-11-24

“Syncing” sounds like downloading, and the download is the least interesting part. A node starting from nothing is re-deriving Bitcoin’s entire state from first principles: every transaction since 2009, checked against the rules that node holds, ending in a set of unspent outputs it computed rather than received.

What it skips, and what it must trust to skip it, is worth knowing precisely — because each shortcut is a line in the source code with a switch next to it.

What arrives first, and why twice?

Headers first, and twice when the node cannot yet tell whether a peer’s chain is real.

Headers are 80 bytes and contain the proof of work, so a node can establish the shape and weight of a chain before downloading any transaction data. Once it has a header chain it believes in, it fetches the blocks themselves in parallel from several peers, which is why sync saturates a connection rather than trickling.

The double download solves a problem with no obvious fix. A peer serves at most 2,000 headers per request, and a new node has no way to know whether the chain it is being offered carries real work until it has seen enough of it — but storing headers to find out is exactly what lets an attacker exhaust its memory with a cheap low-difficulty chain. Bitcoin Core’s answer is to download the headers once without keeping them, accumulating work as it goes and storing a single salted bit as a commitment for every N headers; only if the total work clears the node’s anti-denial-of-service threshold does it download them a second time, checking each against the commitments from the first pass before committing memory to it.

The threshold itself is a constant in the chain parameters, nMinimumChainWork, shipped with the release. It is not a consensus rule — it decides which chains are worth considering, not which are valid — and its presence is why a node cannot be led down an arbitrarily long fake history by the first peer it meets.

What does assumevalid actually skip?

Signature checks, in blocks buried under a hash the release was shipped with. Nothing else.

defaultAssumeValid is a block hash in the chain parameters — at the time of writing, a block around height 966,000. For blocks in the chain leading to it, the node does not re-run script verification. For everything else, and for every block after it, it does.

The list of what is still checked is longer than the list of what is not. Proof of work on every header. That every input spends an output that exists and has not already been spent. That no transaction creates more value than it consumes. That the coinbase claims no more than the subsidy plus fees. Block weight, timestamps, the difficulty schedule, every soft-fork rule at the height it applies. The node computes the unspent output set and the total supply itself, from the blocks, with no help from the setting.

So the thing being assumed is narrow: that the signatures in old blocks were valid, which thousands of nodes checked at the time and which anyone reviewing the release could have checked again. The payoff is most of the sync time, because elliptic-curve verification is where the CPU goes.

Setting -assumevalid=0 turns it off and checks every signature since the genesis block. It is slower by a large factor and it is the right thing to do once, if only to know what the number is.

What does assumeutxo trust?

A hash in the source code, temporarily, in exchange for a usable node in minutes instead of days.

Assumeutxo loads a serialised snapshot of the unspent output set at a specific height — mainnet currently ships hashes for snapshots at heights 840,000, 880,000 and 910,000 — and starts validating forward from there immediately. The node is usable at once. Meanwhile it keeps a second chainstate in the background and validates the history from genesis, the ordinary way, until the two meet.

What it trusts in the interval is precisely one thing: that the hardcoded hash_serialized matching the snapshot file corresponds to the real unspent output set at that height. That hash is in the release, reviewed like any other line, and a snapshot failing to match it is rejected. The snapshot file itself can come from anywhere — there is no canonical source, and a node that already has the chain can produce one with dumptxoutset — because the file is checked, not the sender.

Once the background validation reaches the snapshot height, the trust evaporates: the node has now derived that same state itself, and disagreement would be a loud failure rather than a silent one. Until then the node holds a strong assumption it is in the process of discharging, which is a different and better position than a light wallet’s permanent one.

Two practical notes from the documentation. Indexes do not benefit — they always build from genesis in order, so a node that needs a transaction index gains nothing until the background sync completes. And both chainstates exist on disk at once during the catch-up, each several gigabytes.

Does pruning check less?

No. A pruned node validates everything and then deletes what it no longer needs.

This is the most persistent misunderstanding about pruning. Setting -prune does not skip any part of the initial sync: every block is downloaded, every rule applied, the unspent output set built the same way. What changes is that once a block’s contents are folded into that set, the block file is discarded.

The cost is not in validation but in service. A pruned node cannot send old blocks to a peer that needs them, cannot rescan a wallet for history before its pruning point, and cannot serve the kind of index that reads arbitrary past transactions. It is a full validator that is no longer an archive.

The sizes make the trade concrete. Core’s own assumptions in the chain parameters are around 897 GB for the blocks and 14 GB for the chainstate. Pruning trades the first number for the second plus a configurable margin, and keeps every bit of the validation.

What does the finished node actually give you?

A state nobody told you, which is the only thing the whole exercise buys.

At the end of a sync the node holds an unspent output set it computed. Ask it the total supply and the number comes from summing that set, not from a publisher — which is the supply audit that no amount of reading can substitute for. Ask whether a transaction is confirmed and the answer is a rule check, not a report. Broadcast a transaction and it reaches the network without an intermediary deciding whether to forward it.

What changes practically is narrower than the rhetoric around full nodes suggests, and sharper. The node does not protect your coins; keys do that. It does not make payments cheaper or faster. What it removes is a class of question you would otherwise have to ask someone else, and with it the possibility of being told something false and having no way to tell.

Why does any of this take days?

Because the work is a replay of fifteen years of transactions, and the bottleneck moves as it runs.

Early blocks are tiny and fly past. From roughly 2017 onward each block carries thousands of inputs, each requiring a lookup in a growing unspent output set, and the limiting factor becomes random disk reads and the memory available to cache them. Raising -dbcache is the single most effective change for a machine with RAM to spare, because it keeps more of the set out of the disk’s way.

The signature checks that assumevalid skips would otherwise dominate CPU; after the assumed-valid point they return, which is why sync slows noticeably near the tip rather than finishing with a flourish.

Check it yourself

Watch which stage you are in rather than the percentage:

bitcoin-cli getblockchaininfo | grep -E 'blocks|headers|verificationprogress|pruned'

When headers is far ahead of blocks, the header sync is done and block download is the work remaining. If you are using a snapshot, the two chainstates are visible separately:

bitcoin-cli getchainstates

And to see what the shortcut was worth, start a second data directory with -assumevalid=0 and compare how long each takes to pass the same height. The difference is the cost of checking every signature in Bitcoin’s history yourself, which is a number worth having once.

What remains uncertain

Whether assumeutxo changes who runs a node. The argument for it is that a day-long sync deters people who would otherwise validate, and minutes does not. Whether the people deterred by the wait are the ones who would have run a node for years is unmeasured, and the snapshot heights are chosen by release schedule rather than by any study of user behaviour.

How many operators turn the defaults off. assumevalid and the snapshots are defaults, and defaults are what almost everyone runs. The security argument for both rests on the claim that enough people check independently; nobody knows how many do, and the number is not observable from the network.

Whether the storage trend stays survivable. The chain grows by roughly a block of up to four million weight units every ten minutes, and the unspent output set grows with usage patterns rather than with time. Pruning answers the first and not the second, and a chainstate that outgrows consumer memory would change the economics of running a node more than any protocol change currently discussed.

Sources

Nearby