diff options
Diffstat (limited to 'src/wallet/db.h')
-rw-r--r-- | src/wallet/db.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wallet/db.h b/src/wallet/db.h index 892c8d33c3..dfce3d76cd 100644 --- a/src/wallet/db.h +++ b/src/wallet/db.h @@ -116,6 +116,10 @@ public: */ std::string GetName() const { return strFile; } + /** Make sure all changes are flushed to disk. + */ + void Flush(bool shutdown); + /** 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. @@ -138,6 +142,7 @@ protected: DbTxn* activeTxn; bool fReadOnly; bool fFlushOnClose; + CDBEnv *env; explicit CDB(CWalletDBWrapper& dbw, const char* pszMode = "r+", bool fFlushOnCloseIn=true); ~CDB() { Close(); } |