MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / BlockTreeDB

Class BlockTreeDB

src/node/blockstorage.h:101–114  ·  view source on GitHub ↗

Access to the block database (blocks/index/) */

Source from the content-addressed store, hash-verified

99
100/** Access to the block database (blocks/index/) */
101class BlockTreeDB : public CDBWrapper
102{
103public:
104 using CDBWrapper::CDBWrapper;
105 void WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*>>& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo);
106 bool ReadBlockFileInfo(int nFile, CBlockFileInfo& info);
107 bool ReadLastBlockFile(int& nFile);
108 void WriteReindexing(bool fReindexing);
109 void ReadReindexing(bool& fReindexing);
110 void WriteFlag(const std::string& name, bool fValue);
111 bool ReadFlag(const std::string& name, bool& fValue);
112 bool LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex, const util::SignalInterrupt& interrupt)
113 EXCLUSIVE_LOCKS_REQUIRED(::cs_main);
114};
115} // namespace kernel
116
117namespace node {

Callers 1

block_index.cppFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected