From e3e1f83694e502377671d99f2f5449480ce01ae0 Mon Sep 17 00:00:00 2001 From: stoffu Date: Mon, 15 Oct 2018 11:57:02 +0900 Subject: [PATCH] tx_pool: store hex string instead of raw binary to tx_blob of get_transaction_pool RPC Inspired by https://github.com/masari-project/masari/issues/93 --- src/cryptonote_core/tx_pool.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptonote_core/tx_pool.cpp b/src/cryptonote_core/tx_pool.cpp index c31a2073b..c8b8a6786 100644 --- a/src/cryptonote_core/tx_pool.cpp +++ b/src/cryptonote_core/tx_pool.cpp @@ -766,7 +766,7 @@ namespace cryptonote m_blockchain.for_all_txpool_txes([&tx_infos, key_image_infos, include_sensitive_data](const crypto::hash &txid, const txpool_tx_meta_t &meta, const cryptonote::blobdata *bd){ tx_info txi; txi.id_hash = epee::string_tools::pod_to_hex(txid); - txi.tx_blob = *bd; + txi.tx_blob = epee::string_tools::buff_to_hex_nodelimer(*bd); transaction tx; if (!parse_and_validate_tx_from_blob(*bd, tx)) {