Browse Source

wallet: Make IsDummy private in CWalletDBWrapper

This is only for use in the low-level functions, and CDB is already
a friend class.
0.15
Wladimir J. van der Laan 8 years ago
parent
commit
69d2e9ba67
  1. 10
      src/wallet/db.h

10
src/wallet/db.h

@ -120,16 +120,16 @@ public: @@ -120,16 +120,16 @@ public:
*/
void Flush(bool shutdown);
private:
/** BerkeleyDB specific */
CDBEnv *env;
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
* about this.
*/
bool IsDummy() { return env == nullptr; }
private:
/** BerkeleyDB specific */
CDBEnv *env;
std::string strFile;
};

Loading…
Cancel
Save