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
master
moneroexamples 6 years ago
parent 4bac6731d5
commit afd168cd6c

@ -110,7 +110,12 @@ MempoolStatus::read_mempool()
// get txs in the mempool // get txs in the mempool
std::vector<tx_info> mempool_tx_info; std::vector<tx_info> mempool_tx_info;
if (!rpc.get_mempool(mempool_tx_info)) //std::vector<tx_info> pool_tx_info;
std::vector<spent_key_image_info> 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; cerr << "Getting mempool failed " << endl;
return false; return false;

Loading…
Cancel
Save