diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-17 18:27:00 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2012-04-17 18:27:18 +0200 |
commit | 8f2b50f178ece5863c79228bfcd3248e863b93b5 (patch) | |
tree | 1f67a8aa07f269318a00e523b847a5b6137ba865 /src | |
parent | 7a5452ffb3075c0c2604a76e8e82c2c84a24e62e (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/db.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/db.cpp b/src/db.cpp index 2d136914c5..0652e4a8f6 100644 --- a/src/db.cpp +++ b/src/db.cpp @@ -162,6 +162,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; |