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

Method GetBestBlock

src/txdb.cpp:69–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

67}
68
69uint256 CCoinsViewDB::GetBestBlock() const {
70 uint256 hashBestChain;
71 if (!db.Read(DB_BEST_BLOCK, hashBestChain))
72 return uint256();
73 return hashBestChain;
74}
75
76std::vector<uint256> CCoinsViewDB::GetHeadBlocks() const {
77 std::vector<uint256> vhashHeadBlocks;

Callers 8

AppInitMainFunction · 0.45
AcceptToMemoryPoolWorkerFunction · 0.45
GetSpendHeightFunction · 0.45
ConnectBlockMethod · 0.45
FlushStateToDiskFunction · 0.45
DisconnectTipMethod · 0.45
LoadChainTipFunction · 0.45
VerifyDBMethod · 0.45

Calls 2

uint256Class · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected