bitcoin/bitcoin — pull request #4675 by laanwj (2014-08-11 06:44:36+00:00)
Title: Reduce maximum coinscache size during verification

Due to growing coinsviewcaches, the memory usage during verification with checklevel=3 (and standard settings for dbcache) could be up to 500MiB on a 64-bit system. This is about twice the peak during reindexing, unnecessarily extending bitcoind's memory envelope.

This commit reduces the maximum total size of the caches used during verification to just nCoinCacheSize, which should be the limit.