diff options
author | Matt Corallo <git@bluematt.me> | 2017-04-21 16:38:12 -0400 |
---|---|---|
committer | Matt Corallo <git@bluematt.me> | 2017-06-22 12:21:09 -0400 |
commit | 309ee1ae7b288deabe6601b054474393f31e1fe7 (patch) | |
tree | 20239fbd4b7bc256a02e4f129e56143f5ab9641e /src/validation.cpp | |
parent | b014668e27b496bd6ad30985294f3d6971311910 (diff) | |
download | bitcoin-309ee1ae7b288deabe6601b054474393f31e1fe7.tar.xz |
Update -maxsigcachesize doc clarify init logprints for it
Diffstat (limited to 'src/validation.cpp')
-rw-r--r-- | src/validation.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/validation.cpp b/src/validation.cpp index 463c16c11f..baddb84be6 100644 --- a/src/validation.cpp +++ b/src/validation.cpp @@ -1217,8 +1217,8 @@ void InitScriptExecutionCache() { // setup_bytes creates the minimum possible cache (2 elements). size_t nMaxCacheSize = std::min(std::max((int64_t)0, GetArg("-maxsigcachesize", DEFAULT_MAX_SIG_CACHE_SIZE) / 2), MAX_MAX_SIG_CACHE_SIZE) * ((size_t) 1 << 20); size_t nElems = scriptExecutionCache.setup_bytes(nMaxCacheSize); - LogPrintf("Using %zu MiB out of %zu requested for script execution cache, able to store %zu elements\n", - (nElems*sizeof(uint256)) >>20, nMaxCacheSize>>20, nElems); + LogPrintf("Using %zu MiB out of %zu/2 requested for script execution cache, able to store %zu elements\n", + (nElems*sizeof(uint256)) >>20, (nMaxCacheSize*2)>>20, nElems); } /** |