mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
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.
This commit is contained in:
parent
f36aaa6392
commit
8ac3ef4699
4 changed files with 99 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue