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

Method HaveCoinInCache

src/coins.cpp:130–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool CCoinsViewCache::HaveCoinInCache(const COutPoint &outpoint) const {
131 CCoinsMap::const_iterator it = cacheCoins.find(outpoint);
132 return (it != cacheCoins.end() && !it->second.coin.IsSpent());
133}
134
135uint256 CCoinsViewCache::GetBestBlock() const {
136 if (hashBlock.IsNull())

Callers 3

EXCLUSIVE_LOCKS_REQUIREDFunction · 0.80
AcceptToMemoryPoolWorkerFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 3

findMethod · 0.45
endMethod · 0.45
IsSpentMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64