From 0299cb77ca18073daf3cf371f8da013fb596ae48 Mon Sep 17 00:00:00 2001 From: Thomas Winget Date: Tue, 5 Sep 2017 12:20:40 -0400 Subject: 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 --- src/rpc/daemon_handler.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/rpc/daemon_handler.h') 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); -- cgit v1.2.3