---
title: "Headers-First Synchronization — definition | Nuri Glossary"
description: "Downloading headers first, then blocks in parallel, so a node knows the real chain before filling it in."
lang: "en"
type: "glossary-term"
canonical: "https://nuri.com/glossary/headers-first-sync"
---

# Headers-First Synchronization

Downloading headers first, then blocks in parallel, so a node knows the real chain before filling it in.

## Basically

Your Bitcoin node downloads a small summary of every block first. It then downloads the full blocks from several other nodes at the same time.

## Key Takeaways

- Headers-first synchronisation downloads all 80-byte block headers before full blocks. Your node can identify the heaviest chain before using bandwidth on block data.
- After verifying the headers, your node downloads full blocks in parallel from multiple peers. This replaces the older sequential, single-peer approach and greatly reduces initial block download time.
- Assumevalid skips signature validation for historical blocks. Together with headers-first sync, it makes setting up a new node practical even as the blockchain grows past 600 GB.

## What Is Headers-First Synchronization?

Bitcoin Core uses headers-first synchronisation to download and verify the blockchain more efficiently during initial block download (IBD). Your node first retrieves all block headers, each only 80 bytes, verifies their proof-of-work and builds the full chain structure. It then fetches full blocks in parallel from multiple peers instead of downloading complete blocks one at a time from a single peer.
Pieter Wuille introduced this approach in Bitcoin Core PR #4468, and it shipped in Bitcoin Core 0.10.0 in February 2015. It replaced the original 'blocks-first' method used since Bitcoin's early days. The change solved several serious security and performance problems that made syncing a new node slow and potentially dangerous.

## How the Original Blocks-First Method Worked

Bitcoin Core used a sequential approach called blocks-first synchronisation before headers-first sync. Its limitations explain why the headers-first method was necessary.

## Problems with Blocks-First

Blocks-first used a sequential, single-peer approach. It had several serious drawbacks:

## How Headers-First Sync Works

Headers-first synchronisation splits the download process into two distinct stages. Each stage solves different problems.

## Stage 1: Header Download

Your node sends getheaders messages to its peers. Each response contains up to 2,000 block headers. Every header is exactly 80 bytes, so a single response carries at most 160 KB of data.
Each header consists of six fields. These fields let your node check and connect the headers.
Your node validates headers as they arrive by checking proof-of-work, verifying timestamps and confirming difficulty adjustments. It builds a tree of all known chains and identifies the one with the most accumulated work. At approximately 850,000 blocks, the entire header chain totals roughly 68 MB, a tiny fraction of the 600+ GB full blockchain.

## Stage 2: Parallel Block Download

Your node requests full blocks from all available outbound peers simultaneously once the best header chain is established. Key parameters govern this process:
Blocks can arrive and be written to disk in any order. Your node only needs to validate them in order and does not need to wait for sequential delivery. This parallelism turns a former single-threaded bottleneck into a process limited primarily by your node's total available bandwidth.

## Security Benefits

Headers-first sync provides several security advantages over the original method. These advantages come from its different download process.

## BIP 130: Direct Header Announcements

BIP 130 extended the headers-first model to new block announcements during normal operation. Its sendheaders message signals that a node prefers to receive new blocks directly as headers rather than as inv messages, eliminating a round trip for each new block and improving block propagation speed across the network. BIP 130 was deployed in Bitcoin Core 0.12.0.

## The Assumevalid Optimization

Headers-first sync solved the download problem, but full validation remained time-consuming. Every historical block required cryptographic signature verification for every transaction. Bitcoin Core 0.14.0 introduced the assumevalid optimisation (PR #9484 by Gregory Maxwell) in 2017 as a complement to headers-first sync.
Assumevalid lets your node skip script and signature validation for blocks that are ancestors of a known-good block hash and are buried under at least two weeks of additional proof-of-work. All other validation still occurs: proof-of-work checks, block structure, transaction format and UTXO set updates. Each Bitcoin Core release updates the default hash.
Testing showed that assumevalid reduced initial sync times from over 6 hours to under 3 hours. Combined with headers-first sync, Bitcoin Core 0.14.0 completed IBD approximately 5.7 times faster than version 0.13.2. You can disable the optimisation with -assumevalid=0 if you want to verify every signature yourself.

## New Node Bootstrapping

The primary use case for headers-first sync is bringing a new Bitcoin node online. Without it, syncing the full blockchain from genesis would take days or even weeks. Headers-first sync with assumevalid lets a new node become fully operational in hours, making it practical for individuals and businesses to run their own full nodes; see the assumeUTXO fast sync deep dive for more on sync optimisation strategies.

## Node Recovery

A node coming back online after an extended period uses headers-first sync to catch up with missed blocks efficiently. It downloads new headers first and identifies the current best chain. It then fetches only the blocks it lacks in parallel.

## Chain Selection

Nodes use headers-first sync to resolve competing chain tips during chain reorganisations. By downloading and comparing headers before committing to full block downloads, they can quickly identify and switch to the heaviest valid chain without wasting bandwidth on blocks from shorter forks.

## Header Flooding

A malicious peer could attempt to send large numbers of low-difficulty headers in an attack, although headers are small. Bitcoin Core mitigates this by requiring headers to meet difficulty targets before storing them, so header flooding requires real proof-of-work expenditure.

## Network Partitioning

An attacker who controls all of your node's connections, known as an eclipse attack, could present a fabricated header chain. Your node would believe it had found the best chain and download blocks accordingly. Defences include connecting to diverse peers, using manual peer additions and running over Tor for network-level anonymity.

## Storage and Bandwidth Requirements

Headers-first sync reduces time but not total data, so your node still downloads every block in the chain. A pruned node configuration can discard old block data after validation if you have limited storage, retaining only the UTXO set and recent blocks while still benefiting from headers-first sync during IBD.

## Ongoing Evolution

Headers-first sync was one step in a series of IBD optimisations. More recent developments include assumeUTXO, which lets a node load a snapshot of the UTXO set and begin validating new blocks immediately while verifying historical blocks in the background. The Bitcoin node implementation comparison shows how different node implementations handle synchronisation.
Nuri provides this glossary entry for information only, not as financial or investment advice. Always do your own research before using any protocol or technology.
Part of the [Nuri glossary](https://nuri.com/glossary), which defines 1876 Bitcoin, Lightning, wallet, stablecoin and payment terms.
