MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / ReadBlockFileInfo

Method ReadBlockFileInfo

src/persistence/blockdb.cpp:80–82  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 return Write(dbk::GenDbKey(dbk::BLOCKFILE_NUM_INFO, nFile), info);
79}
80bool CBlockIndexDB::ReadBlockFileInfo(int32_t nFile, CBlockFileInfo &info) {
81 return Read(dbk::GenDbKey(dbk::BLOCKFILE_NUM_INFO, nFile), info);
82}
83
84CBlockIndex *InsertBlockIndex(uint256 hash) {
85 if (hash.IsNull())

Callers 4

FindUndoPosFunction · 0.80
FindBlockPosFunction · 0.80
LoadBlockIndexDBFunction · 0.80
LoadExternalBlockFileFunction · 0.80

Calls 1

GenDbKeyFunction · 0.85

Tested by

no test coverage detected