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

Method ReadBestBlock

src/index/base.cpp:35–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{}
34
35bool BaseIndex::DB::ReadBestBlock(CBlockLocator& locator) const
36{
37 bool success = Read(DB_BEST_BLOCK, locator);
38 if (!success) {
39 locator.SetNull();
40 }
41 return success;
42}
43
44bool BaseIndex::DB::WriteBestBlock(const CBlockLocator& locator)
45{

Callers 1

InitMethod · 0.45

Calls 1

SetNullMethod · 0.45

Tested by

no test coverage detected