diff options
| author | Pieter Wuille <[email protected]> | 2012-04-17 18:27:00 +0200 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2012-04-17 18:27:18 +0200 |
| commit | 8f2b50f178ece5863c79228bfcd3248e863b93b5 (patch) | |
| tree | 1f67a8aa07f269318a00e523b847a5b6137ba865 /src/db.cpp | |
| parent | Merge pull request #1092 from laanwj/2012_04_sendcoins_setlabelfix (diff) | |
| download | discoin-8f2b50f178ece5863c79228bfcd3248e863b93b5.tar.xz discoin-8f2b50f178ece5863c79228bfcd3248e863b93b5.zip | |
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/db.cpp')
| -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 2d136914c..0652e4a8f 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; |