diff options
| author | Pieter Wuille <[email protected]> | 2012-09-04 18:12:00 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-10-20 23:08:57 +0200 |
| commit | e1bfbab8029c33102889d7d970da5b6cc32ff75b (patch) | |
| tree | c96ed4dca6cbca2791096fe95e2e866c06016a6a /src/txdb-bdb.cpp | |
| parent | LevelDB block and coin databases (diff) | |
| download | discoin-e1bfbab8029c33102889d7d970da5b6cc32ff75b.tar.xz discoin-e1bfbab8029c33102889d7d970da5b6cc32ff75b.zip | |
Add LevelDB MemEnv support
Support LevelDB memory-backed environments, and use them in unit tests.
Diffstat (limited to 'src/txdb-bdb.cpp')
| -rw-r--r-- | src/txdb-bdb.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/txdb-bdb.cpp b/src/txdb-bdb.cpp index 5e4609664..8954b8b30 100644 --- a/src/txdb-bdb.cpp +++ b/src/txdb-bdb.cpp @@ -64,7 +64,7 @@ bool CBlockTreeDB::ReadLastBlockFile(int &nFile) { return Read('l', nFile); } -CCoinsViewDB::CCoinsViewDB() : db("cr+") {} +CCoinsViewDB::CCoinsViewDB() : db() {} bool CCoinsViewDB::GetCoins(uint256 txid, CCoins &coins) { return db.ReadCoins(txid, coins); } bool CCoinsViewDB::SetCoins(uint256 txid, const CCoins &coins) { return db.WriteCoins(txid, coins); } bool CCoinsViewDB::HaveCoins(uint256 txid) { return db.HaveCoins(txid); } |