aboutsummaryrefslogtreecommitdiff
path: root/src/init.cpp
diff options
context:
space:
mode:
authorJames O'Beirne <james.obeirne@gmail.com>2019-09-16 13:37:29 -0400
committerJames O'Beirne <james.obeirne@pm.me>2020-07-01 14:44:28 -0400
commit8ac3ef46999ed676ca3775f7b2f461d92f09a542 (patch)
tree3bace2a0a4de841a555e04052de69e7cae6ba1de /src/init.cpp
parentf36aaa6392fdbdac6891d92202d3efeff98754f4 (diff)
downloadbitcoin-8ac3ef46999ed676ca3775f7b2f461d92f09a542.tar.xz
add ChainstateManager::MaybeRebalanceCaches()
Aside from in unittests, this method is unused at the moment. It will be used in upcoming commits that enable utxo snapshot activation.
Diffstat (limited to 'src/init.cpp')
-rw-r--r--src/init.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/init.cpp b/src/init.cpp
index 4561a10870..9deb6cd656 100644
--- a/src/init.cpp
+++ b/src/init.cpp
@@ -1562,6 +1562,9 @@ bool AppInitMain(const util::Ref& context, NodeContext& node)
try {
LOCK(cs_main);
chainman.InitializeChainstate();
+ chainman.m_total_coinstip_cache = nCoinCacheUsage;
+ chainman.m_total_coinsdb_cache = nCoinDBCache;
+
UnloadBlockIndex();
// new CBlockTreeDB tries to delete the existing file, which