Review report

core: PR #31252

1 minor finding

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

Findings

Link

[minor] · Verbosity-2 RPC help omits redeemScript and witnessScript

The help hides these verbosity-2 input fields and incorrectly says the remaining fields match verbosity 1; returned JSON and validation are unchanged.

Location: src/rpc/rawtransaction.cpp:232 (head).

Details and suggested fix

For getrawtransaction, verbosity-2 help enables include_scripts but also sets vin_inner_elision to “Same vin fields as verbosity = 1.” TxDoc adds redeemScript and witnessScript, then ElideGroup hides every field after the first; only prevout is restored to visibility. The help therefore omits both script objects and inaccurately describes the other input fields. getblock help also omits them: its verbosity-2 help refers to the getrawtransaction format, and its verbosity-3 input section refers back to verbosity 2. Restore visibility for redeemScript and witnessScript alongside prevout in TxDoc, and add a help-text assertion for both names.


Coverage details

Earlier concerns

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