diff options
author | Pieter Wuille <pieter.wuille@gmail.com> | 2015-05-04 01:38:08 +0200 |
---|---|---|
committer | Pieter Wuille <pieter.wuille@gmail.com> | 2015-05-11 17:57:27 -0700 |
commit | fc684ad8afae19c209701230837d338c5a6c1f72 (patch) | |
tree | 8be68e7cede23aa35c3cb3d5b24d60a67439bc86 /src/init.cpp | |
parent | 046392dc1dd965b4ec1ba60a14a714e3e3fa7a88 (diff) |
Use accurate memory for flushing decisions
Diffstat (limited to 'src/init.cpp')
-rw-r--r-- | src/init.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index 47cbda32f5..e1b4e89901 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -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) { |