mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-03 01:33:20 +02:00
[wallet] Add StartWallets() function to wallet/init.cpp
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user