Skip to content

Commit

Permalink
wallet: Make IsDummy private in CWalletDBWrapper
Browse files Browse the repository at this point in the history
This is only for use in the low-level functions, and CDB is already
a friend class.
  • Loading branch information
laanwj committed Apr 20, 2017
1 parent 3323281 commit 69d2e9b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wallet/db.h
Expand Up @@ -120,16 +120,16 @@ class CWalletDBWrapper
*/
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;
};


Expand Down

0 comments on commit 69d2e9b

Please sign in to comment.