aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/rpc_handler.h
diff options
context:
space:
mode:
authorLee Clagett <code@leeclagett.com>2020-05-29 22:08:19 -0400
committerLee Clagett <code@leeclagett.com>2020-08-14 19:46:59 +0000
commit60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a (patch)
treea0dee7bae6708f24732aa8ed0e3da39de4729a8f /src/rpc/rpc_handler.h
parentFix pruned tx for ZMQ's GetBlocksFast (diff)
downloadmonero-60627c9f24f5c322c59abee7c8e9e03a2b2ccf5a.tar.xz
Switch to insitu parsing for ZMQ-JSON; GetBlocksFast reads 13%+ faster
Diffstat (limited to 'src/rpc/rpc_handler.h')
-rw-r--r--src/rpc/rpc_handler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/rpc/rpc_handler.h b/src/rpc/rpc_handler.h
index 97dd0598b..9757fc462 100644
--- a/src/rpc/rpc_handler.h
+++ b/src/rpc/rpc_handler.h
@@ -55,7 +55,7 @@ class RpcHandler
RpcHandler() { }
virtual ~RpcHandler() { }
- virtual epee::byte_slice handle(const std::string& request) = 0;
+ virtual epee::byte_slice handle(std::string&& request) = 0;
static boost::optional<output_distribution_data>
get_output_distribution(const std::function<bool(uint64_t, uint64_t, uint64_t, uint64_t&, std::vector<uint64_t>&, uint64_t&)> &f, uint64_t amount, uint64_t from_height, uint64_t to_height, const std::function<crypto::hash(uint64_t)> &get_hash, bool cumulative, uint64_t blockchain_height);