dbwrapper: Pass parent CDBWrapper into CDBBatch and CDBIterator

Zcash: Makes future extensions easier.

Original description (when this was introduced upstream):

Pass parent wrapper directly instead of obfuscation key. This
makes it possible for other databases which re-use this code
to use other properties from the database.

Add a namespace dbwrapper_private for private functions to be used
only in dbwrapper.h/cpp and dbwrapper_tests.
This commit is contained in:
Wladimir J. van der Laan
2016-04-20 11:46:01 +02:00
committed by Jack Grigg
parent e3da7a572d
commit 809a429ecf
3 changed files with 20 additions and 11 deletions

View File

@@ -57,7 +57,7 @@ BOOST_AUTO_TEST_CASE(dbwrapper_batch)
uint256 in3 = GetRandHash();
uint256 res;
CDBBatch batch;
CDBBatch batch(dbw);
batch.Write(key, in);
batch.Write(key2, in2);