Fix for txpool: Failed to parse transaction from blob

https://github.com/moneroexamples/onion-monero-blockchain-explorer/
issues/152
master
moneroexamples 6 years ago
parent 0d8b568579
commit ce6f81fd2a

@ -113,6 +113,7 @@ MempoolStatus::read_mempool()
//std::vector<tx_info> pool_tx_info; //std::vector<tx_info> pool_tx_info;
std::vector<spent_key_image_info> pool_key_image_info; std::vector<spent_key_image_info> pool_key_image_info;
// get txpool from lmdb database instead of rpc call
if (!mcore->get_mempool().get_transactions_and_spent_keys_info( if (!mcore->get_mempool().get_transactions_and_spent_keys_info(
mempool_tx_info, mempool_tx_info,
pool_key_image_info)) pool_key_image_info))
@ -121,6 +122,8 @@ MempoolStatus::read_mempool()
return false; return false;
} }
(void) pool_key_image_info;
// if dont have tx_blob member, construct tx // if dont have tx_blob member, construct tx
// from json obtained from the rpc call // from json obtained from the rpc call

Loading…
Cancel
Save