mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-18 13:17:55 +02:00
Only remove database log files on shutdown after wallet encryption/rewrite
This commit is contained in:
parent
37971fcc76
commit
1c15f88653
4 changed files with 16 additions and 9 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue