mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-11-13 07:28:59 +01:00
Only remove database log files on shutdown after wallet encryption/rewrite
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user