Fix for txpool: Failed to parse transaction from blob

https://github.com/moneroexamples/onion-monero-blockchain-explorer/
issues/152
This commit is contained in:
moneroexamples 2018-10-22 08:41:59 +08:00
parent 0d8b568579
commit ce6f81fd2a
1 changed files with 3 additions and 0 deletions

View File

@ -113,6 +113,7 @@ MempoolStatus::read_mempool()
//std::vector<tx_info> pool_tx_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(
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