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

Method GetBestBlock

src/txdb.cpp:107–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107uint256 CCoinsViewDB::GetBestBlock() const {
108 uint256 hashBestChain;
109 if (!m_db->Read(DB_BEST_BLOCK, hashBestChain))
110 return uint256();
111 return hashBestChain;
112}
113
114std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const {
115 std::vector<uint256> vhashHeadBlocks;

Callers 7

PreChecksMethod · 0.45
ConnectBlockMethod · 0.45
FlushStateToDiskMethod · 0.45
DisconnectTipMethod · 0.45
LoadChainTipMethod · 0.45
VerifyDBMethod · 0.45

Calls 2

uint256Class · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected