[wallet] Add CloseWallets() function to wallet/init.cpp

This commit is contained in:
John Newbery
2017-08-28 12:41:33 -04:00
parent 77fe07c159
commit 062d63102e
3 changed files with 12 additions and 4 deletions

View File

@@ -257,3 +257,10 @@ void StopWallets() {
pwallet->Flush(true);
}
}
void CloseWallets() {
for (CWalletRef pwallet : vpwallets) {
delete pwallet;
}
vpwallets.clear();
}