MCPcopy Create free account
hub / github.com/ElementsProject/elements / infoAll

Method infoAll

src/txmempool.cpp:990–1002  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

988}
989
990std::vector<TxMempoolInfo> CTxMemPool::infoAll() const
991{
992 LOCK(cs);
993 auto iters = GetSortedDepthAndScore();
994
995 std::vector<TxMempoolInfo> ret;
996 ret.reserve(mapTx.size());
997 for (auto it : iters) {
998 ret.push_back(GetInfo(it));
999 }
1000
1001 return ret;
1002}
1003
1004CTransactionRef CTxMemPool::get(const uint256& hash) const
1005{

Callers 3

SendMessagesMethod · 0.80
DumpMempoolFunction · 0.80
FinishFunction · 0.80

Calls 4

GetInfoFunction · 0.85
reserveMethod · 0.45
sizeMethod · 0.45
push_backMethod · 0.45

Tested by 1

FinishFunction · 0.64