diff options
author | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2019-06-20 02:39:38 +0900 |
---|---|---|
committer | Karl-Johan Alm <karljohan-alm@garage.co.jp> | 2019-07-05 11:22:02 +0900 |
commit | 5c5e32bbe3dfa790dd8bb421fbd6301ae10b09f5 (patch) | |
tree | 8dcdcbeae96f2a7fb03b36bfa50d269b6bc68749 /src/rpc/server.h | |
parent | 0ab8ba1ac65b70f044a5e323b13d098cef33695a (diff) |
rpc: migrate JSONRPCRequest functionality into request.cpp
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r-- | src/rpc/server.h | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/src/rpc/server.h b/src/rpc/server.h index 431ff0bb7c..b060db5bf9 100644 --- a/src/rpc/server.h +++ b/src/rpc/server.h @@ -7,13 +7,14 @@ #define BITCOIN_RPC_SERVER_H #include <amount.h> -#include <rpc/protocol.h> +#include <rpc/request.h> #include <uint256.h> #include <list> #include <map> #include <stdint.h> #include <string> +#include <functional> #include <univalue.h> @@ -27,21 +28,6 @@ namespace RPCServer void OnStopped(std::function<void ()> slot); } -class JSONRPCRequest -{ -public: - UniValue id; - std::string strMethod; - UniValue params; - bool fHelp; - std::string URI; - std::string authUser; - std::string peerAddr; - - JSONRPCRequest() : id(NullUniValue), params(NullUniValue), fHelp(false) {} - void parse(const UniValue& valRequest); -}; - /** Query whether RPC is running */ bool IsRPCRunning(); |