RPC/Blockchain: Minor improvements for scanblocks & scantxoutset docs/errors #26508

pull luke-jr wants to merge 2 commits into bitcoin:master from luke-jr:rpc_scanblocks_scantxoutset_doc_improvements changing 2 files +8 −7
  1. luke-jr commented at 12:46 AM on November 16, 2022: member
    • Clarify invalid-action error in scanblocks & scantxoutset
    • Mention action=='start' only returns after scan completes (already in scantxoutset)
    • Document relevant_blocks
  2. RPC/Blockchain: Clarify invalid-action error in scanblocks & scantxoutset 54b45e155e
  3. RPC/blockchain: scan{blocks,txoutset>: Further doc improvements f9869843a6
  4. kristapsk approved
  5. kristapsk commented at 2:26 AM on November 16, 2022: contributor

    utACK f9869843a664391a493fca4b0ad2828f944cb13a

  6. glozow added the label RPC/REST/ZMQ on Nov 16, 2022
  7. in src/rpc/blockchain.cpp:2208 in 54b45e155e outdated
    2204 | @@ -2205,7 +2205,7 @@ static RPCHelpMan scantxoutset()
    2205 |          result.pushKV("unspents", unspents);
    2206 |          result.pushKV("total_amount", ValueFromAmount(total_in));
    2207 |      } else {
    2208 | -        throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid command");
    2209 | +        throw JSONRPCError(RPC_INVALID_PARAMETER, strprintf("Invalid action '%s'", request.params[0].get_str()));
    


    maflcko commented at 7:58 AM on November 16, 2022:

    nit: Instead of parsing the action 4 times, maybe just parse it once in the beginning and keep a named reference to it?


    luke-jr commented at 9:09 PM on November 19, 2022:

    Out of scope here IMO. (There's also no parsing involved)

  8. maflcko approved
  9. maflcko commented at 7:59 AM on November 16, 2022: member

    lgtm

  10. DrahtBot commented at 10:20 AM on November 16, 2022: contributor

    <!--e57a25ab6845829454e8d69fc972939a-->

    The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

    <!--021abf342d371248e50ceaed478a90ca-->

    Reviews

    See the guideline for information on the review process.

    Type Reviewers
    ACK kristapsk, aureleoules, MarnixCroes
  11. aureleoules approved
  12. aureleoules commented at 12:43 PM on November 16, 2022: member

    ACK f9869843a664391a493fca4b0ad2828f944cb13a

  13. MarnixCroes approved
  14. MarnixCroes commented at 7:34 PM on November 16, 2022: contributor

    ACK f9869843a664391a493fca4b0ad2828f944cb13a

  15. maflcko merged this on Nov 21, 2022
  16. maflcko closed this on Nov 21, 2022

  17. sidhujag referenced this in commit 204b97d35b on Nov 21, 2022
  18. bitcoin locked this on Nov 21, 2023

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-13 15:13 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me