MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / queryHashes

Method queryHashes

src/txmempool.cpp:742–750  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

740}
741
742void CTxMemPool::queryHashes(vector<uint256>& vtxid) const
743{
744 vtxid.clear();
745
746 LOCK(cs);
747 vtxid.reserve(mapTx.size());
748 for (indexed_transaction_set::iterator mi = mapTx.begin(); mi != mapTx.end(); ++mi)
749 vtxid.push_back(mi->GetTx().GetHash());
750}
751
752bool CTxMemPool::lookup(uint256 hash, CTransaction& result) const
753{

Callers 4

mempoolToJSONFunction · 0.80
initMappingMethod · 0.80
operator()Method · 0.80
ProcessMessageFunction · 0.80

Calls 7

reserveMethod · 0.80
clearMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected