From c1b03fb1a6c2eeb6dce60efa9e5535d6c5c65556 Mon Sep 17 00:00:00 2001 From: moneromooo-monero Date: Sat, 25 Jul 2020 17:00:29 +0000 Subject: [PATCH] rpc: return empty txid get_outs rather than 00..00 when not requested It's more obvious there's no txid, and it saves space --- src/rpc/core_rpc_server.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/rpc/core_rpc_server.cpp b/src/rpc/core_rpc_server.cpp index bc561abc4..82d83f41d 100644 --- a/src/rpc/core_rpc_server.cpp +++ b/src/rpc/core_rpc_server.cpp @@ -771,7 +771,8 @@ namespace cryptonote outkey.mask = epee::string_tools::pod_to_hex(i.mask); outkey.unlocked = i.unlocked; outkey.height = i.height; - outkey.txid = epee::string_tools::pod_to_hex(i.txid); + if (req.get_txid) + outkey.txid = epee::string_tools::pod_to_hex(i.txid); } res.status = CORE_RPC_STATUS_OK;