Block Announcement
How a new block reaches peers quickly, typically by sending a compact summary and letting receivers rebuild it.
Basically
Bitcoin nodes share new blocks across the peer-to-peer network. Compact blocks save data by leaving out transactions the other node already has.
Key Takeaways
- Block announcement tells peers on the P2P network about a newly mined Bitcoin block. They then download and validate it so the chain tip can advance.
- The protocol has evolved through three generations: legacy inv-based relay, headers-first announcement (BIP 130), and compact block relay (BIP 152). Each generation reduced latency and bandwidth use.
- Fast block announcements support mining fairness and network security. Slow propagation raises stale block rates and gives well-connected miners a structural advantage over smaller operators.
What Is a Block Announcement?
A block announcement is a message from a Bitcoin node telling its peers that a new block is available. A miner that finds a valid proof of work produces a block that must reach every other node as quickly as possible. The announcement mechanism controls how peers learn about it, how much data they download, and how soon they can start validating it.
Block announcements sit at the heart of Bitcoin's consensus propagation. Nodes that have not heard about the latest block keep mining on the previous one, wasting hash power and risking an orphan block. Faster announcements make the network more secure and fair by helping every node learn about new blocks sooner.
How It Works
Bitcoin's block announcement protocol has gone through three major phases. Each phase addressed bottlenecks in the previous approach.
Legacy Inv-Based Relay
The original Bitcoin protocol used an inv (inventory) message with the block's hash to announce a received or mined block. Peers checked whether they had seen the hash and requested the full block data with a getdata message if they had not. The announcing node then transmitted the entire serialised block.
The approach was simple but wasteful. Nodes sent every transaction in the block even though most peers already held those transactions in their mempool. A 1 MB block meant roughly 1 MB of redundant data per peer.
Headers-First Announcement (BIP 130)
BIP 130, authored by Suhas Daftuar and implemented in Bitcoin Core v0.12.0 (2016), introduced the sendheaders message. Nodes that exchange this message during the handshake can announce new blocks by sending their block headers directly instead of hash-only inv messages.
The key improvement came from Bitcoin Core's headers-first sync, which requires a valid header chain before a node can process a block. The old inv flow forced a peer to make an extra getheaders round trip before requesting block data. Direct header announcements remove that round trip for simple chain-tip extensions.
BIP 130 also improved reorg handling. Nodes now send headers from the last fork point up to the new tip during a reorganisation, instead of announcing only the new tip hash, so peers can request all intermediate blocks immediately.
Compact Block Relay (BIP 152)
BIP 152, authored by Matt Corallo and shipped in Bitcoin Core v0.13.0 (August 2016), introduced compact block relay. Nodes send only the block header and a list of 6-byte short transaction IDs instead of every transaction in the block. Receiving nodes match those IDs against their mempool and reconstruct the full block locally.
Short IDs are computed using SipHash-2-4, a fast keyed hash function, with keys derived from a SHA-256 hash of the block header concatenated with a random nonce chosen by the sender. These keys make ID collisions unpredictable across different senders. Attackers therefore cannot craft transactions that collide with legitimate ones.
Receivers that lack transactions because they were not in their mempool send a getblocktxn request for those specific transactions. Senders reply with a blocktxn message containing only the missing ones. Nodes therefore avoid retransmitting the entire block.
High-Bandwidth vs. Low-Bandwidth Mode
BIP 152 defines two relay modes. Nodes use them to trade bandwidth for latency.
Nodes typically use high-bandwidth mode with only a few of their fastest peers and low-bandwidth mode with the rest. A sendcmpct message with the announce flag set to 1 activates high-bandwidth mode. Senders then push a cmpctblock message as soon as they verify the header's proof of work, sometimes before full block validation is complete.
Protocol Versions
BIP 152 defines two protocol versions. Version 1 uses transaction IDs (txids) for short ID computation, while version 2 uses witness transaction IDs (wtxids). SegWit blocks must include witness data to validate, so version 1 is effectively obsolete and modern nodes negotiate version 2 during their handshake.
Why It Matters
Block announcement speed directly affects several properties of the Bitcoin network. The speed of these announcements therefore affects the network as a whole.
The article Compact Block Relay: How BIP 152 Speeds Up Bitcoin Block Propagation examines compact block relay performance in technical detail. Its focus is the way BIP 152 speeds up Bitcoin block propagation.
Mining Operations
Mining pools rely on fast block announcements to minimise wasted work. Pools need to learn about a competitor's block and switch to building on the new tip as quickly as possible. Pools often maintain high-bandwidth compact block connections with other major pools and relay networks to shave milliseconds off propagation time.
Block Relay Networks
Specialised relay networks like the FIBRE (Fast Internet Bitcoin Relay Engine) were designed to optimise block announcements between miners further. These networks use techniques like forward error correction on top of compact blocks to achieve sub-second global propagation, reducing stale block risk to near zero.
Layer 2 and Spark
Layer 2 protocols such as Spark depend on timely block announcements for settlement finality. The propagation speed of a Spark user's unilateral exit transaction block across the Bitcoin base layer determines how quickly the exit is considered confirmed. Faster block propagation means more predictable confirmation times for on-chain settlement.
SPV and Light Clients
SPV clients and light clients use compact block filters, a separate mechanism from compact block relay, to stay synchronised. These clients still benefit from the headers-first announcement model introduced by BIP 130, which lets them track the chain tip efficiently without downloading full blocks.
Mempool Divergence
Compact block reconstruction depends on the receiver already holding most of a block's transactions in its mempool. Significant mempool divergence, such as during high congestion or when miners include non-standard transactions, forces the receiver to fall back to getblocktxn round trips, adding latency and partly negating the speed advantage. Reconstruction success rates dropped well below typical levels during late-2024 congestion events before recovering after minimum relay fee adjustments in Bitcoin Core.
Invalid Block Relay
High-bandwidth mode forwards a compact block after checking only the header's proof of work and without fully validating it, so a miner's block with a valid header but invalid transactions could still reach high-bandwidth peers. Receiving nodes catch the invalidity during full validation and discard the block, but some bandwidth is wasted. The intentional trade-off means the latency savings of skipping validation before relay outweigh the occasional cost of forwarding an invalid block.
Short ID Collisions
The 6-byte size of short IDs makes collisions theoretically possible. Identical short IDs for two transactions in a node's mempool leave the node unable to determine which one belongs in the block, so BIP 152 falls back to requesting the full transaction via getblocktxn. Collision probability is extremely low under normal conditions because the SipHash keys are randomised per sender and per block.
Eclipse Attacks
An eclipse attack gives an attacker control of all a victim's peer connections, letting them delay or suppress block announcements entirely. The victim node would not learn about new blocks and could accept double spends or mine on a stale chain. Defences include connecting to diverse peers, using multiple outbound connections, and monitoring for anomalous block arrival times.
The glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.