MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / Lookup

Method Lookup

src/tx/txmempool.cpp:174–180  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172}
173
174std::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}

Callers 2

GetTransactionFunction · 0.45
GetTxDetailJSONFunction · 0.45

Calls 3

GetTransactionMethod · 0.80
findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected