diff options
| author | Pieter Wuille <[email protected]> | 2017-01-05 13:46:10 -0800 |
|---|---|---|
| committer | Pieter Wuille <[email protected]> | 2017-01-05 13:52:24 -0800 |
| commit | c252685aa5867631e9a5ef07ccae7c7c25cae8ff (patch) | |
| tree | f85f7841229dfd95adf007f27b868f2bd428e4a2 /src/init.cpp | |
| parent | Merge #9465: [Wallet] Do not perform ECDSA signing in the fee calculation inn... (diff) | |
| parent | Share unused mempool memory with coincache (diff) | |
| download | discoin-c252685aa5867631e9a5ef07ccae7c7c25cae8ff.tar.xz discoin-c252685aa5867631e9a5ef07ccae7c7c25cae8ff.zip | |
Merge #8610: Share unused mempool memory with coincache
ba3cecf Share unused mempool memory with coincache (Pieter Wuille)
Diffstat (limited to 'src/init.cpp')
| -rw-r--r-- | src/init.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/init.cpp b/src/init.cpp index f0334a08e..eb191ab7b 100644 --- a/src/init.cpp +++ b/src/init.cpp @@ -1340,10 +1340,11 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler) nCoinDBCache = std::min(nCoinDBCache, nMaxCoinsDBCache << 20); // cap total coins db cache nTotalCache -= nCoinDBCache; nCoinCacheUsage = nTotalCache; // the rest goes to in-memory cache + int64_t nMempoolSizeMax = GetArg("-maxmempool", DEFAULT_MAX_MEMPOOL_SIZE) * 1000000; LogPrintf("Cache configuration:\n"); LogPrintf("* Using %.1fMiB for block index database\n", nBlockTreeDBCache * (1.0 / 1024 / 1024)); LogPrintf("* Using %.1fMiB for chain state database\n", nCoinDBCache * (1.0 / 1024 / 1024)); - LogPrintf("* Using %.1fMiB for in-memory UTXO set\n", nCoinCacheUsage * (1.0 / 1024 / 1024)); + LogPrintf("* Using %.1fMiB for in-memory UTXO set (plus up to %.1fMiB of unused mempool space)\n", nCoinCacheUsage * (1.0 / 1024 / 1024), nMempoolSizeMax * (1.0 / 1024 / 1024)); bool fLoaded = false; while (!fLoaded) { |