core_rpc_server: add optional json decoded tx to COMMAND_RPC_GET_TRANSACTIONS

This commit is contained in:
moneromooo-monero
2015-10-13 22:11:52 +01:00
parent ca23c0e5c8
commit 253ed76ef4
2 changed files with 6 additions and 0 deletions

View File

@@ -253,6 +253,8 @@ namespace cryptonote
{
blobdata blob = t_serializable_object_to_blob(tx);
res.txs_as_hex.push_back(string_tools::buff_to_hex_nodelimer(blob));
if (req.decode_as_json)
res.txs_as_json.push_back(obj_to_json_str(tx));
}
BOOST_FOREACH(const auto& miss_tx, missed_txs)