1
mirror of https://github.com/bitcoin/bitcoin synced 2024-09-28 15:42:24 +02:00

log: Don't log cache rebalancing in absense of a snapshot chainstate

This commit is contained in:
Fabian Jahr 2023-10-03 13:36:05 +02:00
parent e7b0004b37
commit ec84f999f1
No known key found for this signature in database
GPG Key ID: F13D1E9D890798CD

View File

@ -5701,8 +5701,8 @@ void ChainstateManager::MaybeRebalanceCaches()
assert(ibd_usable || snapshot_usable);
if (ibd_usable && !snapshot_usable) {
LogPrintf("[snapshot] allocating all cache to the IBD chainstate\n");
// Allocate everything to the IBD chainstate.
// Allocate everything to the IBD chainstate. This will always happen
// when we are not using a snapshot.
m_ibd_chainstate->ResizeCoinsCaches(m_total_coinstip_cache, m_total_coinsdb_cache);
}
else if (snapshot_usable && !ibd_usable) {