blockchain_db: add a txpool tx getter which returns existence

Avoids exception spam for the "nope, not found" case
This commit is contained in:
moneromooo-monero
2017-06-11 15:10:18 +01:00
parent e3da0ca828
commit 235df7f484
7 changed files with 31 additions and 5 deletions

View File

@@ -627,8 +627,7 @@ namespace cryptonote
CRITICAL_REGION_LOCAL1(m_blockchain);
try
{
txblob = m_blockchain.get_txpool_tx_blob(id);
return true;
return m_blockchain.get_txpool_tx_blob(id, txblob);
}
catch (const std::exception &e)
{