mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-06-29 18:20:58 +02:00
log: Don't log cache rebalancing in absense of a snapshot chainstate
This commit is contained in:
@ -5701,8 +5701,8 @@ void ChainstateManager::MaybeRebalanceCaches()
|
|||||||
assert(ibd_usable || snapshot_usable);
|
assert(ibd_usable || snapshot_usable);
|
||||||
|
|
||||||
if (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. This will always happen
|
||||||
// Allocate everything to the IBD chainstate.
|
// when we are not using a snapshot.
|
||||||
m_ibd_chainstate->ResizeCoinsCaches(m_total_coinstip_cache, m_total_coinsdb_cache);
|
m_ibd_chainstate->ResizeCoinsCaches(m_total_coinstip_cache, m_total_coinsdb_cache);
|
||||||
}
|
}
|
||||||
else if (snapshot_usable && !ibd_usable) {
|
else if (snapshot_usable && !ibd_usable) {
|
||||||
|
Reference in New Issue
Block a user