Merge pull request #1114 from sipa/lesssync
authorPieter Wuille <pieter.wuille@gmail.com>
Tue, 17 Apr 2012 21:23:31 +0000 (14:23 -0700)
committerPieter Wuille <pieter.wuille@gmail.com>
Tue, 17 Apr 2012 21:23:31 +0000 (14:23 -0700)
Reduce sync frequency for blkindex.dat

src/db.cpp

index c67cf2f..c38070f 100644 (file)
@@ -165,6 +165,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;