From f03304a9c79a6cc6096ed501ad38702fd012e7f7 Mon Sep 17 00:00:00 2001 From: s_nakamoto Date: Sun, 5 Dec 2010 09:29:30 +0000 Subject: preps for future client-only mode, jgarzik's initial download speedup git-svn-id: https://bitcoin.svn.sourceforge.net/svnroot/bitcoin/trunk@195 1a98c847-1fd6-4fd8-948a-caf3550aa51b --- db.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'db.cpp') diff --git a/db.cpp b/db.cpp index 40998fb740..fb4e48c596 100644 --- a/db.cpp +++ b/db.cpp @@ -132,6 +132,8 @@ void CDB::Close() // Flush database activity from memory pool to disk log unsigned int nMinutes = 0; + if (fReadOnly) + nMinutes = 1; if (strFile == "addr.dat") nMinutes = 2; if (strFile == "blkindex.dat" && IsInitialBlockDownload() && nBestHeight % 500 != 0) -- cgit v1.2.3