aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Chow <achow101-github@achow101.com>2020-06-15 16:14:57 -0400
committerAndrew Chow <achow101-github@achow101.com>2020-07-22 23:30:19 -0400
commit74507ce71eb61105fb3ae8460999099234ca7b8b (patch)
treedfd8860bfe8104ea2f3ec96d798f45fd5c08cd36
parent00f0041351bcd6ddbab110df1189f79ce011e192 (diff)
downloadbitcoin-74507ce71eb61105fb3ae8460999099234ca7b8b.tar.xz
walletdb: Remove BerkeleyBatch friend class from BerkeleyDatabase
-rw-r--r--src/wallet/bdb.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h
index 90f5f2e877..982423f00e 100644
--- a/src/wallet/bdb.h
+++ b/src/wallet/bdb.h
@@ -97,7 +97,6 @@ class BerkeleyBatch;
**/
class BerkeleyDatabase : public WalletDatabase
{
- friend class BerkeleyBatch;
public:
/** Create dummy DB handle */
BerkeleyDatabase() : WalletDatabase(), env(nullptr)
@@ -163,11 +162,12 @@ public:
/** Database pointer. This is initialized lazily and reset during flushes, so it can be null. */
std::unique_ptr<Db> m_db;
+ std::string strFile;
+
/** Make a BerkeleyBatch connected to this database */
std::unique_ptr<DatabaseBatch> MakeBatch(const char* mode = "r+", bool flush_on_close = true) override;
private:
- std::string strFile;
/** Return whether this database handle is a dummy for testing.
* Only to be used at a low level, application should ideally not care