From 77077d6896b80b7b1ab6355752fe9ec9a2f2bac5 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 10 Jul 2017 15:18:10 +0800 Subject: [PATCH] fix: timestamp for unconfrimed txs --- src/TxSearch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/TxSearch.cpp b/src/TxSearch.cpp index 946a5a1..5aa02fd 100755 --- a/src/TxSearch.cpp +++ b/src/TxSearch.cpp @@ -536,7 +536,7 @@ TxSearch::find_txs_in_mempool( j_tx["hash"] = oi_identification.tx_hash_str; j_tx["tx_pub_key"] = oi_identification.tx_pub_key_str; - j_tx["timestamp"] = timestamp_to_str_gm(recieve_time); // when it got into mempool + j_tx["timestamp"] = recieve_time; // when it got into mempool j_tx["total_received"] = oi_identification.total_received; j_tx["total_sent"] = 0; // to be set later when looking for key images j_tx["unlock_time"] = 0; // for mempool we set it to zero @@ -630,7 +630,7 @@ TxSearch::find_txs_in_mempool( j_tx["hash"] = oi_identification.tx_hash_str; j_tx["tx_pub_key"] = oi_identification.tx_pub_key_str; - j_tx["timestamp"] = timestamp_to_str_gm(recieve_time); // when it got into mempool + j_tx["timestamp"] = recieve_time; // when it got into mempool j_tx["total_received"] = 0; // we did not recive any outputs/xmr j_tx["total_sent"] = total_sent; // to be set later when looking for key images j_tx["unlock_time"] = 0; // for mempool we set it to zero