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

Method HaveCoin

src/txdb.cpp:102–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

100}
101
102bool CCoinsViewDB::HaveCoin(const COutPoint& outpoint) const
103{
104 return m_db->Exists(CoinEntry(&outpoint));
105}
106
107uint256 CCoinsViewDB::GetBestBlock() const {
108 uint256 hashBestChain;

Callers 12

checkMethod · 0.45
PreChecksMethod · 0.45
ApplyTxInUndoFunction · 0.45
ConnectBlockMethod · 0.45
BOOST_AUTO_TEST_CASEFunction · 0.45
SimulationTestMethod · 0.45
BOOST_FIXTURE_TEST_CASEFunction · 0.45
TestFlushBehaviorMethod · 0.45
SetupSnapshotMethod · 0.45
TestCoinsViewFunction · 0.45
utxo_snapshot_fuzzFunction · 0.45
FUZZ_TARGETFunction · 0.45

Calls 2

CoinEntryClass · 0.70
ExistsMethod · 0.45

Tested by 8

BOOST_AUTO_TEST_CASEFunction · 0.36
SimulationTestMethod · 0.36
BOOST_FIXTURE_TEST_CASEFunction · 0.36
TestFlushBehaviorMethod · 0.36
SetupSnapshotMethod · 0.36
TestCoinsViewFunction · 0.36
utxo_snapshot_fuzzFunction · 0.36
FUZZ_TARGETFunction · 0.36