MCPcopy Create free account
hub / github.com/LUX-Core/lux / Uncache

Method Uncache

src/coins.cpp:274–281  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

272}
273
274void CCoinsViewCache::Uncache(const uint256& hash)
275{
276 CCoinsMap::iterator it = cacheCoins.find(hash);
277 if (it != cacheCoins.end() && it->second.flags == 0) {
278 cachedCoinsUsage -= it->second.coins.DynamicMemoryUsage();
279 cacheCoins.erase(it);
280 }
281}
282
283unsigned int CCoinsViewCache::GetCacheSize() const
284{

Callers

nothing calls this directly

Calls 4

findMethod · 0.45
endMethod · 0.45
DynamicMemoryUsageMethod · 0.45
eraseMethod · 0.45

Tested by

no test coverage detected