aboutsummaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2016-06-07 13:44:56 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2016-06-07 13:44:56 +0200
commit288d85ddf2e0a0c9d25a23db56052883170466d0 (patch)
tree79da8673928fa0254b103a983b137136ea8de40c /src/main.cpp
parentc2a4724642400bc9200aeef4c725b5c07eee9d90 (diff)
downloadbitcoin-288d85ddf2e0a0c9d25a23db56052883170466d0.tar.xz
Get rid of CTxMempool::lookup() entirely
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index db0580bda6..b581ece09a 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -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;
}