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

Method GetBestBlock

src/txdb.cpp:53–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51}
52
53uint256 CCoinsViewDB::GetBestBlock() const {
54 uint256 hashBestChain;
55 if (!db.Read(DB_BEST_BLOCK, hashBestChain))
56 return uint256();
57 return hashBestChain;
58}
59
60bool CCoinsViewDB::BatchWrite(CCoinsMap &mapCoins, const uint256 &hashBlock) {
61 CLevelDBBatch batch;

Callers 6

gettxoutFunction · 0.45
AcceptToMemoryPoolFunction · 0.45
CheckInputsFunction · 0.45
DisconnectBlockFunction · 0.45
ConnectBlockFunction · 0.45
LoadBlockIndexDBFunction · 0.45

Calls 2

uint256Class · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected