rpc: Split mempool RPCs from blockchain.cpp #24537

pull MarcoFalke wants to merge 3 commits into bitcoin:master from MarcoFalke:2203-mempoolRpc-🌛 changing 8 files +502 −463
  1. MarcoFalke commented at 4:50 pm on March 11, 2022: member

    The blockchain.cpp file is quite large. This makes it harder to navigate and increases the memory required to compile.

    Improve on both issues by splitting up the mempool RPCs to a separate file.

  2. rpc: Move mempool RPCs to new file
    Can be reviewed with:
    --color-moved=dimmed-zebra --color-moved-ws=ignore-all-space
    fa2a5f301a
  3. refactor: Avoid int64_t -> size_t -> int64_t conversion fafd40b541
  4. MarcoFalke force-pushed on Mar 11, 2022
  5. DrahtBot added the label Build system on Mar 11, 2022
  6. DrahtBot added the label RPC/REST/ZMQ on Mar 11, 2022
  7. MarcoFalke removed the label Build system on Mar 11, 2022
  8. MarcoFalke removed the label RPC/REST/ZMQ on Mar 11, 2022
  9. MarcoFalke added the label Refactoring on Mar 11, 2022
  10. MarcoFalke added the label RPC/REST/ZMQ on Mar 11, 2022
  11. DrahtBot commented at 9:41 pm on March 12, 2022: member

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

    Conflicts

    Reviewers, this pull request conflicts with the following ones:

    • #24513 (CChainState -> Chainstate by jamesob)
    • #24408 (rpc: add rpc to get mempool txs spending specific prevouts by t-bast)
    • #21422 (Add feerate histogram to getmempoolinfo by kiminuo)
    • #19792 (rpc: Add dumpcoinstats by fjahr)

    If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

  12. theStack commented at 1:56 pm on March 13, 2022: member
    Concept ACK
  13. theStack approved
  14. theStack commented at 12:26 pm on March 15, 2022: member
    Code-review ACK fafd40b5413aea5f8ec47c24fdb2ccc702e7cdd7
  15. in src/rpc/blockchain.cpp:2381 in fafd40b541 outdated
    2376@@ -2825,6 +2377,14 @@ UniValue CreateUTXOSnapshot(
    2377     return result;
    2378 }
    2379 
    2380+
    2381+RPCHelpMan getmempoolancestors();
    


    promag commented at 6:15 pm on March 15, 2022:
    nit, create a RegisterMempoolRPCCommands instead.

    MarcoFalke commented at 6:40 pm on March 15, 2022:
    Thx, done
  16. promag commented at 6:15 pm on March 15, 2022: member
    Code review ACK fafd40b5413aea5f8ec47c24fdb2ccc702e7cdd7.
  17. Add RegisterMempoolRPCCommands helper fad4c8934c
  18. promag commented at 6:35 pm on March 15, 2022: member
    Code review ACK fad4c8934c7b4342076bd01daa4abf4d83617b17.
  19. theStack approved
  20. theStack commented at 11:04 pm on March 15, 2022: member
    Code-review ACK fad4c8934c7b4342076bd01daa4abf4d83617b17 🏞️
  21. MarcoFalke merged this on Mar 16, 2022
  22. MarcoFalke closed this on Mar 16, 2022

  23. MarcoFalke deleted the branch on Mar 16, 2022
  24. sidhujag referenced this in commit 640fa0eed4 on Mar 16, 2022
  25. IsSanicolas referenced this in commit b5cce8f320 on Apr 27, 2022
  26. DrahtBot locked this on Mar 16, 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: 2024-09-29 01:12 UTC

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