1 minor finding
Earlier concerns neither republished nor resolved: 2 suggestions. See the Run archive for their assessments.
Findings
[minor] · Single-line CTransaction::ToString() removes GUI debug-view line breaks
With debug categories enabled, the Qt transaction-details debug view now displays the transaction header, inputs, witnesses, and outputs as one wrapped paragraph instead of separate lines.
Location: src/primitives/transaction.cpp:118 (head).
Details and suggested fix
src/qt/transactiondesc.cpp passes this string to GUIUtil::HtmlEscape(wtx.tx->ToString(), true), which converts newlines into <br> breaks. Unlike the logger, this consumer never turned them into \x0a escapes. Removing the newlines therefore removes the entry boundaries in its Transaction subsection; Qt rich text also collapses the four-space separators. The separate Inputs list remains, but does not reproduce the scripts, witnesses, and outputs. Keep a multiline representation for the GUI and use a compact formatter at logging sites such as CWallet::CommitTransaction. Leave BCLog::Logger::Format escaping unchanged so log records still remain on one line.
Earlier concerns
Earlier reports raised these, with the titles and severities shown there. This review neither republished nor resolved them.
- [suggestion]: The scripted-diff changes output for arguments ending in a newline (earlier report)
- [suggestion]:
fa885f4leaves additional transaction-format changes unexplained (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
Witness visibility has been proposed specifically to improve transaction-input debugging. In historical PR #33711, discussion explicitly recognized the existing all-inputs-then-all-witnesses ordering and considered changing that order to avoid duplicate witness output. The author reported updating the proposal to remove duplication; the proposal was subsequently closed for inactivity.
The secondary commit groups each input with its witness. The inspected history treats grouping as a diagnostic presentation tradeoff rather than documenting an immutable ordering requirement. It also establishes why retaining witness information matters, without establishing that the earlier proposal became accepted behavior.
Source 1 · Source 2 · Source 3 · Source 4
The historical reason for escaping embedded log newlines was to prevent untrusted RPC method names and wallet names from forging apparent node-generated log lines. In #35833, preserving multiline output through a SplitLines helper was challenged as unsafe for untrusted input, and the author reported dropping that helper.
This explains why a multiline transaction representation no longer produces ordinary multiline log output. The documented constraint concerns trustworthy log-record boundaries, not a requirement that every non-log consumer use a single-line transaction representation.