aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/server.h
diff options
context:
space:
mode:
authorKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-06-20 02:39:38 +0900
committerKarl-Johan Alm <karljohan-alm@garage.co.jp>2019-07-05 11:22:02 +0900
commit5c5e32bbe3dfa790dd8bb421fbd6301ae10b09f5 (patch)
tree8dcdcbeae96f2a7fb03b36bfa50d269b6bc68749 /src/rpc/server.h
parent0ab8ba1ac65b70f044a5e323b13d098cef33695a (diff)
downloadbitcoin-5c5e32bbe3dfa790dd8bb421fbd6301ae10b09f5.tar.xz
rpc: migrate JSONRPCRequest functionality into request.cpp
Diffstat (limited to 'src/rpc/server.h')
-rw-r--r--src/rpc/server.h18
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();