Passer au contenu

Bitcoin accepté au paiement  |  Expédié depuis Laval, QC, Canada  |  Soutien expert depuis 2016

Headers-First Sync

Network & Protocol

Definition

Headers-First Sync is the initial-block-download strategy Bitcoin Core has used since version 0.10.0. Rather than walking the chain one full block at a time, a starting node first requests and validates the chain of compact 80-byte block headers. Once it knows the most-work header chain — the skeleton of the blockchain — it downloads the corresponding full blocks afterward, in parallel from many peers, then fully validates them in order. The design separates two questions that the old approach tangled together: which chain has the most work? and is every block in it valid?

Why headers come first

Each header commits to its predecessor's hash and carries a proof-of-work target, so a node can cheaply establish the shape and total accumulated work of the best chain before spending bandwidth on multi-megabyte block bodies. Verifying a header's proof-of-work takes a single hash; the entire header chain for hundreds of thousands of blocks fits in well under a hundred megabytes. This sidesteps a weakness of the older blocks-first approach, where a dishonest peer could feed a syncing node a long but invalid alternative chain and waste its bandwidth and CPU on data it would ultimately discard. With headers first, fabricating a competitive chain skeleton would require actually performing the proof-of-work — the one thing an attacker cannot fake cheaply. The header chain also encodes every difficulty adjustment, so the node can check that targets evolved according to the rules before touching a single transaction.

Performance characteristics

Because the full header chain is known in advance, block bodies can be fetched concurrently from all available peers instead of serially from one — each peer serves a different range, and a slow or stalling peer is simply routed around. This sharply improves initial-block-download throughput and removes the single-peer bottleneck that made early syncs fragile. Validation still happens strictly in order, since each block's transactions must be checked against the UTXO set as it stood at that height, but download and validation pipeline neatly. For anyone bringing up a sovereign node on modest hardware, this is why the first minutes of sync show the header count racing ahead while blocks follow behind.

Foundation for lighter clients

Headers-first thinking underpins how lightweight clients operate too: they may keep only the header chain and rely on filters or proofs to learn which full blocks they actually need, trusting proof-of-work to anchor everything else. The 80-byte header is Bitcoin's minimal unit of verifiable truth — small enough for anything to store, expensive enough for no one to forge.

Watching it happen on your own node

Bring up a fresh node and the two phases are plainly visible: the log and interface race through header counts first, then block download begins climbing behind it, and the node can already report the best chain's height and total work while its block progress sits far lower. This phase structure also explains a common newcomer surprise — the node "knows" the chain tip long before it can verify your balance, because knowing which chain has the most work is cheap while validating every transaction in it is the expensive, honest work that follows. Nothing about headers-first weakens validation: every block is still fully checked. It only reorders the download so that bandwidth is spent exclusively on the chain that proof-of-work already vouches for. On a home connection, that reordering is the difference between a sync measured in days and one measured in hours.

For how light clients then identify relevant blocks without downloading everything, see Compact Block Filters (BIP158). For how new blocks propagate efficiently once a node is synced, see Compact Block Relay (BIP152).

See current chain height in the live network vitals.

In Simple Terms

Headers-First Sync is the initial-block-download strategy Bitcoin Core has used since version 0.10.0. Rather than walking the chain one full block at a time, a…

Explore the Full Glossary

Browse all Bitcoin mining terms from A to Z. Whether you are a beginner or expert, deepen your understanding of the mining ecosystem.

Glossaire du minage

ASIC Miner Database

Compare 500+ miners with real-time profitability data, home mining scores, and detailed specs.

Comparer les mineurs