The Compact Blocks Innovation: Overview of BIP 152
The Compact Blocks Innovation: Overview of BIP 152
In the history of Bitcoin, one of the biggest "Bottlenecks" was the time it took for a block to travel from one side of the world to the other. If a 1MB block took 10 seconds to travel, a miner in China might not hear about a block found in America fast enough, leading to "Forks." To solve this, BIP 152 (Compact Blocks) was introduced.
For the Sovereign Architect, Compact Blocks are the "Telepathy" of the network. It is the proof that "Data doesn't have to be repeated if it is already known."
Analyzing the Telepathy: The Concept
When a miner finds a block, they are usually picking transactions that are already in your mempool (Chapter 4). Why should they send you 1MB of data when you already have 99% of it?
Instead of sending the whole block, the Diplomat sends a "Sketch" (the CMPCTBLOCK message).
-
The Header: 80 bytes (The proof).
-
The Short IDs: 6-byte "Fingerprints" for every transaction in the block.
-
The Pre-filled Transactions: Any transactions the miner included that were not in the general mempool (like the Coinbase reward).
Explaining the Telepathy: The Meaning of the Sketch
-
"The Fingerprint" (Short ID): Instead of sending the full 32-byte hash of a transaction, the node sends a tiny 6-byte summary. It's like saying "The guy in the red hat" instead of "John Jacob Smith, born 1985, 5'10, Brown Eyes." It is the Compression of the Sovereign.
-
"The Mempool Match": Your node receives the sketch, looks at its mempool, and says: "I know exactly which transactions these fingerprints are referring to." It assembles the block in its own RAM using its own data. It is the Intelligence of the Machine.
-
"The 10KB Block": Using this method, a 1MB block can be transmitted using only about 10KB of data. That is a 100x improvement in speed! It is the Velocity of the Core.
-
"The High-Bandwidth Mode": Some peers are so trusted that they don't even wait for you to ask for an
inv. They just "Push" the compact block sketch the moment they hear it. This is the Reflex of the Network.
The Sovereignty of the Sketch
Compact Blocks allow the Bitcoin network to stay "Tighter" and more "Synchronized." As a Sovereign Architect, you know that "Knowledge is Power." By using data you already have to verify new history, you are protecting your bandwidth and speeding up the entire global consensus. You are the "Master of the Sketch."
TeachMeBitcoin is an ad-free, open-source educational repository curated by a passionate team of Bitcoin researchers and educators for public benefit. If you found our articles helpful, please consider supporting our hosting and ongoing content updates with a clean donation: