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 authored and furszy committed Jan 18, 2021
1 parent 2132f42 commit 08d2310
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/wallet/db.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,16 +121,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 08d2310

Please sign in to comment.