From be6f426a3fe26d1df447d010e49e142645afa7a2 Mon Sep 17 00:00:00 2001 From: Nathan Dorfman Date: Fri, 15 Feb 2019 23:28:15 -0700 Subject: rpc: Allow submitting tx as hex blob over ZMQ --- src/rpc/daemon_handler.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/rpc/daemon_handler.h') diff --git a/src/rpc/daemon_handler.h b/src/rpc/daemon_handler.h index 2c8ac3867..c3a130a04 100644 --- a/src/rpc/daemon_handler.h +++ b/src/rpc/daemon_handler.h @@ -68,6 +68,8 @@ class DaemonHandler : public RpcHandler void handle(const SendRawTx::Request& req, SendRawTx::Response& res); + void handle(const SendRawTxHex::Request& req, SendRawTxHex::Response& res); + void handle(const StartMining::Request& req, StartMining::Response& res); void handle(const GetInfo::Request& req, GetInfo::Response& res); @@ -136,6 +138,8 @@ class DaemonHandler : public RpcHandler bool getBlockHeaderByHash(const crypto::hash& hash_in, cryptonote::rpc::BlockHeaderResponse& response); + void handleTxBlob(const std::string& tx_blob, bool relay, SendRawTx::Response& res); + cryptonote::core& m_core; t_p2p& m_p2p; }; -- cgit v1.2.3