File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -265,10 +265,7 @@ void Shutdown()
265
265
UnregisterAllValidationInterfaces ();
266
266
GetMainSignals ().UnregisterBackgroundSignalScheduler ();
267
267
#ifdef ENABLE_WALLET
268
- for (CWalletRef pwallet : vpwallets) {
269
- delete pwallet;
270
- }
271
- vpwallets.clear ();
268
+ CloseWallets ();
272
269
#endif
273
270
globalVerifyHandle.reset ();
274
271
ECC_Stop ();
Original file line number Diff line number Diff line change @@ -257,3 +257,10 @@ void StopWallets() {
257
257
pwallet->Flush (true );
258
258
}
259
259
}
260
+
261
+ void CloseWallets () {
262
+ for (CWalletRef pwallet : vpwallets) {
263
+ delete pwallet;
264
+ }
265
+ vpwallets.clear ();
266
+ }
Original file line number Diff line number Diff line change @@ -27,4 +27,8 @@ void FlushWallets();
27
27
28
28
// ! Stop all wallets. Wallets will be flushed first.
29
29
void StopWallets ();
30
+
31
+ // ! Close all wallets.
32
+ void CloseWallets ();
33
+
30
34
#endif // BITCOIN_WALLET_INIT_H
You can’t perform that action at this time.
0 commit comments