mirror of
https://github.com/kvazar-network/kevacoin.git
synced 2025-01-25 22:34:27 +00:00
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.
This commit is contained in:
parent
7a5452ffb3
commit
8f2b50f178
@ -162,6 +162,8 @@ void CDB::Close()
|
|||||||
nMinutes = 1;
|
nMinutes = 1;
|
||||||
if (strFile == "addr.dat")
|
if (strFile == "addr.dat")
|
||||||
nMinutes = 2;
|
nMinutes = 2;
|
||||||
|
if (strFile == "blkindex.dat")
|
||||||
|
nMinutes = 2;
|
||||||
if (strFile == "blkindex.dat" && IsInitialBlockDownload())
|
if (strFile == "blkindex.dat" && IsInitialBlockDownload())
|
||||||
nMinutes = 5;
|
nMinutes = 5;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user