Skip to main content
£0.00 0

Basket

No products in the basket.

ASIC mining articles and advice

BIP 152 Compact Block Relay: Why Fast Propagation Matters to Miners

BIP 152 compact block relay explained for miners: learn short transaction IDs, reconstruction, missing-transaction requests and propagation risk.

BIP 152 compact block relay guide cover

BIP 152 compact block relay explained for miners: learn short transaction IDs, reconstruction, missing-transaction requests and propagation risk.

TL;DR

Before compact blocks, a peer commonly downloaded every transaction in a newly announced block even when most were already in its mempool. Peers negotiate compact relay with sendcmpct. The sender derives six-byte short IDs from transaction identifiers using keys based on the block header and a nonce. If every short ID maps uniquely, the receiver rebuilds the ordered block immediately.

BIP 152 compact block relay in simple English

BIP 152 compact block relay: A miner that finds a block begins a race to have valid peers and competing miners accept it.

Simple example

A node operator is checking BIP 152 compact block relay. But it cannot compensate for an invalid template, poor peering, overloaded validation hardware or a pool that withholds the candidate before broadcast.

Key terms in plain English

BIP:
Bitcoin Improvement Proposal: a document that suggests or explains a change to Bitcoin. A BIP number does not mean the idea is active.
Bitcoin Core:
Widely used Bitcoin software. It can check blocks and transactions and provide wallet, network and operator tools.
Consensus:
The shared rules that Bitcoin or another network uses to decide whether blocks and transactions are valid.
Node:
A computer running network software that checks data and talks to other computers on the network.
ASIC:
A computer built to do one specialised job. A mining ASIC is designed for a particular proof-of-work algorithm.

Why compact relay was proposed

Before compact blocks, a peer commonly downloaded every transaction in a newly announced block even when most were already in its mempool. That duplicated bandwidth and could delay validation through congestion and buffer bloat. BIP 152 sends a block header, short transaction identifiers and selected full transactions, allowing the receiver to reconstruct the candidate from data it already holds.

Start with the validating node, because the ASIC only hashes the candidate header it receives. Record the node release and the pool component that assembled the block. If those facts are unknown, the operator cannot show which rules were actually applied before electricity was committed to the work.

High-bandwidth and low-bandwidth modes

Peers negotiate compact relay with sendcmpct. In high-bandwidth mode, selected peers can announce a compact block promptly, potentially before completing every validation step. At the same time, low-bandwidth mode retains an inventory or headers-first announcement before the receiver requests compact form. A node should select only a small set of suitable high-bandwidth peers and continue full validation regardless of relay mode.

Treat status dashboards as observations, not as the source of truth. Compare them with an independently operated node and retain the raw deployment or template response. Period boundaries, chain reorganisations and cached pool pages can otherwise make a correct-looking percentage describe the wrong state.

Short transaction identifiers

The sender derives six-byte short IDs from transaction identifiers using keys based on the block header and a nonce. These IDs save space but are not durable transaction identities and collisions are possible. The receiver maps them against its mempool and recently seen transactions. Version two uses witness transaction IDs, aligning reconstruction with SegWit data and avoiding ambiguity around malleated witness forms.

BIP 152 compact block relay technical diagram
Short transaction identifiers: a practical view of the validation, signalling and mining boundary.

Build the failure response before the boundary arrives. Define which rejection messages trigger an alert, who can pause a template source and how failover is prevented from returning miners to the same faulty validation stack. A second hostname is not independent when both endpoints share one node.

Reconstruction and missing transactions

If every short ID maps uniquely, the receiver rebuilds the ordered block immediately. Missing or ambiguous positions are requested with getblocktxn and returned in blocktxn. If reconstruction fails or the response is unsuitable, the node can request the full block. Operators should monitor fallback frequency because divergent mempools, packet loss or implementation faults can erase the intended latency and bandwidth gains.

Separate readiness, signalling and enforcement in the operating log. Readiness is a claim about software and process, signalling is data carried by blocks, and enforcement is a validation result. Combining them into a single supported or unsupported label hides the point at which revenue is actually at risk.

Why miners care about propagation

A miner that finds a block begins a race to have valid peers and competing miners accept it. Slower propagation increases the window in which another valid tip can emerge, raising stale-block risk. Compact relay can reduce transfer time. But it cannot compensate for an invalid template, poor peering, overloaded validation hardware or a pool that withholds the candidate before broadcast.

