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

Method queryHashes

src/txmempool.cpp:780–791  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

778}
779
780void CTxMemPool::queryHashes(std::vector<uint256>& vtxid)
781{
782 LOCK(cs);
783 auto iters = GetSortedDepthAndScore();
784
785 vtxid.clear();
786 vtxid.reserve(mapTx.size());
787
788 for (auto it : iters) {
789 vtxid.push_back(it->GetTx().GetHash());
790 }
791}
792
793static TxMempoolInfo GetInfo(CTxMemPool::indexed_transaction_set::const_iterator it) {
794 return TxMempoolInfo{it->GetSharedTx(), it->GetTime(), CFeeRate(it->GetFee(), it->GetTxSize()), it->GetModifiedFee() - it->GetFee()};

Callers 1

mempoolToJSONFunction · 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