aboutsummaryrefslogtreecommitdiff
path: root/src/wallet
diff options
context:
space:
mode:
authorJohn Newbery <john@johnnewbery.com>2017-08-29 11:47:06 -0400
committerJohn Newbery <john@johnnewbery.com>2017-09-07 16:21:26 -0700
commit43b0e81d0f8f5d235e1cdaa2ee128b67259f7109 (patch)
tree427059c5b9d0675285ec2b294c2212702d959d21 /src/wallet
parent290f3c56d9dd8a519920939a4fc440da832c1c63 (diff)
downloadbitcoin-43b0e81d0f8f5d235e1cdaa2ee128b67259f7109.tar.xz
[wallet] Add StartWallets() function to wallet/init.cpp
Diffstat (limited to 'src/wallet')
-rw-r--r--src/wallet/init.cpp6
-rw-r--r--src/wallet/init.h4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/wallet/init.cpp b/src/wallet/init.cpp
index 9fd038150f..1e00735ed9 100644
--- a/src/wallet/init.cpp
+++ b/src/wallet/init.cpp
@@ -254,6 +254,12 @@ bool OpenWallets()
return true;
}
+void StartWallets(CScheduler& scheduler) {
+ for (CWalletRef pwallet : vpwallets) {
+ pwallet->postInitProcess(scheduler);
+ }
+}
+
void FlushWallets() {
for (CWalletRef pwallet : vpwallets) {
pwallet->Flush(false);
diff --git a/src/wallet/init.h b/src/wallet/init.h
index 588357119c..0d5e5f0cde 100644
--- a/src/wallet/init.h
+++ b/src/wallet/init.h
@@ -9,6 +9,7 @@
#include <string>
class CRPCTable;
+class CScheduler;
//! Return the wallets help message.
std::string GetWalletHelpString(bool showDebug);
@@ -27,6 +28,9 @@ bool VerifyWallets();
//! Load wallet databases.
bool OpenWallets();
+//! Complete startup of wallets.
+void StartWallets(CScheduler& scheduler);
+
//! Flush all wallets in preparation for shutdown.
void FlushWallets();