git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
7a5452f
)
Reduce sync frequency for blkindex.dat
author
Pieter Wuille
<pieter.wuille@gmail.com>
Tue, 17 Apr 2012 16:27:00 +0000 (18:27 +0200)
committer
Pieter Wuille
<pieter.wuille@gmail.com>
Tue, 17 Apr 2012 16:27:18 +0000 (18:27 +0200)
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.
src/db.cpp
patch
|
blob
|
history
diff --git
a/src/db.cpp
b/src/db.cpp
index
2d13691
..
0652e4a
100644
(file)
--- 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;