Get rid of CTxMempool::lookup() entirely

This commit is contained in:
Pieter Wuille
2016-06-07 13:44:56 +02:00
parent c2a4724642
commit 288d85ddf2
4 changed files with 15 additions and 24 deletions

View File

@@ -1445,8 +1445,10 @@ bool GetTransaction(const uint256 &hash, CTransaction &txOut, const Consensus::P
LOCK(cs_main);
if (mempool.lookup(hash, txOut))
std::shared_ptr<const CTransaction> ptx = mempool.get(hash);
if (ptx)
{
txOut = *ptx;
return true;
}