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
committed by Luke Dashjr
parent 90de05e88e
commit c4a3bf9e55
4 changed files with 16 additions and 9 deletions

View File

@@ -45,9 +45,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;