From afd168cd6c567b034b3f4f2d3031be9ad3e3a09a Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Mon, 22 Oct 2018 08:19:42 +0800 Subject: [PATCH] Fix: txpool: Failed to parse transaction from blob Gets txpool from lmdb now, instead of using RPC call as before. https://github.com/moneroexamples/onion-monero-blockchain-explorer/ issues/152 --- src/MempoolStatus.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/MempoolStatus.cpp b/src/MempoolStatus.cpp index fa4d46b..0778a47 100644 --- a/src/MempoolStatus.cpp +++ b/src/MempoolStatus.cpp @@ -110,7 +110,12 @@ MempoolStatus::read_mempool() // get txs in the mempool std::vector mempool_tx_info; - if (!rpc.get_mempool(mempool_tx_info)) + //std::vector pool_tx_info; + std::vector pool_key_image_info; + + if (!mcore->get_mempool().get_transactions_and_spent_keys_info( + mempool_tx_info, + pool_key_image_info)) { cerr << "Getting mempool failed " << endl; return false;