Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | public: | ||||
bool WriteBatchSync( | bool WriteBatchSync( | ||||
const std::vector<std::pair<int, const CBlockFileInfo *>> &fileInfo, | const std::vector<std::pair<int, const CBlockFileInfo *>> &fileInfo, | ||||
int nLastFile, const std::vector<const CBlockIndex *> &blockinfo); | int nLastFile, const std::vector<const CBlockIndex *> &blockinfo); | ||||
bool ReadBlockFileInfo(int nFile, CBlockFileInfo &info); | bool ReadBlockFileInfo(int nFile, CBlockFileInfo &info); | ||||
bool ReadLastBlockFile(int &nFile); | bool ReadLastBlockFile(int &nFile); | ||||
bool WriteReindexing(bool fReindexing); | bool WriteReindexing(bool fReindexing); | ||||
bool ReadReindexing(bool &fReindexing); | bool ReadReindexing(bool &fReindexing); | ||||
bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos); | |||||
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( | bool LoadBlockIndexGuts( | ||||
const Config &config, | const Config &config, | ||||
std::function<CBlockIndex *(const uint256 &)> insertBlockIndex); | std::function<CBlockIndex *(const uint256 &)> insertBlockIndex); | ||||
}; | }; | ||||
/** | /** | ||||
Show All 33 Lines |