1 suggestion
Optional improvements
[suggestion] · Helper commits add a temporary workaround for TestNodeCLI truncation
The first two helper commits introduce a weakened type-error assertion and misleading explanation that the later parser fix removes; moving that independent fix first avoids this review detour without changing the final tree.
Location: test/functional/test_framework/util.py:206 at faef72677191 (commit) (commit).
Details and suggested fix
faef72677191ea510ad8cfdab2a262a0fd4c6293 introduces assert_rpc_options_validation with the loose "type" substring check and a comment attributing it to different server and CLI messages. faffec6234eabacf6e79b576061c0b7daa00e9cc extends the helper but retains that workaround. ffff10c970346451a04491b5964b0a75b6351f86 then fixes TestNodeCLI with re.DOTALL and removesuffix("\n"), removes the comment, and strengthens the assertion. The server sends the multiline error and bitcoin-cli preserves it; the test parser was capturing only Wrong type passed:.
Move the test_node.py portion of ffff10c970346451a04491b5964b0a75b6351f86 before the helper extraction. It has no dependency on the preceding commits, so the extraction can immediately check "type array is not of expected type object", and the later util.py adjustment becomes unnecessary. try_rpc checks substrings, and single-line messages remain unchanged. This preserves the final tree while avoiding an intermediate assertion and explanation that reviewers must later discard. Reword the moved commit’s motivating example, since its current wallet_sendall.py --usecli example depends on the helper use added in the second commit.
Background
Ralph's summary of historical context for the behaviour affected by this change. The historical record reviewed here is incomplete.
Ralph's inferences
The object-only interface was an explicitly tested contract at the pinned base, but a compatibility reason for that restriction is not established by the inspected evidence.
The base declares options as OBJ and explicitly expects a top-level fee_rate_estimator argument to fail with 'Unknown named parameter fee_rate_estimator', while accepting estimator selection inside the options object. The head changes that declaration to OBJ_NAMED_PARAMS without changing the estimator's options-parsing body. This distinguishes an existing, tested rejection from evidence that preserving that rejection was a historical compatibility requirement.
The pre-existing named-options framework treats explicit options and top-level option names as alternative input forms, with conflicts rejected rather than resolved through precedence or merging.
Base RPC unit tests separately accept named-only options and an explicit options object. They reject combining the two even when the duplicated value is identical. They also reject an options object supplied positionally together with a different named option. Thus estimatesmartfee's previous object-only contract did not offer a merge or precedence rule to preserve; the head's interface declaration adopts an existing framework with explicit conflict behavior. The tests establish that behavior, but do not explain its historical design motivation.