aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/daemon_handler.h
diff options
context:
space:
mode:
authorThomas Winget <tewinget@gmail.com>2017-09-05 12:20:40 -0400
committerThomas Winget <tewinget@gmail.com>2017-09-05 12:20:40 -0400
commit0299cb77ca18073daf3cf371f8da013fb596ae48 (patch)
tree14aa3b3c6ddbdf064246bb3800fec3e90c9b609d /src/rpc/daemon_handler.h
parentjson serialization for rpc-relevant monero types (diff)
downloadmonero-0299cb77ca18073daf3cf371f8da013fb596ae48.tar.xz
Fix various oversights/bugs in ZMQ RPC server code
- Add some RPC commands (and touch up a couple others) - some bounds checking - some better pointer management - const correctness and error handling -- Thanks @vtnerd for type help with serialization and CMake changes
Diffstat (limited to '')
-rw-r--r--src/rpc/daemon_handler.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/rpc/daemon_handler.h b/src/rpc/daemon_handler.h
index 9997956c7..0d356bad2 100644
--- a/src/rpc/daemon_handler.h
+++ b/src/rpc/daemon_handler.h
@@ -92,6 +92,8 @@ class DaemonHandler : public RpcHandler
void handle(const GetBlockHeaderByHeight::Request& req, GetBlockHeaderByHeight::Response& res);
+ void handle(const GetBlockHeadersByHeight::Request& req, GetBlockHeadersByHeight::Response& res);
+
void handle(const GetBlock::Request& req, GetBlock::Response& res);
void handle(const GetPeerList::Request& req, GetPeerList::Response& res);
@@ -108,10 +110,6 @@ class DaemonHandler : public RpcHandler
void handle(const StopDaemon::Request& req, StopDaemon::Response& res);
- void handle(const FastExit::Request& req, FastExit::Response& res);
-
- void handle(const OutPeers::Request& req, OutPeers::Response& res);
-
void handle(const StartSaveGraph::Request& req, StartSaveGraph::Response& res);
void handle(const StopSaveGraph::Request& req, StopSaveGraph::Response& res);