Access to the block database (blocks/index/) */
| 99 | |
| 100 | /** Access to the block database (blocks/index/) */ |
| 101 | class BlockTreeDB : public CDBWrapper |
| 102 | { |
| 103 | public: |
| 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 | |
| 117 | namespace node { |