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

Method GetCoin

src/test/fuzz/coinscache_sim.cpp:147–154  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

145
146public:
147 std::optional<Coin> GetCoin(const COutPoint& outpoint) const final
148 {
149 if (auto it{m_data.find(outpoint)}; it != m_data.end()) {
150 assert(!it->second.IsSpent());
151 return it->second;
152 }
153 return std::nullopt;
154 }
155
156 void BatchWrite(CoinsViewCacheCursor& cursor, const uint256&) final
157 {

Callers 6

TestCoinsViewFunction · 0.45
FUZZ_TARGETFunction · 0.45
tx_pool.cppFile · 0.45
ResetChainmanAndMempoolFunction · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45

Calls 3

findMethod · 0.80
endMethod · 0.45
IsSpentMethod · 0.45

Tested by

no test coverage detected