From 1a1378b96f71c4ec600462184d32d3c87db6acd1 Mon Sep 17 00:00:00 2001 From: MarcoFalke Date: Tue, 13 Nov 2018 12:34:43 -0500 Subject: [PATCH] Merge #14530: Use RPCHelpMan to generate RPC doc strings fa483e13b3 rpc: Add RPCHelpMan for machine-generated help (MarcoFalke) fa0d36f712 rpc: Include rpc/util.h where needed for RPCHelpMan (MarcoFalke) Pull request description: This introduces a manager for the RPC help generation and demonstrates its use of it in some RPCs. It is the first non-exhaustive step toward #14378 and I will create pull requests for the next steps after this one is merged. Tree-SHA512: 86f68322443ff01cd964aaf0ebe186be63fbebe4c47676cf7a622cc2b5305fd176bd57badfd1bbf788a036812253eb0dead74ecc3b30664c3e0d9392b2248054 --- src/rpc/blockchain.cpp | 7 +-- src/rpc/mining.cpp | 1 + src/rpc/net.cpp | 5 +- src/rpc/rawtransaction.cpp | 97 +++++++++++++++++++++++++++++---- src/rpc/server.cpp | 3 +- src/rpc/util.cpp | 92 ++++++++++++++++++++++++++++++++ src/rpc/util.h | 49 +++++++++++++++++ src/wallet/rpcdump.cpp | 9 ++-- src/wallet/rpcwallet.cpp | 106 +++++++++++++++++++++++++++++++++++-- src/zmq/zmqrpc.cpp | 1 + 10 files changed, 346 insertions(+), 24 deletions(-) diff --git a/src/rpc/blockchain.cpp b/src/rpc/blockchain.cpp index fc932a8cb4..4676ac0cbf 100644 --- a/src/rpc/blockchain.cpp +++ b/src/rpc/blockchain.cpp @@ -14,23 +14,24 @@ #include #include #include +#include #include #include -#include #include #include #include #include #include +#include #include