Map responsibility across the full path: validating node, template server, pool protocol, proxy, firmware and ASIC. For each layer, state what it can alter and what it merely relays. This prevents a version-bit setting in firmware from being mistaken for complete consensus-rule support. Relate that responsibility map to the pool and job-control boundary in our Stratum V2 guide.

Pre-validation relay and trust boundaries

High-bandwidth compact blocks may be forwarded before full validation to reduce latency. But nodes still validate proof of work, header linkage, transactions and consensus rules before accepting the block. A malicious peer can consume reconstruction effort or send inconsistent data. Use diverse peers, resource limits and current Bitcoin Core protections rather than treating a low-latency connection as trusted.

Test the primary and failover paths with the same checks. Compare chain tip, chainwork, deployment state, required rules and template age, then save the result with a timestamp. The process should be repeatable by another operator without relying on an undocumented pool conversation.

Operator verification checklist

Confirm compact-block negotiation with intended peers, record reconstruction and fallback metrics, compare block arrival times across independent links and retain enough CPU and memory for prompt validation. A pool should test failover during full mempool divergence and network congestion. Separate the timestamp when a candidate reaches the node from when it is fully validated, announced and observed by external peers.

Turn the conclusion into a business decision. State which chain and settlement venues the operation intends to serve, the maximum acceptable stale-block exposure and the point at which mining pauses. This connects protocol evidence to electricity cost, pool revenue and payout finality.

Operator decision record

A concise decision record for BIP 152 compact block relay should name the source documents, their dates, the node release tested, the responsible pool or template provider and the exact trigger for action. Include screenshots or machine-readable output for the deployment state. But keep the raw node response as the stronger evidence.

State whether a change affects policy, block construction or consensus validity, because those layers have different failure costs.

Run the check on every production and failover path. Confirm that monitoring alerts on stale templates, unexpected chain tips, rejected proposals and a rise in stale shares. Keep rollback instructions for node and pool configuration. But do not roll back across an active consensus boundary without understanding the rules the older release enforces.

If the evidence conflicts, pause the affected path and investigate before committing more electricity to uncertain work.

For related background, read our plain-English BIP-110 guide and technical BIP-110 review. Those articles use a modern proposal to show why signalling, activation, template construction and accepted chain history must be examined separately.

Conclusion

Bip 152 compact block relay is best understood as a defined interaction between validating software, mining infrastructure and economic acceptance. The safest operator does not infer consensus from a dashboard percentage or a pool slogan. They verify the rule source, the activation boundary, the template fields and the chain their payouts ultimately settle on.

That discipline reduces the chance of hashing an invalid or commercially unwanted block.

Frequently asked questions

What is the main point of BIP 152 compact block relay?

BIP 152 compact block relay: A miner that finds a block begins a race to have valid peers and competing miners accept it.

For BIP 152 compact block relay, why compact relay was proposed?

Before compact blocks, a peer commonly downloaded every transaction in a newly announced block even when most were already in its mempool.

For BIP 152 compact block relay, what should a beginner know about high-bandwidth and low-bandwidth modes?

Peers negotiate compact relay with sendcmpct. In high-bandwidth mode, selected peers can announce a compact block promptly, potentially before completing every validation step.

For BIP 152 compact block relay, what should a beginner know about short transaction identifiers?

The sender derives six-byte short IDs from transaction identifiers using keys based on the block header and a nonce.

Primary sources

Primary specifications are living technical records. Check their current status and changelog before using this article for a production activation decision.

ASIC MINER PICKS

Recommended ASIC Mining Hardware

Compare three of our highest ranked ASIC miners currently available, with live product details and pricing.
Browse all ASIC miners
MORE MINING ADVICE

More ASIC Mining Articles

Read practical advice about choosing hardware, calculating electricity costs, setting up miners, hosting and maintenance.
MINER COMMUNITY

Join the ASIC Mining Discussion

Ask a question or share what has worked for you. Your experience may help another miner make a better decision.

Members can read and join the discussion

Log in to read comments from other miners. Create a free account if you would like to ask a question or share your experience.

Log in to read comments Register to join the discussion

Membership helps us protect the discussion from spam and keep answers useful.

ASIC MINING SUPPORT

Need Help Choosing an ASIC Miner?

Tell us what you want to mine, your electricity cost and where the machine will run. We can help you compare hardware, power requirements, hosting and repairs.
Contact our mining team
Browse ASIC miners