aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorGavin Andresen <gavinandresen@gmail.com>2011-11-17 14:21:32 -0500
committerLuke Dashjr <luke-jr+git@utopios.org>2011-11-17 14:29:18 -0500
commitc4a3bf9e552f25a5ad0efb8cf62d344a7dad53ed (patch)
treeaafa2dc7d55650358dd822825dfcc7a2ac415023 /src/init.cpp
parent90de05e88ecc879b75315eebacb488b44353f5d9 (diff)
downloadbitcoin-c4a3bf9e552f25a5ad0efb8cf62d344a7dad53ed.tar.xz
Only remove database log files on shutdown after wallet encryption/rewrite
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4a149b31bf..2d21a26143 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -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;