Changeset View
Changeset View
Standalone View
Standalone View
src/wallet/bdb.h
Show First 20 Lines • Show All 152 Lines • ▼ Show 20 Lines | public: | ||||
/** Verifies the environment and database file */ | /** Verifies the environment and database file */ | ||||
bool Verify(bilingual_str &error); | bool Verify(bilingual_str &error); | ||||
/** Return path to main database filename */ | /** Return path to main database filename */ | ||||
std::string Filename() override { | std::string Filename() override { | ||||
return (env->Directory() / strFile).string(); | return (env->Directory() / strFile).string(); | ||||
} | } | ||||
std::string Format() override { return "bdb"; } | |||||
/** | /** | ||||
* Pointer to shared database environment. | * Pointer to shared database environment. | ||||
* | * | ||||
* Normally there is only one BerkeleyDatabase object per | * Normally there is only one BerkeleyDatabase object per | ||||
* BerkeleyEnvivonment, but in the special, backwards compatible case where | * BerkeleyEnvivonment, but in the special, backwards compatible case where | ||||
* multiple wallet BDB data files are loaded from the same directory, this | * multiple wallet BDB data files are loaded from the same directory, this | ||||
* will point to a shared instance that gets freed when the last data file | * will point to a shared instance that gets freed when the last data file | ||||
* is closed. | * is closed. | ||||
▲ Show 20 Lines • Show All 85 Lines • Show Last 20 Lines |