MCPcopy Create free account
hub / github.com/LUX-Core/lux / GetBestBlock

Method GetBestBlock

src/txdb.cpp:70–76  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

68}
69
70uint256 CCoinsViewDB::GetBestBlock() const
71{
72 uint256 hashBestChain;
73 if (!db.Read(DB_BEST_BLOCK, hashBestChain))
74 return uint256(0);
75 return hashBestChain;
76}
77
78bool CCoinsViewDB::BatchWrite(CCoinsMap& mapCoins, const uint256& hashBlock)
79{

Callers 8

gettxoutFunction · 0.45
AcceptToMemoryPoolFunction · 0.45
AcceptableInputsFunction · 0.45
CheckInputsFunction · 0.45
ConnectBlockFunction · 0.45
CheckBlockHeaderFunction · 0.45
LoadBlockIndexDBFunction · 0.45
GetSpendHeightFunction · 0.45

Calls 2

uint256Class · 0.70
ReadMethod · 0.45

Tested by

no test coverage detected