MCPcopy Create free account
hub / github.com/ElementsProject/elements / HaveCoinInCache

Method HaveCoinInCache

src/coins.cpp:186–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

184}
185
186bool CCoinsViewCache::HaveCoinInCache(const COutPoint &outpoint) const {
187 CCoinsMap::const_iterator it = cacheCoins.find(native_key(outpoint));
188 return (it != cacheCoins.end() && !it->second.coin.IsSpent());
189}
190
191//
192// ELEMENTS:

Callers 5

PreChecksMethod · 0.80
AcceptPackageMethod · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80
SimulationTestFunction · 0.80
FUZZ_TARGET_INITFunction · 0.80

Calls 4

native_keyFunction · 0.85
findMethod · 0.80
endMethod · 0.45
IsSpentMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
SimulationTestFunction · 0.64
FUZZ_TARGET_INITFunction · 0.64