BIP 330 Erlay explained: see how transaction-set reconciliation, short IDs and sketches can reduce Bitcoin node announcement bandwidth.
TL;DR
Traditional transaction relay announces identifiers over every relevant peer connection. Each peer maintains a set of transactions that would otherwise have been announced directly. Peers contribute salts and derive per-connection keys before mapping witness transaction identifiers into 32-bit short IDs. The proposal uses PinSketch-style set checksums implemented by the minisketch library.
BIP 330 Erlay in simple English
BIP 330 Erlay: Traditional transaction relay announces identifiers over every relevant peer connection. Adding peers therefore adds announcement traffic even when both nodes already know almost the same mempool.
Simple example
A node operator is checking BIP 330 Erlay. BIP 330 specifies a reconciliation protocol that lets two peers compare sets efficiently. If those facts are unknown, the operator cannot show which rules were actually applied before electricity was committed to the work.
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.
- 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.
- Mining pool:
- A service that combines work from many miners and shares rewards using stated rules.
Why transaction announcements scale poorly
Traditional transaction relay announces identifiers over every relevant peer connection. Adding peers therefore adds announcement traffic even when both nodes already know almost the same mempool. BIP 330 specifies a reconciliation protocol that lets two peers compare sets efficiently. Erlay combines limited flooding for speed with periodic reconciliation for coverage, aiming to support more connectivity without proportional bandwidth growth.
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.
Reconciliation sets
Each peer maintains a set of transactions that would otherwise have been announced directly. During a round, both sides take a snapshot, estimate the likely set difference and exchange a compact sketch. If decoding succeeds, each learns which transaction identifiers it is missing. The working set is then cleared for subsequent announcements while the snapshot remains available until the round completes.
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.
Salted short transaction IDs
Peers contribute salts and derive per-connection keys before mapping witness transaction identifiers into 32-bit short IDs. Salting prevents one reusable global mapping and supports compact finite-field sketches. BIP 330 depends on peers also negotiating WTXID relay. Short IDs are reconciliation elements, not permanent identifiers, and collision or decoding limits require explicit error and extension handling.
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.
PinSketch and sketch extension
The proposal uses PinSketch-style set checksums implemented by the minisketch library. Combining sketches yields a representation of the symmetric difference when capacity is enough. If the difference is larger than estimated, the initiator can request an extension rather than restart with a complete inventory. Capacity estimates balance bytes saved against the cost and latency of failed decoding.
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.
Flooding plus reconciliation
Erlay does not simply delay every transaction until a scheduled comparison. A small subset of connections still receives rapid announcements. At the same time, other peers reconcile periodically. This preserves propagation speed and uses broader connectivity for resilience. The exact high-level relay policy is separate from BIP 330’s message and sketch building blocks. So operators must distinguish specification status from an implementation’s deployed behaviour.
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.
Benefits and failure modes
Lower announcement bandwidth may let nodes maintain more peers, making network partitions and eclipse attempts harder. Reconciliation can fail through underestimated differences, incompatible negotiation, resource pressure or adversarial sketches. Nodes require limits, timeouts and ordinary fallback relay. A mining node must not assume its mempool matches peers merely because one sketch round completed. Transactions continue arriving and policies can differ.
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.
Operational evaluation
Confirm the client release and BIP status, record negotiated reconciliation peers, round success, extensions, bytes and transaction propagation delay. Compare with conventional relay under realistic mempool churn and restarts. A pool should assess whether template transactions arrive promptly and whether added connections improve path diversity. Do not advertise bandwidth savings from a draft protocol as a guaranteed production result.
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 330 Erlay 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 330 erlay 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 330 Erlay?
BIP 330 Erlay: Traditional transaction relay announces identifiers over every relevant peer connection. Adding peers therefore adds announcement traffic even when both nodes already know almost the same mempool.
For BIP 330 Erlay, why transaction announcements scale poorly?
Traditional transaction relay announces identifiers over every relevant peer connection. Adding peers therefore adds announcement traffic even when both nodes already know almost the same mempool.
For BIP 330 Erlay, what should a beginner know about reconciliation sets?
Each peer maintains a set of transactions that would otherwise have been announced directly.
For BIP 330 Erlay, what should a beginner know about salted short transaction IDs?
Peers contribute salts and derive per-connection keys before mapping witness transaction identifiers into 32-bit short IDs.
Primary sources
Primary specifications are living technical records. Check their current status and changelog before using this article for a production activation decision.
Join the ASIC Mining Discussion
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.
Membership helps us protect the discussion from spam and keep answers useful.