diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-07-25 17:00:29 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2020-07-25 17:01:21 +0000 |
commit | c1b03fb1a6c2eeb6dce60efa9e5535d6c5c65556 (patch) | |
tree | 4931bc633bfc5a957aa3601184769e7754e1cf09 /src/rpc | |
parent | Merge pull request #6586 (diff) | |
download | monero-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')
-rw-r--r-- | src/rpc/core_rpc_server.cpp | 3 |
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; |