THAMER
Sovereign Bitcoin Wallet

WALLET AI BITCOIN

Your Bitcoin Wallet. Your Keys. Your Engine.

Self-hosted Bitcoin software built for developers, applications, and AI agents.

CREATE WALLET

Bitcoin Block Relay Bandwidth and Latency: Mempool Overlap and Compact Blocks

permalink THAMER
#bitcoin-bandwidth#block-propagation#latency#mempool-overlap

Bitcoin block propagation is a race to inform independent nodes about newly found blocks. Faster propagation can reduce the time miners work on an outdated tip, while efficient transmission helps nodes operate with limited bandwidth. BIP152 compact block relay exploits the fact that many transactions in a new block were already broadcast before the block existed.

Why mempool overlap matters

Suppose a block includes 2,000 transactions and a receiving peer already knows 1,980 of them. A compact-block announcement can refer to most transactions using short identifiers rather than retransmitting full transaction bytes. The peer only needs to recover the missing transactions, plus any prefilled data.

This is an illustrative example, not a guarantee: compact blocks include headers, short IDs, and other overhead, and a receiver's actual savings depend on transaction sizes, overlap, and recovery requests.

Latency is not just bandwidth

Propagation time also depends on network round trips, peer connectivity, processing time, and the need to fetch missing transactions. High-bandwidth compact block mode can avoid a request round trip for the initial block announcement, but reconstruction failures can add round trips.

What causes low overlap?

Peers may apply different mempool policies, observe different transaction announcements, have different eviction histories, or receive a block containing transactions that were never widely relayed. A block can still be valid even if it contains transactions missing from a receiver's mempool.

Validation remains independent

A compact block is a transport representation, not a trusted summary. A full node reconstructs and validates the block, including its proof of work and transaction commitments. It must reject invalid blocks regardless of whether they arrive through compact relay or full-block download.

Operational interpretation

When diagnosing block relay, distinguish the number of missing transactions from the number of bytes transferred and the time to complete validation. Optimizing one measure does not guarantee improvement in the others. The protocol also needs safe fallback paths when compact reconstruction fails.

Primary references

BIP152 — Compact Block Relay: https://github.com/bitcoin/bips/blob/master/bip-0152.mediawiki
Bitcoin Core project: https://github.com/bitcoin/bitcoin

Questions & Answers

Explore all questions →

Latest from the Lab

THAMER illustrated developer portrait and signature

ABOUT THE DEVELOPER

Independent Software Developer specializing in Bitcoin Script, Golang, and AI Agents.

Software engineering · Independent research · Open-source projects