← Bitcoin Encyclopedia

Compact Block Relay

🌳 Advanced

💡 The Plain-English Definition

Compact block relay is a Bitcoin network optimisation (standardised as BIP152 — Bitcoin Improvement Proposal 152) that dramatically reduces the bandwidth needed to share new blocks between nodes, by sending short transaction identifiers instead of full transaction data.

🤔 But Why Though?

When a miner finds a new valid block, they need to share it with the rest of the network immediately. In the original protocol, this meant broadcasting the entire block — all the transaction data it contains, up to several megabytes. The insight behind compact block relay is simple: by the time a new block is found, most nodes already have the transactions it contains. Those transactions were sitting in the mempool (Bitcoin’s waiting room for unconfirmed transactions) on every node, waiting to be included in a block. So instead of sending full transaction data, the block announcement sends only short identifiers for each transaction — a few bytes each — and receiving nodes reconstruct the full block from transactions they already have. Only the few transactions a node didn’t already know about need to be fetched separately. A full block might be 1.5 megabytes; a compact block announcement of the same block is often 20–30 kilobytes — a reduction of 98% or more, with no change to security or protocol rules.

Faster block propagation means fewer orphan blocks (valid blocks found simultaneously by different miners that temporarily compete before one chain wins). Orphan blocks represent wasted mining effort and, in theory, slightly advantage miners with faster network connections. Compact block relay levels the playing field by making propagation fast for all well-connected nodes.

🌍 The Real-World Analogy

Imagine a newspaper distributed to thousands of offices every ten minutes. Old method: print and physically deliver the full newspaper. New method: send each office a table of contents with article codes — offices already received the wire reports throughout the day, so they reconstruct the full edition from codes, only requesting the few articles they missed. Compact block relay is that table of contents: a tiny summary enabling fast reconstruction.

⚡ So What?

Compact block relay is invisible infrastructure that makes the network faster and more robust without any change to the user experience. Its significance is in what it prevents: slower block propagation creates subtle centralisation pressures, giving advantages to miners and nodes with the fastest connections. By making propagation fast for everyone, compact block relay supports the decentralisation that makes Bitcoin secure.

Keep reading

Part of The Bitcoin Encyclopedia 167 terms, plain English, no jargon.