MASTERING-BITCOIN · Interactive Practice | Unit 11 · Video 2
| Concept | Value / Formula | Meaning |
|---|---|---|
| Short transaction ID | What BIP 152 sends instead of full tx | |
| Bandwidth efficiency | Typical savings when mempools agree | |
| Block size on wire | Block stays same on disk; only relay shrinks | |
| Block hash (low-bw mode) | Announced first; receiver requests block | |
| High-bandwidth peers | Number of peers pushed compact blocks immediately | |
| Cost to fake PoW header | $\sim $150{,}000$ | Why pushing on header-only PoW is safe |
| Win probability bias | Big miners win own blocks instantly |
BIP 152 replaces each full transaction with a 6-byte short ID. How much bandwidth does that actually save? Adjust the parameters below to see how block size, average transaction size, and mempool match rate combine to determine the wire cost of a block announcement.
⚙ interactive visualization — coming to this page format soon
Notice: Even when the mempool match rate drops, compact blocks remain dramatically smaller. The 6-byte short IDs scale linearly with transaction count, while the redundancy of re-sending full transactions is eliminated. What happens when match rate falls below 90%? Why is the bandwidth saving still meaningful?
A miner's chance of winning a block-race depends on two things: their share of global hashpower, and how fast their block reaches the rest of the network. Large miners always extend their own tip instantly. Small miners must rely on propagation. Use the sliders to see how this asymmetry plays out.
⚙ interactive visualization — coming to this page format soon
Reflect: Set your hashpower to 1% and slide propagation reach down toward 0. Then set hashpower to 30% and do the same. Whose win probability collapses faster? This is exactly why shaving milliseconds off block relay is a decentralization issue, not just a performance issue.
Bitcoin's relay protocols sit at different points on a spectrum. The original (pre-BIP152) relay is slow but fully trustless. Compact block relay is fast and still trustless. FIBRE is fastest, but accepts centralization. Plot them.
⚙ interactive visualization — coming to this page format soon
Notice: Compact Block Relay is the rare optimization that improves both axes versus the original protocol. FIBRE pushes speed further only by giving up the trustless property — its datacenters and pre-validation forwarding require accountable, centralized peers.
Question 1
A block contains 2,000 transactions. Under BIP 152 compact block relay (assuming the receiver already has every transaction in its mempool), how many bytes of short transaction IDs must be sent?
✅ Correct! 6 bytes per transaction × 2,000 transactions = 12,000 bytes (~12 KB) — a massive reduction from a ~1 MB full block.
❌ Not quite. The short ID is 6 bytes per transaction, so multiply by the number of transactions.
Solution:
BIP 152 sends one 6-byte short ID per transaction:
Plus the full coinbase transaction (unique to this block, not in any mempool). For a ~1 MB block, this is roughly 97–99% bandwidth savings.
Question 2
True or False: Compact block relay (BIP 152) reduces the size of a block as stored in the blockchain on disk.
✅ Correct! Compact blocks shrink transmission, not the blocks themselves. The on-disk block is unchanged.
❌ Not quite. This is a common misconception. Re-read the distinction between relay and storage.
Solution:
Compact block relay is a relay optimization, not a blockchain optimization. The block stored on disk and in the chain is exactly the same size. Only the wire format between peers that already share mempool state is compressed.
A brand-new node syncing from scratch still has to download every full transaction — it has no mempool to match short IDs against.
Question 3
In Bitcoin Core's high-bandwidth mode for compact block relay, a peer pushes the compact block immediately after only checking the proof-of-work in the block header — without fully validating the block. Why is this considered safe?
✅ Correct! The PoW header acts as an economic filter — the attack cost vastly exceeds any conceivable benefit from slowing relay.
❌ Not quite. Think about what's expensive to fake at the header level, even without checking the full block.
Solution:
A valid PoW header is economically expensive to forge — roughly $150,000 in hashpower. No rational attacker would spend that much just to nudge relay latency. The PoW check is a cheap economic filter against spam.
Note the other options are wrong:
Question 4
A miner controls 1% of global hashpower. Propagation across the network is slow, so when this miner finds a block, it reaches only 40% of the rest of the network before a competing block does. Using the simplified model where is hashpower share and is propagation reach, what is this miner's probability of winning the next block?
Compare that to a miner with 30% hashpower under the same propagation conditions. Which statement is most accurate?
✅ Correct! Large miners always extend their own tip instantly. Small miners depend on the network. Slow propagation systematically favors centralization.
❌ Not quite. The arithmetic is right in several options. Focus on why propagation speed is asymmetric — who has zero-delay extension on their own blocks?
Solution:
Compute both:
The numbers may look like they favor the small miner — until you realize:
If reach drops to 0 (terrible propagation), the small miner's win rate collapses to 1% while the large miner still keeps 30%. Slow propagation systematically favors the large miner — which is the whole reason fast block relay is a decentralization concern.
Solved: 0 / 4