mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-03-09 20:21:22 +00:00
[wallet] Add CloseWallets() function to wallet/init.cpp
This commit is contained in:
parent
77fe07c159
commit
062d63102e
@ -265,10 +265,7 @@ void Shutdown()
|
||||
UnregisterAllValidationInterfaces();
|
||||
GetMainSignals().UnregisterBackgroundSignalScheduler();
|
||||
#ifdef ENABLE_WALLET
|
||||
for (CWalletRef pwallet : vpwallets) {
|
||||
delete pwallet;
|
||||
}
|
||||
vpwallets.clear();
|
||||
CloseWallets();
|
||||
#endif
|
||||
globalVerifyHandle.reset();
|
||||
ECC_Stop();
|
||||
|
@ -257,3 +257,10 @@ void StopWallets() {
|
||||
pwallet->Flush(true);
|
||||
}
|
||||
}
|
||||
|
||||
void CloseWallets() {
|
||||
for (CWalletRef pwallet : vpwallets) {
|
||||
delete pwallet;
|
||||
}
|
||||
vpwallets.clear();
|
||||
}
|
||||
|
@ -27,4 +27,8 @@ void FlushWallets();
|
||||
|
||||
//! Stop all wallets. Wallets will be flushed first.
|
||||
void StopWallets();
|
||||
|
||||
//! Close all wallets.
|
||||
void CloseWallets();
|
||||
|
||||
#endif // BITCOIN_WALLET_INIT_H
|
||||
|
Loading…
x
Reference in New Issue
Block a user