diff --git a/src/wallet/bdb.h b/src/wallet/bdb.h --- a/src/wallet/bdb.h +++ b/src/wallet/bdb.h @@ -94,8 +94,6 @@ * For BerkeleyDB this is just a (env, strFile) tuple. */ class BerkeleyDatabase : public WalletDatabase { - friend class BerkeleyBatch; - public: /** Create dummy DB handle */ BerkeleyDatabase() : WalletDatabase(), env(nullptr) {} @@ -180,13 +178,13 @@ */ std::unique_ptr m_db; + std::string strFile; + /** Make a BerkeleyBatch connected to this database */ std::unique_ptr 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