diff options
author | MarcoFalke <falke.marco@gmail.com> | 2022-03-15 19:31:10 +0100 |
---|---|---|
committer | MarcoFalke <falke.marco@gmail.com> | 2022-03-15 19:29:59 +0100 |
commit | fad4c8934c7b4342076bd01daa4abf4d83617b17 (patch) | |
tree | 937d12dce509b7a7afa5700444fc310f405f2b12 /src/rpc/mempool.cpp | |
parent | fafd40b5413aea5f8ec47c24fdb2ccc702e7cdd7 (diff) | |
download | bitcoin-fad4c8934c7b4342076bd01daa4abf4d83617b17.tar.xz |
Add RegisterMempoolRPCCommands helper
Diffstat (limited to 'src/rpc/mempool.cpp')
-rw-r--r-- | src/rpc/mempool.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/rpc/mempool.cpp b/src/rpc/mempool.cpp index 34b89f33ca..bc7ef0c08e 100644 --- a/src/rpc/mempool.cpp +++ b/src/rpc/mempool.cpp @@ -457,3 +457,20 @@ RPCHelpMan savemempool() }, }; } + +void RegisterMempoolRPCCommands(CRPCTable& t) +{ + static const CRPCCommand commands[]{ + // category actor (function) + // -------- ---------------- + {"blockchain", &getmempoolancestors}, + {"blockchain", &getmempooldescendants}, + {"blockchain", &getmempoolentry}, + {"blockchain", &getmempoolinfo}, + {"blockchain", &getrawmempool}, + {"blockchain", &savemempool}, + }; + for (const auto& c : commands) { + t.appendCommand(c.name, &c); + } +} |