| 1302 | } |
| 1303 | |
| 1304 | void CTxMemPool::GetTransactionAncestry(const uint256& txid, size_t& ancestors, size_t& descendants, size_t* const ancestorsize, CAmount* const ancestorfees) const { |
| 1305 | LOCK(cs); |
| 1306 | auto it = mapTx.find(txid); |
| 1307 | ancestors = descendants = 0; |
| 1308 | if (it != mapTx.end()) { |
| 1309 | ancestors = it->GetCountWithAncestors(); |
| 1310 | if (ancestorsize) *ancestorsize = it->GetSizeWithAncestors(); |
| 1311 | if (ancestorfees) *ancestorfees = it->GetModFeesWithAncestors(); |
| 1312 | descendants = CalculateDescendantMaximum(it); |
| 1313 | } |
| 1314 | } |
| 1315 | |
| 1316 | bool CTxMemPool::IsLoaded() const |
| 1317 | { |