Merge 3c856e2fe8 into merged_master (Bitcoin PR bitcoin/bitcoin#28569)

This commit is contained in:
Byron Hambly 2025-08-07 13:48:09 +02:00
commit 89ca1f9416
No known key found for this signature in database
GPG key ID: DE8F6EA20A661697

View file

@ -6186,8 +6186,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) {