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
This commit is contained in:
moneromooo-monero 2020-07-25 17:00:29 +00:00
parent 5d850dde99
commit c1b03fb1a6
No known key found for this signature in database
GPG Key ID: 686F07454D6CEFC3

View File

@ -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;