mirror of
https://github.com/bitcoin/bitcoin.git
synced 2026-03-25 15:05:55 +01:00
Only remove database log files on shutdown after wallet encryption/rewrite
This commit is contained in:
committed by
Luke Dashjr
parent
90de05e88e
commit
c4a3bf9e55
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user