Backport verdict: Incomplete
The code backports are faithful to upstream. #35878 matches 1278a5970d apart from one necessary adaptation: peer is a PeerRef on 30.x, so AddKnownTx(peer, …) becomes AddKnownTx(*peer, …). #33693's functional commit is backported. Its other commit (a comment-only cleanup) is left out on purpose, which is harmless. All four #36672 commits are already in the base. The version bump and man pages are consistent. The one gap is in the release notes. One of the commits that arrived through #36672 (17fe6566, 'ci: use Warp cache for Docker layers') comes from upstream PR #35447. Neither the v30.4 nor the new v30.5 notes list #35447, but they do list #35571, which fixes a breakage in the same provider wiring. Nothing was built or tested in this review.
Evidence:
- 1bb5289d48 vs 1278a5970d: the inspected head INV handler (src/net_processing.cpp:3944-3994) adds the
seen_txids/seen_wtxidsunordered_sets, built fromm_txhash_hasher, before LOCK2. The dedup check (inv.IsMsgWtx() ? seen_wtxids : seen_txids, thencontinueon a failed insert) sits after the reject_tx_invs disconnect and before ToGenTxid/AddKnownTx. Placement matches upstream (upstream net_processing.cpp:4343-4392). The only changes are the PeerRef adaptation (*peer) and older log-format context. - Target compatibility: SaltedUint256Hasher exists in src/util/hasher.h:18 with a default constructor and const salts, so it can be copied into the set constructor. CInv::IsMsgWtx exists (protocol.h:517). The const member sits between m_rng and m_fee_filter_rounder (net_processing.cpp:747-751) and needs no initializer change.
<util/hasher.h>and<unordered_set>are each included only once (net_processing.cpp:59, 87). - Test fidelity: test_duplicate_tx_inv (p2p_tx_download.py:322-386) and its run_test call (line 459) are identical to upstream (upstream 328-392, 465). It is called right after test_large_inv_batch, which restarts the node, exactly as upstream. The helpers it uses exist on 30.x: TestNode.debug_log_size(**kwargs) at test_node.py:549, debug_log_path, and TestP2PConn(wtxidrelay=…). The 30.x log line 'got inv: %s %s' has a double space, but CInv::ToString ('%s %s', protocol.cpp:77-80) keeps the 'got inv: tx <hash>' substrings the test asserts on.
- Behavior is preserved: MSG_WITNESS_TX from a wtxid-relay peer still gets past the IsMsgTx mismatch filter and is still treated as a txid, as it was upstream at 1278a5970d. The later change that ignores such entries is a separate follow-up (#35920). It is not declared, does not fix a regression from #35878, and is not needed for this backport.
- #33693 accounting: 53b34c80c6 was backported as 62de810569. The pip install now goes through PIP_PACKAGES, which ci/test/01_base_install.sh:53-56 runs for macOS too, and the separate 'Install Python packages' step is gone from ci.yml. The other commit, 865432869c ('ci: remove Python version comment from mac config'), only deletes two comment lines in 00_setup_env_mac_native.sh. Leaving it out is a harmless scope choice; the range-diff shows only that context difference.
- #36672: commits 322f0389 (#35348), 17fe6566 (#35447), 4eaccf2d (#35441) and 95e321c1 (#35571) are all already in the base. The v30.4 notes list none of them, so they are new since v30.4, as the PR description says.
- Release notes (doc/release-notes.md:43-61) list #35878, #33693, #35348, #35441 and #35571, but not #35447 ('ci: use Warp cache for Docker layers', Rebased-From 82901981, carried by 17fe6566). #35447's author (will/willcl-ark) is already in the credits.
- f127a4a91c is a branch-only CI change with no PR number: it moves the runner to macos-15 and switches to Xcode_16.0.app. It is reasonable not to list it in the release notes. Upstream master also uses macos-15, but with Xcode 16.2. The only remaining macos-14 reference is in the src/secp256k1 subtree CI.
- Release prep: CLIENT_VERSION_MINOR goes to 5 with RC 0 and IS_RELEASE true. All 7 man pages in doc/man (the full base set) are updated to v30.5.0 / November 2026. Release-note credits (fanquake, Greg Sanders, willcl-ark) match the authors of the included commits.
Required fixes:
- Add the missing CI entry for #35447 ('ci: use Warp cache for Docker layers', backported as 17fe6566 through #36672) to the CI section of doc/release-notes.md.
Limitations:
- Nothing was built and no functional or lint tests were run. No CI runner records were provided, so this assessment is based on reading the source only.
- I could not check whether /Applications/Xcode_16.0.app is still installed on GitHub's macos-15 runner images. Upstream master uses Xcode_16.2.app on macos-15.
- I did not check the v30.4 tag directly. That #36672 landed after v30.4 rests on the PR description and on the base v30.4 release notes not listing those PRs.
- The #35878 review discussion (discussion_r3724297158) and the final merge status of follow-up #35920 were not available. I checked that #35878 is self-contained against its single upstream commit.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Documented decisions
There is a concrete interoperability reason to preserve some of that otherwise nonstandard tolerance. The follow-up discussion reports Neutrino announcing transactions using InvTypeWitnessTx; a subsequent author comment says the change was revised to allow witness-tx announcements from non-wtxid-relay peers.
This supplies historical evidence for retaining the txid interpretation of MSG_WITNESS_TX rather than assuming no deployed client uses it. The reported compatibility accommodation specifically concerns non-wtxid-relay peers; it does not establish the same requirement for wtxid-relay peers.