Use accurate memory for flushing decisions
This commit is contained in:
@@ -1067,7 +1067,7 @@ bool AppInit2(boost::thread_group& threadGroup)
|
||||
nTotalCache -= nBlockTreeDBCache;
|
||||
size_t nCoinDBCache = nTotalCache / 2; // use half of the remaining cache for coindb cache
|
||||
nTotalCache -= nCoinDBCache;
|
||||
nCoinCacheSize = nTotalCache / 300; // coins in memory require around 300 bytes
|
||||
nCoinCacheUsage = nTotalCache;
|
||||
|
||||
bool fLoaded = false;
|
||||
while (!fLoaded) {
|
||||
|
||||
Reference in New Issue
Block a user