mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-06-02 09:15:04 +02:00
[wallet] Add StopWallets() function to wallet/init.cpp
This commit is contained in:
@@ -246,8 +246,14 @@ bool OpenWallets()
|
||||
return true;
|
||||
}
|
||||
|
||||
void FlushWallets(bool shutdown) {
|
||||
void FlushWallets() {
|
||||
for (CWalletRef pwallet : vpwallets) {
|
||||
pwallet->Flush(shutdown);
|
||||
pwallet->Flush(false);
|
||||
}
|
||||
}
|
||||
|
||||
void StopWallets() {
|
||||
for (CWalletRef pwallet : vpwallets) {
|
||||
pwallet->Flush(true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,8 @@ bool VerifyWallets();
|
||||
bool OpenWallets();
|
||||
|
||||
//! Flush all wallets in preparation for shutdown.
|
||||
//! Call with shutdown = true to actually shutdown the wallet.
|
||||
void FlushWallets(bool shutdown);
|
||||
void FlushWallets();
|
||||
|
||||
//! Stop all wallets. Wallets will be flushed first.
|
||||
void StopWallets();
|
||||
#endif // BITCOIN_WALLET_INIT_H
|
||||
|
||||
Reference in New Issue
Block a user