From ce6f81fd2aedbded2ccc4289c1c9407107cea55d Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 22 Oct 2018 08:41:59 +0800 Subject: [PATCH] Fix for txpool: Failed to parse transaction from blob https://github.com/moneroexamples/onion-monero-blockchain-explorer/ issues/152 --- src/MempoolStatus.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/MempoolStatus.cpp b/src/MempoolStatus.cpp index 0778a47..04697ff 100644 --- a/src/MempoolStatus.cpp +++ b/src/MempoolStatus.cpp @@ -113,6 +113,7 @@ MempoolStatus::read_mempool() //std::vector pool_tx_info; std::vector pool_key_image_info; + // get txpool from lmdb database instead of rpc call if (!mcore->get_mempool().get_transactions_and_spent_keys_info( mempool_tx_info, pool_key_image_info)) @@ -121,6 +122,8 @@ MempoolStatus::read_mempool() return false; } + (void) pool_key_image_info; + // if dont have tx_blob member, construct tx // from json obtained from the rpc call