Backport verdict: Needs clarification
Fidelity could not be established from the available evidence.
Evidence:
- Commit 1bb5289d48 (Rebased-From 1278a5970d, #35878): the range-diff shows only context changes. The 30.x branch has
<util/trace.h>andusing namespace util::hex_literalswhere upstream has<util/tokenbucket.h>andusing kernel::ChainstateRole, theProcessMessage(CNode& pfrom, ...)signature differs, and the call becomesAddKnownTx(*peer, inv.hash). The added logic is identical: twoseen_txids/seen_wtxidssets built from the sharedm_txhash_hasher, andif (!seen_hashes.insert(inv.hash).second) continue;. - The INV loop at the PR head (src/net_processing.cpp:3944-3994) has the same structure as upstream at 1278a597 (lines 4343-4393). The wtxidrelay mismatch filter comes first, the
reject_tx_invsdisconnect still runs before the duplicate check, the duplicate check runs beforeToGenTxid/AddKnownTx, and the 'got inv' log is printed only for entries that are not skipped. So the new test's log-count assertions apply on 30.x as well. - Everything the change needs already exists on 30.x:
SaltedUint256Hasher(src/util/hasher.h:18, defined in hasher.cpp:10),CInv::IsMsgWtx(protocol.h:517),IsGenTxMsgincludingMSG_WITNESS_TX(protocol.h:523-526), andToGenTxid(protocol.cpp:121-125).GetMessageTypeturnsMSG_WITNESS_TXinto 'witness-tx' (protocol.cpp:58-75), which the test relies on. - The test helpers it uses are present on 30.x:
TestNode.debug_log_pathanddebug_log_size(**kwargs)(test_node.py:530, 549),MSG_WITNESS_TXin messages.py:67, andTestP2PConn(wtxidrelay=...)(p2p_tx_download.py:41). The test is placed aftertest_large_inv_batch, the same position as upstream, so the node is already out of IBD and transaction 'got inv' lines are logged. The 30.x log format has two spaces after the hash, but the test only matches the 'got inv: <type> <hash>' prefix, so that does not matter. - There is no behaviour change on 30.x beyond skipping repeated work: duplicate announcements in one INV were already harmless to
AddTxAnnouncement/AddKnownTx.MSG_WITNESS_TXhandling on wtxidrelay peers is unchanged from the base. The later upstream PR #35920 (stop acceptingMSG_WITNESS_TXINVs from wtxidrelay peers) changes behaviour that predates #35878. It was not declared for backport, and #35878 does not depend on it. - #36672 (322f0389, 17fe6566, 4eaccf2d, 95e321c1) is already on the branch. For example, the warp runner selection is present in the base ci.yml. The release notes list the PRs it backports (#35348, #35441, #35571) under CI, which matches how earlier notes were written. #35878 is listed under Net. All v30.4 entries are removed, and v30.4 introduced none of these entries.
- Release prep is consistent. CMakeLists.txt sets CLIENT_VERSION_MINOR to 5 with RC 0 and IS_RELEASE true. All seven man pages say v30.5.0, dated November 2026. Credits list fanquake, Greg Sanders and willcl-ark. Not archiving release-notes-30.x.md on the 30.x branch matches earlier practice (only 29.0/29.1 archives exist, inherited from master).
- CI commit f127a4a9 changes only the top-level macOS job (macos-14 to macos-15, Xcode_15.0 to Xcode_16.0, job names updated). Upstream master already runs this job on macos-15. The macos-14 reference left in the src/secp256k1 subtree workflow is not run by this repository's Actions.
Limitations:
- I did not build anything or run any tests (unit, functional or CI), and no runner records were provided. Whether p2p_tx_download.py passes on this head comes from reading the source only.
- I could not confirm that the GitHub macos-15 image provides /Applications/Xcode_16.0.app; upstream master uses Xcode_16.2.app on macos-15. If 16.0 is missing, only the macOS CI job fails; the release binaries are not affected.
- I did not check the release-note credits (willcl-ark etc.) against the actual authors of #35348, #35441 and #35571.
- I did not read the upstream #35878 review thread (discussion_r3724297158) or the full #35920 thread. My conclusion that #35920 is an optional follow-up rests on its description and the captured comments.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
The follow-up discussion in #35920 supplies a concrete interoperability reason for retaining some of that tolerance: a participant reported that a Neutrino client announced transactions using InvTypeWitnessTx, and a later update stated that the proposal had been changed to allow witness-tx INVs for non-wtxidrelay peers.
This supports compatibility with deployed, nonconforming transaction broadcasters rather than treating MSG_WITNESS_TX INVs as protocol-valid. Importantly, the stated accommodation was limited to non-wtxidrelay peers; it does not document a reason to preserve the same tolerance on negotiated wtxidrelay connections.
Source 1 · Source 2 · Source 3
BIP 339 introduced MSG_WTX specifically to identify transactions by wtxid. Its motivation was that txids do not commit to witnesses: rejecting all future downloads of a txid after receiving an invalid witness would let an adversary suppress the valid transaction, while repeatedly downloading witness variants wastes resources. Negotiated wtxid relay addresses that tradeoff, and requires MSG_WTX announcements after receiving wtxidrelay.
This is the historical reason not to equate a txid-bearing announcement with a wtxid-bearing announcement merely because their 256-bit hash fields match. It also explains why acceptance of MSG_WITNESS_TX on a wtxidrelay connection should not be described as a requirement of BIP 339 compatibility.