Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/db.h
Show All 39 Lines | public: | ||||
std::map<std::string, int> mapFileUseCount; | std::map<std::string, int> mapFileUseCount; | ||||
std::map<std::string, Db *> mapDb; | std::map<std::string, Db *> mapDb; | ||||
CDBEnv(); | CDBEnv(); | ||||
~CDBEnv(); | ~CDBEnv(); | ||||
void Reset(); | void Reset(); | ||||
void MakeMock(); | void MakeMock(); | ||||
bool IsMock() { return fMockDb; } | bool IsMock() const { return fMockDb; } | ||||
/** | /** | ||||
* Verify that database file strFile is OK. If it is not, call the callback | * Verify that database file strFile is OK. If it is not, call the callback | ||||
* to try to recover. | * to try to recover. | ||||
* This must be called BEFORE strFile is opened. | * This must be called BEFORE strFile is opened. | ||||
* Returns true if strFile is OK. | * Returns true if strFile is OK. | ||||
*/ | */ | ||||
enum VerifyResult { VERIFY_OK, RECOVER_OK, RECOVER_FAIL }; | enum VerifyResult { VERIFY_OK, RECOVER_OK, RECOVER_FAIL }; | ||||
▲ Show 20 Lines • Show All 333 Lines • Show Last 20 Lines |