MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / entryAll

Method entryAll

src/txmempool.cpp:588–598  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

586}
587
588std::vector<CTxMemPoolEntryRef> CTxMemPool::entryAll() const
589{
590 AssertLockHeld(cs);
591
592 std::vector<CTxMemPoolEntryRef> ret;
593 ret.reserve(mapTx.size());
594 for (const auto& it : GetSortedScoreWithTopology()) {
595 ret.emplace_back(*it);
596 }
597 return ret;
598}
599
600std::vector<TxMempoolInfo> CTxMemPool::infoAll() const
601{

Callers 3

MempoolToJSONFunction · 0.80
getdescriptoractivityFunction · 0.80

Calls 3

reserveMethod · 0.45
sizeMethod · 0.45
emplace_backMethod · 0.45

Tested by

no test coverage detected