Permalink
Browse files

Reduce sync frequency for blkindex.dat

Since auto-remove-db-logs was enabled, each time a CTxDB was closed
outside of the initial download window, it causes a checkpoint + log
cleanup. This is overkill, so reduce the sync frequency to once per
minute at most.
  • Loading branch information...
1 parent e65bc04 commit 54a79eede3c62349bf86b21b2ea0d3fbbe05cf94 @fanquake fanquake committed May 4, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/db.cpp
View
@@ -161,6 +161,8 @@ void CDB::Close()
nMinutes = 1;
if (strFile == "addr.dat")
nMinutes = 2;
+ if (strFile == "blkindex.dat")
+ nMinutes = 2;
if (strFile == "blkindex.dat" && IsInitialBlockDownload())
nMinutes = 5;

0 comments on commit 54a79ee

Please sign in to comment.