Run BDB disk-less for test_bitcoin

This commit is contained in:
Luke Dashjr
2012-05-22 19:51:13 +00:00
parent fbf99a9cdc
commit 148e107da6
3 changed files with 60 additions and 4 deletions

View File

@@ -35,6 +35,7 @@ class CDBEnv
private:
bool fDetachDB;
bool fDbEnvInit;
bool fMockDb;
boost::filesystem::path pathEnv;
void EnvShutdown();
@@ -47,6 +48,8 @@ public:
CDBEnv();
~CDBEnv();
void MakeMock();
bool IsMock() { return fMockDb; };
bool Open(boost::filesystem::path pathEnv_);
void Close();
void Flush(bool fShutdown);