aboutsummaryrefslogtreecommitdiff
path: root/src/wallet/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/wallet/init.cpp')
-rw-r--r--src/wallet/init.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index f39201e79c..f58f3bc545 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -245,3 +245,9 @@ bool OpenWallets()
return true;
}
+
+void FlushWallets(bool shutdown) {
+ for (CWalletRef pwallet : vpwallets) {
+ pwallet->Flush(shutdown);
+ }
+}