aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
authorJohn Newbery <[email protected]>2017-08-28 12:53:56 -0400
committerJohn Newbery <[email protected]>2017-09-07 16:21:26 -0700
commit77fe07c1591395b4279f9f2ff3c36c6bde11fbb7 (patch)
tree340158d4f541bb9f4bbc7bbe1615ba1e1a2e66d2 /src/wallet/init.cpp
parent[wallet] Add FlushWallets() function to wallet/init.cpp (diff)
downloaddiscoin-77fe07c1591395b4279f9f2ff3c36c6bde11fbb7.tar.xz
discoin-77fe07c1591395b4279f9f2ff3c36c6bde11fbb7.zip
[wallet] Add StopWallets() function to wallet/init.cpp
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r--src/wallet/init.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index f58f3bc54..2b5c6b173 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);
}
}