mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-12 08:08:25 +00:00
[wallet] Add StartWallets() function to wallet/init.cpp
This commit is contained in:
parent
290f3c56d9
commit
43b0e81d0f
@ -44,7 +44,6 @@
|
|||||||
#include "validationinterface.h"
|
#include "validationinterface.h"
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
#include "wallet/init.h"
|
#include "wallet/init.h"
|
||||||
#include "wallet/wallet.h"
|
|
||||||
#endif
|
#endif
|
||||||
#include "warnings.h"
|
#include "warnings.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
@ -1691,9 +1690,7 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
|
|||||||
uiInterface.InitMessage(_("Done loading"));
|
uiInterface.InitMessage(_("Done loading"));
|
||||||
|
|
||||||
#ifdef ENABLE_WALLET
|
#ifdef ENABLE_WALLET
|
||||||
for (CWalletRef pwallet : vpwallets) {
|
StartWallets(scheduler);
|
||||||
pwallet->postInitProcess(scheduler);
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return !fRequestShutdown;
|
return !fRequestShutdown;
|
||||||
|
@ -254,6 +254,12 @@ bool OpenWallets()
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void StartWallets(CScheduler& scheduler) {
|
||||||
|
for (CWalletRef pwallet : vpwallets) {
|
||||||
|
pwallet->postInitProcess(scheduler);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void FlushWallets() {
|
void FlushWallets() {
|
||||||
for (CWalletRef pwallet : vpwallets) {
|
for (CWalletRef pwallet : vpwallets) {
|
||||||
pwallet->Flush(false);
|
pwallet->Flush(false);
|
||||||
|
@ -9,6 +9,7 @@
|
|||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
class CRPCTable;
|
class CRPCTable;
|
||||||
|
class CScheduler;
|
||||||
|
|
||||||
//! Return the wallets help message.
|
//! Return the wallets help message.
|
||||||
std::string GetWalletHelpString(bool showDebug);
|
std::string GetWalletHelpString(bool showDebug);
|
||||||
@ -27,6 +28,9 @@ bool VerifyWallets();
|
|||||||
//! Load wallet databases.
|
//! Load wallet databases.
|
||||||
bool OpenWallets();
|
bool OpenWallets();
|
||||||
|
|
||||||
|
//! Complete startup of wallets.
|
||||||
|
void StartWallets(CScheduler& scheduler);
|
||||||
|
|
||||||
//! Flush all wallets in preparation for shutdown.
|
//! Flush all wallets in preparation for shutdown.
|
||||||
void FlushWallets();
|
void FlushWallets();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user