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

Method ReadBestBlock

src/index/base.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36{}
37
38bool BaseIndex::DB::ReadBestBlock(CBlockLocator& locator) const
39{
40 bool success = Read(DB_BEST_BLOCK, locator);
41 if (!success) {
42 locator.SetNull();
43 }
44 return success;
45}
46
47void BaseIndex::DB::WriteBestBlock(CDBBatch& batch, const CBlockLocator& locator)
48{

Callers 1

InitMethod · 0.45

Calls 1

SetNullMethod · 0.45

Tested by

no test coverage detected