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/load.cpp | |
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/load.cpp')
-rw-r--r-- | src/wallet/load.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/wallet/load.cpp b/src/wallet/load.cpp index c2818a41e7..2a81d30133 100644 --- a/src/wallet/load.cpp +++ b/src/wallet/load.cpp @@ -99,14 +99,14 @@ void StartWallets(CScheduler& scheduler, const ArgsManager& args) void FlushWallets() { for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) { - pwallet->Flush(false); + pwallet->Flush(); } } void StopWallets() { for (const std::shared_ptr<CWallet>& pwallet : GetWallets()) { - pwallet->Flush(true); + pwallet->Close(); } } |