MCPcopy Create free account
hub / github.com/bitcoinxt/bitcoinxt / BOOST_FOREACH

Function BOOST_FOREACH

src/txmempool.cpp:81–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 15

findMethod · 0.80
countMethod · 0.80
GetTxSizeMethod · 0.80
AccessCoinsMethod · 0.80
IsAvailableMethod · 0.80
endMethod · 0.45
insertMethod · 0.45
GetHashMethod · 0.45
GetFeeMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected