WIP: [32.x] Backports

bitcoin/bitcoin: PR #36727

1 suggestion

Earlier concerns neither republished nor resolved: 1 suggestion. See the Run archive for their assessments.

Optional improvements

Link

[suggestion] · interface_http.py loses late-disconnect coverage without upstream safeguards

The 32.x backport removes the upper-duration assertion without upstream's replacement safeguards, so the functional tests can accept an idle disconnect much later than -rpcservertimeout.

Location: test/functional/interface_http.py:100 (head).

Details and suggested fix

The copied comment relies on a client socket timeout and idle-timing coverage in httpserver_tests, but neither exists on this branch. reset_conn constructs HTTPConnection without a timeout, neither idle-timeout fixture calls set_timeout, and the unit tests lack upstream's mock-clock idle-timeout checks. Consequently, a delayed but finite disconnect can satisfy every remaining assertion in check_idle_timeout and check_server_busy_idle_timeout; the base rejected durations above seconds + 2. A server that never disconnects already left recv() unbounded at base, so that hang is not new. Backport the node.rpc_timeout socket guard and mock-clock idle-timeout tests before removing the functional upper bound, so the flakiness fix retains the safeguards described here.


Backport verdict: Needs clarification

Fidelity could not be established from the available evidence.

Evidence:

Limitations:

Coverage details

Earlier concerns

Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.

Background

Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.

Documented decisions

The historical implementation effort had interoperability and ecosystem-adoption motivations. Core Lightning already used v2, users wanted Core to inspect those PSBTs, and a contributor explicitly advocated moving the industry toward v2 as the de facto default. The implementation also adopted a v2-shaped internal representation while reconstructing the unsigned transaction for v0 serialization.

This distinguishes support and internal representation from export policy: retaining v0 output does not require abandoning the v2 implementation. It also explains why defaulting toward v2 was attractive despite compatibility costs.

Source 1 · Source 2 · Source 3