1 minor finding · 1 suggestion
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · Declared backport #36848 is absent from the bundle
This WIP bundle declares #36848 but retains the pre-existing HTTP test upper bound that can fail on slow CI; no failure on 32.x runners was observed.
Location: doc/release-notes.md:70 (head).
Details and suggested fix
BitcoinHTTPConnection.expect_timeout still enforces duration <= seconds + 2 in both idle-timeout scenarios, unchanged from base. The declared #36848's sole source commit, 75a23e7d36afbbcfedef11bca94967b88bf40de0, removes that bound because scheduling delays can fail the test even when the server closes normally. The target series does not include that deletion.
Include a target-adapted backport, retain duration >= seconds - 1, and add #36848 under ### Test in doc/release-notes.md. Adapt the upstream time.monotonic() context to this branch's time.time() implementation, and do not copy the claim that httpserver_tests covers exact timing: 32.x lacks the corresponding mock-clock assertions. If the omission is intentional, explicitly defer #36848 and remove it from the declared list instead.
Optional improvements
[suggestion] · peer_discouragement misses ordinary same-address survivors
Restoring the old private-broadcast-exempt address-wide disconnect would still satisfy peer_discouragement, because its only same-address survivor is a PRIVATE_BROADCAST peer.
Location: src/net_processing.cpp:5405 (head).
Details and suggested fix
nodes[2] and nodes[3] are the only shared-address pair, but nodes[3] is PRIVATE_BROADCAST. The base punishment call used DisconnectNode(CSubNet{pnode.addr}, /*disconnect_private_broadcast=*/false), so its survivor assertion also holds under the behavior #36894 fixes. An unfiltered call to the head's subnet helper would fail this assertion, but restoring the old exemption would not. Add another ordinary INBOUND or OUTBOUND_FULL_RELAY peer sharing a non-local address with an ordinary offender. Register both with connman, mark only the offender misbehaving, and call SendMessages on it. Check that the address is discouraged and only the offender has fDisconnect set. Keep the existing private-broadcast checks. Prefer adding this regression test upstream first and then backporting it.
Backport verdict: Incomplete
Nine of the ten declared PRs (14 commits) match their upstream originals. The tenth, bitcoin/bitcoin#36848 (75a23e7d36afbbcfedef11bca94967b88bf40de0), is listed in the PR description but has no commit here, and its change is not already in the base. The head still has the flaky "Server disconnected too slow" check that #36848 removes. The release notes and credits also leave #36848 out, which suggests it may have been dropped on purpose, but no reason is given. The upstream patch also won't apply as-is: its context uses time.monotonic(), while the 32.x file uses time.time(). The included code hunks are identical to upstream or differ only in line offsets or commit order. The one real adaptation is in #36539: the doc/release-notes-hwi-minver.md file was dropped and its text moved into doc/release-notes.md, with the version changed from 32.0 to 32.1. That change is justified because the base release notes say 32.0 was never fully released. Checks at the PR head found no compile or behaviour problems in how these backports fit the 32.x branch.
Evidence:
- #36701 7c6fdd0a26 vs fa01c3c533: same hunks, only the line offset differs. At the head, ci/test/00_setup_env.sh:38-39 uses ${RUN_UNIT_TESTS:-true} and ${RUN_FUNCTIONAL_TESTS:-true}, so other matrix entries, where the value is empty, still default to running tests. Only '32 bit ARM' (ci.yml:448-455) turns them off.
- #36615 d9035657b6: same blob transition as upstream d2e5108ea2 (737fa07e83 -> f43b73e76c).
- #36617 7bd744759b: same blob transition as upstream faf819bf23 (a25c93cd1f -> 6f55597b6a). Head p2p_orphan_handling.py:831-838 shows the moved getorphantxs wait.
- #36406 6cb4ce2905 + 4d679f6fdb: hunks match a3c4ad12e9 and 5f22014aca. The blob IDs differ only because #36617 was applied first. Head lines 427-454 match upstream. Every assert_never_requested caller at the head passes an int (lines 178-642), the same as upstream 5f22014aca, so the new isinstance assert cannot break other call sites. txid_int and wtxid_int exist at test_framework/messages.py:701 and :716.
- #36405 0cd735b74b: head test/functional/p2p_blocksonly.py:80-141 is identical to upstream 22535b4605 lines 80-141.
- #36539 dba6a52b6d + 806bc300e2: code hunks are identical. The range-diff shows doc/release-notes-hwi-minver.md was dropped, and its text now appears at doc/release-notes.md:44-52 with '32.0' changed to '32.1'. This matches the base release notes, which say 32.0 was tagged but never fully released. Every PartiallySignedTransaction(CMutableTransaction, ...) call at the head passes an explicit version: sendcoinsdialog.cpp:490/507, walletmodel.cpp:518, feebumper.cpp:338, wallet/rpc/spend.cpp:112/1154/1796, rpc/rawtransaction.cpp:1763/1832, psbt_tests.cpp:71/168/257, fuzz/psbt.cpp:128. Removing the default argument is therefore safe by inspection. GetVersion() is declared at psbt.h:1256 for the new QCOMPARE.
- #36869 02881236d6: same blob transition as upstream b9a6b0ca51 (02691bb4b5 -> 37aa6bb96d).
- #36894 c6dbc0e480: head MaybeDiscourageAndDisconnect (net_processing.cpp:5364-5407) matches upstream d63068c58e lines 5364-5406. That includes the existing private-broadcast branch, already in the base, which only sets fDisconnect. No uses of disconnect_private_broadcast remain. The only CSubNet DisconnectNode caller is net.cpp:3958 (DisconnectNode(CSubNet(addr))). The peer_discouragement test at denialofservice_tests.cpp:370-438 matches the upstream test, which is unchanged by d63068c.
- #36889 31bd06b27f / 52824e540c / 1e69d11778: hunks match 4ef05d6f45 / 460f877fac / 435d5b2277. Head src/CMakeLists.txt:8-11 and 69-70 match upstream 460f877. The add_library and add_executable targets at the head match upstream; the only extra one is minisketch_common, which is INTERFACE-only. bitcoin_ipc (src/ipc/CMakeLists.txt:20-25), bitcoinkernel (src/kernel/CMakeLists.txt:101-109), test_kernel and minisketch all link core_interface. No references to WarnAboutGlobalProperties remain. CMakePresets.json:66 keeps "errors": {"dev": true}, as upstream does.
- #36848 / 75a23e7d36 (missing): there is no commit for it in the PR. Base and head test/functional/interface_http.py:92-102 are identical and still contain
assert duration <= seconds + 2, f"Server disconnected too slow...", so the change is not already in the base. The upstream parent (lines 94-96) uses time.monotonic(), but the target uses time.time(), so the patch needs adapting. The release notes (doc/release-notes.md:54-82) and credits (89-94) leave out #36848 and Matthew Zipkin, while the PR description still lists #36848. No reason for the omission is given. - Release-note commit a34fe8f701: it adds an entry for each of the nine included PRs, matching the included code.
Required fixes:
- Either backport 75a23e7d36afbbcfedef11bca94967b88bf40de0 (#36848), adapted to the 32.x file, or remove #36848 from the PR's backport list and say why it is deferred. The adaptation means dropping the
duration <= seconds + 2upper-bound assertion in BitcoinHTTPConnection.expect_timeout and computing duration from the target's existing time.time() calls, or also bringing in the time.monotonic() switch. If you backport it, also add a '### Test' release-note entry and update the credits.
Limitations:
- No builds, unit tests, functional tests or CI runs were executed, and no runner records were supplied. Conclusions about compiling and test behaviour come only from reading the source at the pinned head a34fe8f701.
- The CMake include-directory change (#36889) was checked by comparing the target lists and their core_interface links with upstream. It was not configured or built for every preset or platform. The 32.x branch still has MSVC-specific CMake handling that the upstream tree at 460f877 lacks, and that path was not exercised.
- The evidence packet truncated the release-notes patch and the #36869 PR body. The full release notes were read directly at the head.
- The historical discussion pages were only partly retrieved. Whether leaving out #36848 was intended could not be confirmed from the sources available.
- Truncated Git evidence: show --format=fuller --no-ext-diff
- bitcoin/bitcoin#36869: truncated body
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: No test checks that the unsigned fee-bump PSBT export is v0 (earlier report)
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Unresolved disagreements
The earlier debate did not establish a generally valid one-IP/one-operator assumption. One position defended shared-IP punishment and the usefulness of discouragement; objections cited honest users sharing an address, CGNAT, and attackers cheaply changing addresses. The later Tor-exit example supplies a concrete shared-address threat, but does not by itself resolve the broader appropriate scope of address-based discouragement.
The head narrows immediate disconnection while retaining address-wide discouragement. Historical objections explain that distinction without proving either that all address-level defenses are useless or that all connections sharing an address are trustworthy.