BIP 339 wtxid relay explained: see why witness-aware transaction identifiers improve Bitcoin peer announcements, requests and rejection handling.
TL;DR
A legacy transaction identifier hashes the serialisation without witness data. If a node rejects one witness form, refusing every later announcement with the same TXID could let an attacker block delivery of a valid form by first announcing a malleated invalid witness.
A capable peer sends the empty wtxidrelay message during handshake after version and before verack. WTXID relay activates only between peers that both signal support.
BIP 339 wtxid relay in simple English
BIP 339 wtxid relay: A legacy transaction identifier hashes the serialisation without witness data. SegWit also defines a witness transaction identifier that commits to the witness.
Simple example
A node operator is checking BIP 339 wtxid relay. At the same time, a witness transaction can retain its TXID if only the witness representation changes.
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.
- Efficiency:
- How much electricity a miner uses for a set amount of work. Lower joules per terahash usually means better efficiency.
TXID and WTXID differ
A legacy transaction identifier hashes the serialisation without witness data. SegWit also defines a witness transaction identifier that commits to the witness. For a non-witness transaction the values match. At the same time, a witness transaction can retain its TXID if only the witness representation changes. Relay based solely on TXID therefore cannot identify exactly which witness form a peer announced or rejected.
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.
The relay inefficiency
If a node rejects one witness form, refusing every later announcement with the same TXID could let an attacker block delivery of a valid form by first announcing a malleated invalid witness. Downloading every repeated TXID avoids that censorship avenue but wastes bandwidth. BIP 339 lets capable peers announce and request the complete witness-committing identity instead, separating distinct forms cleanly.
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.
Negotiating WTXID relay
A capable peer sends the empty wtxidrelay message during handshake after version and before verack. The minimum protocol version is specified, and a message received after verack is ignored or invalid. Once negotiated, transaction announcements use the MSG_WTX inventory type and requests normally use MSG_WTX getdata, returning witness serialisation under the BIP 144 rules.
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.
Backward compatibility
WTXID relay activates only between peers that both signal support. Connections to older peers continue using conventional TXID inventory and remain interoperable. Operators should therefore expect a mixed peer set during deployment. A dashboard must distinguish software support from successful per-connection negotiation. Installing a capable version does not retroactively change an already established peer session.
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.
Mempool and package implications
Witness-aware identity makes rejection caching and transaction-set reconciliation more precise. BIP 330 relies on WTXIDs for its salted short identifiers. Package and fee policy still evaluate transaction relationships, weight and fees under local rules. WTXID relay does not force two peers to accept the same transaction or eliminate malleability outside the witness boundary.
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.
Mining relevance
A block template commits to complete valid transactions, including witness data through the block’s witness commitment. Pools need nodes that receive, validate and retain the exact transaction forms selected. WTXID relay reduces avoidable redownloads and ambiguity but cannot validate signatures on behalf of the template node. Compare mempool acceptance, template contents and submitted-block validation independently.
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 checks
Capture peer negotiation state, MSG_WTX announcements, rejected-form behaviour and transaction propagation timing in a test environment. Confirm witness transactions are requested and serialised correctly, then test older-peer fallback. Keep nodes current and avoid custom relay proxies that strip unknown handshake messages. The success measure is accurate, efficient propagation without weakening the node’s normal consensus and policy validation.
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 339 wtxid 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 339 wtxid 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 339 wtxid relay?
BIP 339 wtxid relay: A legacy transaction identifier hashes the serialisation without witness data. SegWit also defines a witness transaction identifier that commits to the witness.
For BIP 339 wtxid relay, what should a beginner know about txid and WTXID differ?
A legacy transaction identifier hashes the serialisation without witness data. SegWit also defines a witness transaction identifier that commits to the witness.
For BIP 339 wtxid relay, what should a beginner know about the relay inefficiency?
If a node rejects one witness form, refusing every later announcement with the same TXID could let an attacker block delivery of a valid form by first announcing a malleated invalid witness.
For BIP 339 wtxid relay, what should a beginner know about negotiating WTXID relay?
A capable peer sends the empty wtxidrelay message during handshake after version and before verack.
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.