aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2017-08-28 12:31:53 -0400
committerJohn Newbery <[email protected]>2017-09-07 16:21:26 -0700
commit2da5eafa47cdf81107bd3e71a709d404ebb6dcdb (patch)
tree5ebc2890b25d7697dec4c0b3a36764363b3a087d /src/init.cpp
parent[wallet] Rename WalletVerify() to VerifyWallets() (diff)
downloaddiscoin-2da5eafa47cdf81107bd3e71a709d404ebb6dcdb.tar.xz
discoin-2da5eafa47cdf81107bd3e71a709d404ebb6dcdb.zip
[wallet] Add FlushWallets() function to wallet/init.cpp
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/init.cpp b/src/init.cpp
index ce368a6bb..6d250a25c 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -189,9 +189,7 @@ void Shutdown()
StopRPC();
StopHTTPServer();
#ifdef ENABLE_WALLET
- for (CWalletRef pwallet : vpwallets) {
- pwallet->Flush(false);
- }
+ FlushWallets(false);
#endif
MapPort(false);
UnregisterValidationInterface(peerLogic.get());
@@ -246,9 +244,7 @@ void Shutdown()
pblocktree = nullptr;
}
#ifdef ENABLE_WALLET
- for (CWalletRef pwallet : vpwallets) {
- pwallet->Flush(true);
- }
+ FlushWallets(true);
#endif
#if ENABLE_ZMQ