diff options
author | Andrew Chow <achow101-github@achow101.com> | 2020-06-15 17:59:24 -0400 |
---|---|---|
committer | Andrew Chow <achow101-github@achow101.com> | 2020-07-14 11:07:16 -0400 |
commit | 27b27663849932971eb5deadb1f19234b9cd97ea (patch) | |
tree | f8fa0655e170c4c2b1edbc7eaa440cdc101295a7 /src/wallet/wallet.h | |
parent | 834ac4c0f50c0795b55f5586ecc4b1db251be58d (diff) | |
download | bitcoin-27b27663849932971eb5deadb1f19234b9cd97ea.tar.xz |
walletdb: Move BerkeleyDatabase::Flush(true) to Close()
Instead of having Flush optionally shutdown the database and
environment, add a Close() function that does that.
Diffstat (limited to 'src/wallet/wallet.h')
-rw-r--r-- | src/wallet/wallet.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/wallet/wallet.h b/src/wallet/wallet.h index 8cb2a64484..a761caf38c 100644 --- a/src/wallet/wallet.h +++ b/src/wallet/wallet.h @@ -1087,7 +1087,10 @@ public: bool HasWalletSpend(const uint256& txid) const EXCLUSIVE_LOCKS_REQUIRED(cs_wallet); //! Flush wallet (bitdb flush) - void Flush(bool shutdown=false); + void Flush(); + + //! Close wallet database + void Close(); /** Wallet is about to be unloaded */ boost::signals2::signal<void ()> NotifyUnload; |