aboutsummaryrefslogtreecommitdiff
path: root/src/db.h
diff options
context:
space:
mode:
authorLuke Dashjr <luke-jr+git@utopios.org>2012-05-22 19:51:13 +0000
committerLuke Dashjr <luke-jr+git@utopios.org>2012-07-11 04:26:44 +0000
commit148e107da6f3e0f477e773cc3a3cb882ff53dab4 (patch)
tree6ca8d32346ca827c06b90475c27ae0f31dde970c /src/db.h
parentfbf99a9cdc3293b05ccc18c2f2dc6ae45da4258c (diff)
downloadbitcoin-148e107da6f3e0f477e773cc3a3cb882ff53dab4.tar.xz
Run BDB disk-less for test_bitcoin
Diffstat (limited to 'src/db.h')
-rw-r--r--src/db.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/db.h b/src/db.h
index 1030a40c48..4a08bf10a1 100644
--- a/src/db.h
+++ b/src/db.h
@@ -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);