aboutsummaryrefslogtreecommitdiff
path: root/src/rpc/core_rpc_server.cpp
diff options
context:
space:
mode:
authormoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-07-25 17:00:29 +0000
committermoneromooo-monero <moneromooo-monero@users.noreply.github.com>2020-07-25 17:01:21 +0000
commitc1b03fb1a6c2eeb6dce60efa9e5535d6c5c65556 (patch)
tree4931bc633bfc5a957aa3601184769e7754e1cf09 /src/rpc/core_rpc_server.cpp
parentMerge pull request #6586 (diff)
downloadmonero-c1b03fb1a6c2eeb6dce60efa9e5535d6c5c65556.tar.xz
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
Diffstat (limited to 'src/rpc/core_rpc_server.cpp')
-rw-r--r--src/rpc/core_rpc_server.cpp3
1 files changed, 2 insertions, 1 deletions
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;