Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.h
Show First 20 Lines • Show All 115 Lines • ▼ Show 20 Lines | |||||
public: | 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 &fileinfo); | bool ReadBlockFileInfo(int nFile, CBlockFileInfo &fileinfo); | ||||
bool ReadLastBlockFile(int &nFile); | bool ReadLastBlockFile(int &nFile); | ||||
bool WriteReindexing(bool fReindex); | bool WriteReindexing(bool fReindex); | ||||
bool ReadReindexing(bool &fReindex); | bool ReadReindexing(bool &fReindex); | ||||
bool ReadTxIndex(const uint256 &txid, CDiskTxPos &pos); | bool ReadTxIndex(const txhash_t &unspentid, CDiskTxPos &pos); | ||||
bool WriteTxIndex(const std::vector<std::pair<uint256, CDiskTxPos>> &list); | bool WriteTxIndex(const std::vector<std::pair<txhash_t, CDiskTxPos>> &list); | ||||
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( | ||||
std::function<CBlockIndex *(const uint256 &)> insertBlockIndex); | std::function<CBlockIndex *(const uint256 &)> insertBlockIndex); | ||||
}; | }; | ||||
#endif // BITCOIN_TXDB_H | #endif // BITCOIN_TXDB_H |