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

Method GetDescendantCount

src/txmempool.h:272–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

270 std::tuple<size_t, size_t, CAmount> CalculateAncestorData(const CTxMemPoolEntry& entry) const EXCLUSIVE_LOCKS_REQUIRED(cs);
271 std::tuple<size_t, size_t, CAmount> CalculateDescendantData(const CTxMemPoolEntry& entry) const EXCLUSIVE_LOCKS_REQUIRED(cs);
272 int64_t GetDescendantCount(txiter it) const { LOCK(cs); return m_txgraph->GetDescendants(*it, TxGraph::Level::MAIN).size(); }
273 int64_t GetDescendantCount(const CTxMemPoolEntry &e) const { LOCK(cs); return m_txgraph->GetDescendants(e, TxGraph::Level::MAIN).size(); }
274 int64_t GetAncestorCount(const CTxMemPoolEntry &e) const { LOCK(cs); return m_txgraph->GetAncestors(e, TxGraph::Level::MAIN).size(); }
275 std::vector<CTxMemPoolEntry::CTxMemPoolEntryRef> GetChildren(const CTxMemPoolEntry &entry) const;

Callers 3

PackageTRUCChecksFunction · 0.80
SingleTRUCChecksFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80

Calls 2

GetDescendantsMethod · 0.80
sizeMethod · 0.45

Tested by 1

BOOST_FIXTURE_TEST_CASEFunction · 0.64