Get rid of CTxMempool::lookup() entirely

This commit is contained in:
Pieter Wuille
2016-06-07 13:44:56 +02:00
committed by lateminer
parent 2737ac3d7f
commit 834db9539b
4 changed files with 15 additions and 24 deletions

View File

@@ -1579,8 +1579,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;
}