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

Method HasDescendants

src/txmempool.cpp:122–128  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool CTxMemPool::HasDescendants(const Txid& txid) const
123{
124 LOCK(cs);
125 auto entry = GetEntry(txid);
126 if (!entry) return false;
127 return m_txgraph->GetDescendants(*entry, TxGraph::Level::MAIN).size() > 1;
128}
129
130CTxMemPool::setEntries CTxMemPool::CalculateMemPoolAncestors(const CTxMemPoolEntry &entry) const
131{

Callers 1

Calls 2

GetDescendantsMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected