Skip to content

Commit 74507ce

Browse files
committed
walletdb: Remove BerkeleyBatch friend class from BerkeleyDatabase
1 parent 00f0041 commit 74507ce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/wallet/bdb.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class BerkeleyBatch;
9797
**/
9898
class BerkeleyDatabase : public WalletDatabase
9999
{
100-
friend class BerkeleyBatch;
101100
public:
102101
/** Create dummy DB handle */
103102
BerkeleyDatabase() : WalletDatabase(), env(nullptr)
@@ -163,11 +162,12 @@ class BerkeleyDatabase : public WalletDatabase
163162
/** Database pointer. This is initialized lazily and reset during flushes, so it can be null. */
164163
std::unique_ptr<Db> m_db;
165164

165+
std::string strFile;
166+
166167
/** Make a BerkeleyBatch connected to this database */
167168
std::unique_ptr<DatabaseBatch> MakeBatch(const char* mode = "r+", bool flush_on_close = true) override;
168169

169170
private:
170-
std::string strFile;
171171

172172
/** Return whether this database handle is a dummy for testing.
173173
* Only to be used at a low level, application should ideally not care

0 commit comments

Comments
 (0)