MCPcopy Create free account
hub / github.com/LUX-Core/lux / queryHashes

Method queryHashes

src/txmempool.cpp:819–830  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

817}
818
819void CTxMemPool::queryHashes(std::vector<uint256>& vtxid)
820{
821 LOCK(cs);
822 auto iters = GetSortedDepthAndScore();
823
824 vtxid.clear();
825 vtxid.reserve(mapTx.size());
826
827 for (auto it : iters) {
828 vtxid.push_back(it->GetTx().GetHash());
829 }
830}
831
832static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) {
833 return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), CFeeRate(it->GetFee(), it->GetTxSize()), it->GetModifiedFee() - it->GetFee()};

Callers 2

getrawmempoolFunction · 0.80
ProcessMessageFunction · 0.80

Calls 5

clearMethod · 0.45
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45
GetHashMethod · 0.45

Tested by

no test coverage detected