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

Method HaveCoinInCache

src/coins.cpp:173–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

171}
172
173bool CCoinsViewCache::HaveCoinInCache(const COutPoint &outpoint) const {
174 CCoinsMap::const_iterator it = cacheCoins.find(outpoint);
175 return (it != cacheCoins.end() && !it->second.coin.IsSpent());
176}
177
178uint256 CCoinsViewCache::GetBestBlock() const {
179 if (m_block_hash.IsNull())

Callers 10

PreChecksMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
BOOST_FIXTURE_TEST_CASEFunction · 0.80
CheckCacheFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
SimulationTestMethod · 0.80
TestFlushBehaviorMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
TestCoinsViewFunction · 0.80
FUZZ_TARGETFunction · 0.80

Calls 3

findMethod · 0.80
endMethod · 0.45
IsSpentMethod · 0.45

Tested by 9

BOOST_AUTO_TEST_CASEFunction · 0.64
BOOST_FIXTURE_TEST_CASEFunction · 0.64
CheckCacheFunction · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
SimulationTestMethod · 0.64
TestFlushBehaviorMethod · 0.64
BOOST_AUTO_TEST_CASEFunction · 0.64
TestCoinsViewFunction · 0.64
FUZZ_TARGETFunction · 0.64