mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-19 13:27:35 +02:00
Get rid of CTxMempool::lookup() entirely
This commit is contained in:
parent
c2a4724642
commit
288d85ddf2
4 changed files with 15 additions and 24 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue