From 309ee1ae7b288deabe6601b054474393f31e1fe7 Mon Sep 17 00:00:00 2001 From: Matt Corallo Date: Fri, 21 Apr 2017 16:38:12 -0400 Subject: Update -maxsigcachesize doc clarify init logprints for it --- src/script/sigcache.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/script') diff --git a/src/script/sigcache.cpp b/src/script/sigcache.cpp index bf0e006068..66aa7ad3e3 100644 --- a/src/script/sigcache.cpp +++ b/src/script/sigcache.cpp @@ -76,8 +76,8 @@ void InitSignatureCache() // 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 = signatureCache.setup_bytes(nMaxCacheSize); - LogPrintf("Using %zu MiB out of %zu requested for signature cache, able to store %zu elements\n", - (nElems*sizeof(uint256)) >>20, nMaxCacheSize>>20, nElems); + LogPrintf("Using %zu MiB out of %zu/2 requested for signature cache, able to store %zu elements\n", + (nElems*sizeof(uint256)) >>20, (nMaxCacheSize*2)>>20, nElems); } bool CachingTransactionSignatureChecker::VerifySignature(const std::vector& vchSig, const CPubKey& pubkey, const uint256& sighash) const -- cgit v1.2.3