File tree Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Expand file tree Collapse file tree 3 files changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ void Shutdown()
189
189
StopRPC ();
190
190
StopHTTPServer ();
191
191
#ifdef ENABLE_WALLET
192
- FlushWallets (false );
192
+ FlushWallets ();
193
193
#endif
194
194
MapPort (false );
195
195
UnregisterValidationInterface (peerLogic.get ());
@@ -244,7 +244,7 @@ void Shutdown()
244
244
pblocktree = nullptr ;
245
245
}
246
246
#ifdef ENABLE_WALLET
247
- FlushWallets ( true );
247
+ StopWallets ( );
248
248
#endif
249
249
250
250
#if ENABLE_ZMQ
Original file line number Diff line number Diff line change @@ -246,8 +246,14 @@ bool OpenWallets()
246
246
return true ;
247
247
}
248
248
249
- void FlushWallets (bool shutdown ) {
249
+ void FlushWallets () {
250
250
for (CWalletRef pwallet : vpwallets) {
251
- pwallet->Flush (shutdown);
251
+ pwallet->Flush (false );
252
+ }
253
+ }
254
+
255
+ void StopWallets () {
256
+ for (CWalletRef pwallet : vpwallets) {
257
+ pwallet->Flush (true );
252
258
}
253
259
}
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ bool VerifyWallets();
23
23
bool OpenWallets ();
24
24
25
25
// ! Flush all wallets in preparation for shutdown.
26
- // ! Call with shutdown = true to actually shutdown the wallet.
27
- void FlushWallets (bool shutdown);
26
+ void FlushWallets ();
27
+
28
+ // ! Stop all wallets. Wallets will be flushed first.
29
+ void StopWallets ();
28
30
#endif // BITCOIN_WALLET_INIT_H
You can’t perform that action at this time.
0 commit comments