MCPcopy Create free account
hub / github.com/BTCGPU/BTCGPU / Uncache

Method Uncache

src/coins.cpp:210–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

208}
209
210void CCoinsViewCache::Uncache(const COutPoint& hash)
211{
212 CCoinsMap::iterator it = cacheCoins.find(hash);
213 if (it != cacheCoins.end() && it->second.flags == 0) {
214 cachedCoinsUsage -= it->second.coin.DynamicMemoryUsage();
215 cacheCoins.erase(it);
216 }
217}
218
219unsigned int CCoinsViewCache::GetCacheSize() const {
220 return cacheCoins.size();

Callers 3

LimitMempoolSizeFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 4

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

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64