Changeset View
Changeset View
Standalone View
Standalone View
src/txdb.cpp
Show First 20 Lines • Show All 163 Lines • ▼ Show 20 Lines | |||||
bool CBlockTreeDB::WriteReindexing(bool fReindexing) { | bool CBlockTreeDB::WriteReindexing(bool fReindexing) { | ||||
if (fReindexing) | if (fReindexing) | ||||
return Write(DB_REINDEX_FLAG, '1'); | return Write(DB_REINDEX_FLAG, '1'); | ||||
else | else | ||||
return Erase(DB_REINDEX_FLAG); | return Erase(DB_REINDEX_FLAG); | ||||
} | } | ||||
bool CBlockTreeDB::ReadReindexing(bool &fReindexing) { | void CBlockTreeDB::ReadReindexing(bool &fReindexing) { | ||||
fReindexing = Exists(DB_REINDEX_FLAG); | fReindexing = Exists(DB_REINDEX_FLAG); | ||||
return true; | |||||
} | } | ||||
bool CBlockTreeDB::ReadLastBlockFile(int &nFile) { | bool CBlockTreeDB::ReadLastBlockFile(int &nFile) { | ||||
return Read(DB_LAST_BLOCK, nFile); | return Read(DB_LAST_BLOCK, nFile); | ||||
} | } | ||||
CCoinsViewCursor *CCoinsViewDB::Cursor() const { | CCoinsViewCursor *CCoinsViewDB::Cursor() const { | ||||
CCoinsViewDBCursor *i = new CCoinsViewDBCursor( | CCoinsViewDBCursor *i = new CCoinsViewDBCursor( | ||||
▲ Show 20 Lines • Show All 262 Lines • Show Last 20 Lines |