| 172 | } |
| 173 | |
| 174 | std::shared_ptr<CBaseTx> CTxMemPool::Lookup(const uint256 txid) const { |
| 175 | LOCK(cs); |
| 176 | typename map<uint256, CTxMemPoolEntry>::const_iterator i = memPoolTxs.find(txid); |
| 177 | if (i == memPoolTxs.end()) |
| 178 | return std::shared_ptr<CBaseTx>(); |
| 179 | return i->second.GetTransaction(); |
| 180 | } |
no test coverage detected