diff options
author | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-12-05 09:29:30 +0000 |
---|---|---|
committer | s_nakamoto <s_nakamoto@1a98c847-1fd6-4fd8-948a-caf3550aa51b> | 2010-12-05 09:29:30 +0000 |
commit | f03304a9c79a6cc6096ed501ad38702fd012e7f7 (patch) | |
tree | b336b15afca6035f7c09021e12179078ae6900c4 /db.cpp | |
parent | bdde31d787c4fe2da8e9fb168abbd22af2c27442 (diff) | |
download | bitcoin-f03304a9c79a6cc6096ed501ad38702fd012e7f7.tar.xz |
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
Diffstat (limited to 'db.cpp')
-rw-r--r-- | db.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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) |