[wallet] Add FlushWallets() function to wallet/init.cpp

This commit is contained in:
John Newbery
2017-08-28 12:31:53 -04:00
parent 1b9cee66e1
commit 2da5eafa47
3 changed files with 11 additions and 6 deletions

View File

@@ -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