mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-09-15 15:58:11 +02:00
Several HelpExampleRpc call sites reused CLI-style argument strings verbatim (missing commas, bare unquoted words, or single backslashes that are not valid JSON escapes), producing curl examples that fail JSON parsing as documented. Also fixes a stray trailing quote in the restorewallet named-argument examples, a missing comma in the listunspent example, and a wrong-schema string-instead-of-array listunspent argument caught in review. Lines touched are converted to raw string literals (or strprintf with a raw string template) throughout, for consistency and to avoid manual quote/backslash escaping. Adds a regression check to rpc_help.py::dump_help() so this class of bug can't silently reappear.
7.8 KiB
Executable File
7.8 KiB
Executable File