From 77fe07c1591395b4279f9f2ff3c36c6bde11fbb7 Mon Sep 17 00:00:00 2001 From: John Newbery Date: Mon, 28 Aug 2017 12:53:56 -0400 Subject: [wallet] Add StopWallets() function to wallet/init.cpp --- src/wallet/init.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'src/wallet/init.cpp') diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp index f58f3bc545..2b5c6b1737 100644 --- a/src/wallet/init.cpp +++ b/src/wallet/init.cpp @@ -246,8 +246,14 @@ bool OpenWallets() return true; } -void FlushWallets(bool shutdown) { +void FlushWallets() { for (CWalletRef pwallet : vpwallets) { - pwallet->Flush(shutdown); + pwallet->Flush(false); + } +} + +void StopWallets() { + for (CWalletRef pwallet : vpwallets) { + pwallet->Flush(true); } } -- cgit v1.2.3