|
|
@ -115,12 +115,12 @@ private: |
|
|
|
void operator=(const CBlockTreeDB&); |
|
|
|
void operator=(const CBlockTreeDB&); |
|
|
|
public: |
|
|
|
public: |
|
|
|
bool WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo); |
|
|
|
bool WriteBatchSync(const std::vector<std::pair<int, const CBlockFileInfo*> >& fileInfo, int nLastFile, const std::vector<const CBlockIndex*>& blockinfo); |
|
|
|
bool ReadBlockFileInfo(int nFile, CBlockFileInfo &fileinfo); |
|
|
|
bool ReadBlockFileInfo(int nFile, CBlockFileInfo &info); |
|
|
|
bool ReadLastBlockFile(int &nFile); |
|
|
|
bool ReadLastBlockFile(int &nFile); |
|
|
|
bool WriteReindexing(bool fReindex); |
|
|
|
bool WriteReindexing(bool fReindexing); |
|
|
|
bool ReadReindexing(bool &fReindex); |
|
|
|
bool ReadReindexing(bool &fReindexing); |
|
|
|
bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos); |
|
|
|
bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos); |
|
|
|
bool WriteTxIndex(const std::vector<std::pair<uint256, CDiskTxPos> > &list); |
|
|
|
bool WriteTxIndex(const std::vector<std::pair<uint256, CDiskTxPos> > &vect); |
|
|
|
bool WriteFlag(const std::string &name, bool fValue); |
|
|
|
bool WriteFlag(const std::string &name, bool fValue); |
|
|
|
bool ReadFlag(const std::string &name, bool &fValue); |
|
|
|
bool ReadFlag(const std::string &name, bool &fValue); |
|
|
|
bool LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex); |
|
|
|
bool LoadBlockIndexGuts(const Consensus::Params& consensusParams, std::function<CBlockIndex*(const uint256&)> insertBlockIndex); |
|
|
|