Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.h
Show First 20 Lines • Show All 150 Lines • ▼ Show 20 Lines | public: | ||||
/// Write a batch of transaction positions to the DB. | /// Write a batch of transaction positions to the DB. | ||||
bool WriteTxs(const std::vector<std::pair<uint256, CDiskTxPos>> &v_pos); | bool WriteTxs(const std::vector<std::pair<uint256, CDiskTxPos>> &v_pos); | ||||
/// Read block locator of the chain that the txindex is in sync with. | /// Read block locator of the chain that the txindex is in sync with. | ||||
bool ReadBestBlock(CBlockLocator &locator) const; | bool ReadBestBlock(CBlockLocator &locator) const; | ||||
/// Write block locator of the chain that the txindex is in sync with. | /// Write block locator of the chain that the txindex is in sync with. | ||||
bool WriteBestBlock(const CBlockLocator &locator); | bool WriteBestBlock(const CBlockLocator &locator); | ||||
/// Migrate txindex data from the block tree DB, where it may be for older | |||||
/// nodes that have not been upgraded yet to the new database. | |||||
bool MigrateData(CBlockTreeDB &block_tree_db, | |||||
const CBlockLocator &best_locator); | |||||
}; | }; | ||||
#endif // BITCOIN_TXDB_H | #endif // BITCOIN_TXDB_H |