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

Method GetBestBlock

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

Source from the content-addressed store, hash-verified

103}
104
105uint256 CCoinsViewDB::GetBestBlock() const {
106 uint256 hashBestChain;
107 if (!m_db->Read(DB_BEST_BLOCK, hashBestChain))
108 return uint256();
109 return hashBestChain;
110}
111
112std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const {
113 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