aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 829600a4fd..809c07f375 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -54,9 +54,9 @@ void Shutdown(void* parg)
{
fShutdown = true;
nTransactionsUpdated++;
- DBFlush(false);
+ bitdb.Flush(false);
StopNode();
- DBFlush(true);
+ bitdb.Flush(true);
boost::filesystem::remove(GetPidFile());
UnregisterWallet(pwalletMain);
delete pwalletMain;
@@ -294,7 +294,7 @@ bool AppInit2()
}
fDebug = GetBoolArg("-debug");
- fDetachDB = GetBoolArg("-detachdb", false);
+ bitdb.SetDetach(GetBoolArg("-detachdb", false));
#if !defined(WIN32) && !defined(QT_GUI)
fDaemon = GetBoolArg("-daemon");