1 minor finding
Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.
Findings
[minor] · The #36848 backport removes idle-deadline coverage without its replacements
Source inspection shows that the 32.x backport lets late idle disconnects pass interface_http.py: it removes the upper bound without the socket timeout or deterministic unit coverage cited by the new comment.
Location: test/functional/interface_http.py:97 (head).
Details and suggested fix
With -rpcservertimeout=2, an idle connection closing after ten seconds now satisfies expect_timeout, whereas base rejected it through duration <= seconds + 2. Upstream has the safeguards cited here, but 32.x constructs HTTPConnection without a timeout, neither caller invokes set_timeout, and httpserver_tests.cpp does not check the idle deadline with a mocked clock. Waiting indefinitely for a server that never disconnects is pre-existing, not a regression introduced here. Before dropping the upper bound, backport equivalent finite socket timeouts and mock-clock idle-deadline coverage so the comment accurately describes the target branch.
Backport verdict: Incomplete
I checked all 10 original commits from the 8 PRs. Nine apply faithfully and work on the 32.x branch. The #36615, #36617, #36405 and #36869 patches are byte-identical. #36701 and the two #36406 commits differ only by context or stacking. #36539 keeps its code changes and moves its release-note fragment into doc/release-notes.md, which is a sound adaptation. The problem is #36848 (75a23e7d → ef37fd2008). It removes the only upper-bound check on the idle-timeout disconnect in interface_http.py. Upstream could do that because two other checks cover the case, and the new comment says so: a socket timeout set to rpc_timeout, and the mock-clock test http_should_disconnect_tests in httpserver_tests. Neither exists on 32.x. Here BitcoinHTTPConnection opens its HTTP connection with no timeout, and httpserver_tests has no idle-timeout test. So the backported comment is false on this branch. A late disconnect now goes undetected, and a server that never disconnects makes the test hang instead of fail. This only affects tests, but the #36848 port needs a fix before the series can be called faithful.
Evidence:
- #36701 7c6fdd0a26 ← fa01c3c533: the ci.yml hunks match upstream; only the line offsets differ (432/449 vs 406/423). The change works on 32.x: ci/test/00_setup_env.sh:38-39 uses
${RUN_UNIT_TESTS:-true}, so matrix entries without the field (empty value) still default to true. 00_setup_env_arm.sh does not override the variables. ci/test/02_run_container.py:26-31 passes every variable exported by 00_setup_env*.sh into the container, and RUN_UNIT_TESTS/RUN_FUNCTIONAL_TESTS are among them. - #36615 d9035657b6 ← d2e5108ea2: the blob index is identical (737fa07e83..f43b73e76c) and the codesign.sh TAR_OPTIONS change is exact.
- #36617 7bd744759b ← faf819bf23: the blob index is identical (a25c93cd1f..6f55597b6a). At head, p2p_orphan_handling.py:832-836 waits for getorphantxs
from==1 before the ping and the mocktime bump, as upstream does. - #36406 6cb4ce2905 ← a3c4ad12e9 and 4d679f6fdb ← 5f22014aca: the hunks are identical. They stack on #36617 without conflict (index 6f55597b6a..4ba40d6fe3..e5fae1d4f5). The
txid_int/wtxid_intproperties they rely on exist at head (test_framework/messages.py:700-718). Everyassert_never_requestedcall at head passes an int (lines 178-212, 357, 440-454, 642), so the new isinstance check cannot break any existing call. - #36405 0cd735b74b ← 22535b4605: the blob index is identical (4ffbb80f4a..2c6b9f9a8c). At head,
check_p2p_tx_violationreturns (tx, txid, wtxid, hex) (p2p_blocksonly.py:137), so the 4-tuple unpacking is correct. - #36539 dba6a52b6d ← 23dcb03a2c: the sendcoinsdialog.cpp, walletmodel.cpp and wallettests.cpp hunks match upstream. The range-diff shows only doc/release-notes-hwi-minver.md was dropped. Its text was moved into doc/release-notes.md:44-52 under Wallet, with '32.0' changed to '32.1'. That edit fits this branch, because the base release notes say 32.0 was tagged but never released.
- #36539 806bc300e2 ← 3fdc45d1fa: the psbt.h, fuzz/psbt.cpp, psbt_tests.cpp and feebumper.cpp hunks match upstream. At head, no single-argument PSBT constructor call remains: searches for
PartiallySignedTransaction psbt,PartiallySignedTransaction(andPartiallySignedTransaction{find only calls with an explicit version or deserialization. The base tree had exactly the 8 call sites that relied on the default argument, and the patch updates all of them. The send dialog's 'Create Unsigned' export and the fee-bump export use version 0, and both external-signer paths use version 2 (sendcoinsdialog.cpp:490/507, walletmodel.cpp:518, feebumper.cpp:338). That matches the final upstream commits and the Optech #430 summary, not the earlier PR-description wording that said version 0 would be used for external signing. - #36869 02881236d6 ← b9a6b0ca51: the blob index is identical (02691bb4b5..37aa6bb96d).
- #36848 ef37fd2008 ← 75a23e7d36: replacing
time.monotonic()withtime.time()is a correct adaptation, because the target base uses time.time(). However, the backported comment at interface_http.py:97-101 says the 'socket timeout (rpc_timeout) already catches a server that never disconnects' and 'Exact timing is covered by httpserver_tests'. - #36848 target-branch gap, part 1 (socket timeout): upstream sets
self.timeout = node.rpc_timeoutand openshttp.client.HTTPConnection(..., timeout=self.timeout)(interface_http.py:35/41 at 75a23e7d). The 32.x head openshttp.client.HTTPConnection(self.url.hostname, self.url.port)with no timeout (lines 38-40), and nothing in the tree callssetdefaulttimeout. On 32.x,recv_raw()inexpect_timeouttherefore blocks indefinitely. - #36848 target-branch gap, part 2 (unit test): upstream httpserver_tests.cpp:754-858 has
http_should_disconnect_tests, which testsShouldDisconnectagainst a FakeSteadyClock. The 32.x head httpserver_tests.cpp (1108 lines) contains no MaybeDisconnect/ShouldDisconnect or rpcservertimeout test, and the 32.x HTTPRemoteClient::MaybeDisconnect uses the non-mockable SteadyClock (httpserver.cpp:1165, 1345). As a result, the upper-bound assertion this backport removes was the only 32.x check against a late idle-timeout disconnect. - Release notes 392ee5b5fb: all 8 PRs are listed (doc/release-notes.md:44-75), contributor credits are updated, and the v32.x placeholder text is the usual work-in-progress form for a stable branch.
Required fixes:
- In test/functional/interface_http.py, make the #36848 port accurate for 32.x. Either (a) also backport the upstream change that opens BitcoinHTTPConnection with
timeout=node.rpc_timeout, so a server that never disconnects makes the test fail instead of hang, and rewrite the comment so it no longer cites httpserver_tests idle-timeout coverage that 32.x lacks; or (b) keep a generous upper bound on this branch (for example, well below rpc_timeout) and fix the comment. Leaving the current comment is not acceptable: it claims two checks that do not exist on 32.x.
Limitations:
- No builds, unit tests, functional tests, GUI tests or CI runs were executed or supplied as runner records. Compilation after removing the default constructor argument was judged only by searching the source for remaining call sites.
- I did not identify which upstream commit added the rpc_timeout socket timeout to BitcoinHTTPConnection. I confirmed only that it is present at the #36848 original and absent from the 32.x head.
- Issue #36518, which motivated #36539, could not be retrieved, so the specific user reports behind the GUI PSBTv0 rollback are unverified.
- The packet's Git evidence and the #36869 PR body were truncated. Fidelity was judged from the per-commit patches, the range-diffs and head/upstream file reads.
- 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.
Documented decisions
The original PSBTv2 implementation was intended to accommodate BIP370's new fields and different invariants while retaining compatibility with PSBTv0.
Upstream #21283 explicitly describes restructuring the PSBT implementation without abandoning version 0. This distinguishes support for both formats from the separate choice of which format to create at a particular boundary. It does not, by itself, explain why version 2 became the constructor default.
Returning ordinary GUI unsigned exports to version 0 was a compatibility rollback deliberately kept small enough to avoid new translated strings during release preparation.
The inspected final upstream commit says that defaulting GUI users to PSBTv2 caused problems for existing users and offered little immediate benefit. The historical proposal dropped a version-selection checkbox to simplify backporting past string freeze. The pinned head consequently selects version 0 for the send dialog's unsigned export, while the supplied patch makes the corresponding change for the fee-bump export.
The final upstream change deliberately retained PSBTv2 for external signing and documented PSBTv2-capable signing software—not necessarily PSBTv2-capable hardware—as the compatibility requirement.
The inspected upstream commit and its release-note fragment specify HWI 2.1.0 as the minimum HWI version. Pinned head inspection confirms explicit version 2 construction in both external-signer send and wallet fee-bump signing paths. These paths preserve the existing version choice rather than participating in the ordinary unsigned-export rollback.
Ralph's inferences
The supported interpretation of 'must retain version 2' is preservation of the established external-signer behavior and its documented software baseline, not a demonstrated universal inability to sign version 0.
At the pinned base, the send/export call sites inherited the constructor's version choice; at the head, ordinary export and external signing make different choices explicitly. The upstream author's earlier description considered version 0 for external signing, while the final commits retained version 2. Without the missing substantive discussion, attributing that final choice to a particular signer limitation would overstate the evidence.