| 79 | stageEntries.erase(cit); |
| 80 | const setEntries &setChildren = GetMemPoolChildren(cit); |
| 81 | BOOST_FOREACH(const txiter childEntry, setChildren) { |
| 82 | cacheMap::iterator cacheIt = cachedDescendants.find(childEntry); |
| 83 | if (cacheIt != cachedDescendants.end()) { |
| 84 | // We've already calculated this one, just add the entries for this set |
| 85 | // but don't traverse again. |
| 86 | BOOST_FOREACH(const txiter cacheEntry, cacheIt->second) { |
| 87 | setAllDescendants.insert(cacheEntry); |
| 88 | } |
| 89 | } else if (!setAllDescendants.count(childEntry)) { |
| 90 | // Schedule for later processing |
| 91 | stageEntries.insert(childEntry); |
| 92 | } |
| 93 | } |
| 94 | } |
| 95 | // setAllDescendants now contains all in-mempool descendants of updateIt. |
| 96 | // Update and add to cached descendant map |
nothing calls this directly
no test coverage detected