Only remove database log files on shutdown after wallet encryption/rewrite

This commit is contained in:
Gavin Andresen
2011-11-17 14:21:32 -05:00
parent 37971fcc76
commit 1c15f88653
4 changed files with 16 additions and 9 deletions

View File

@@ -55,9 +55,9 @@ void Shutdown(void* parg)
{
fShutdown = true;
nTransactionsUpdated++;
DBFlush(false, false);
DBFlush(false);
StopNode();
DBFlush(true, true);
DBFlush(true);
boost::filesystem::remove(GetPidFile());
UnregisterWallet(pwalletMain);
delete pwalletMain;