aboutsummaryrefslogtreecommitdiff
path: root/src/txdb-bdb.h
diff options
context:
space:
mode:
authorPieter Wuille <pieter.wuille@gmail.com>2012-09-04 18:12:00 +0200
committerPieter Wuille <pieter.wuille@gmail.com>2012-10-20 23:08:57 +0200
commite1bfbab8029c33102889d7d970da5b6cc32ff75b (patch)
treec96ed4dca6cbca2791096fe95e2e866c06016a6a /src/txdb-bdb.h
parent2d8a48292b0da96cda8d7b45a24a22adfb4667b2 (diff)
Add LevelDB MemEnv support
Support LevelDB memory-backed environments, and use them in unit tests.
Diffstat (limited to 'src/txdb-bdb.h')
-rw-r--r--src/txdb-bdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/txdb-bdb.h b/src/txdb-bdb.h
index d61e95bac2..3e8d40c274 100644
--- a/src/txdb-bdb.h
+++ b/src/txdb-bdb.h
@@ -11,7 +11,7 @@
class CCoinsDB : public CDB
{
public:
- CCoinsDB(const char* pszMode="r+") : CDB("coins.dat", pszMode) { }
+ CCoinsDB() : CDB("coins.dat", "cr+") { }
private:
CCoinsDB(const CCoinsDB&);
void operator=(const CCoinsDB&);
@@ -43,7 +43,7 @@ public:
class CBlockTreeDB : public CDB
{
public:
- CBlockTreeDB(const char* pszMode="r+") : CDB("blktree.dat", pszMode) { }
+ CBlockTreeDB() : CDB("blktree.dat", "cr+") { }
private:
CBlockTreeDB(const CBlockTreeDB&);
void operator=(const CBlockTreeDB&);