Chainstate::ResizeCoinsCaches

Resize the CoinsViews caches dynamically and flush state to disk.

Synopsis

Declared in <validation.h>

[[requires_capability(0x7ff37b901dd8), requires_capability(0x7ff375c489e8), requires_capability(0x7ff37e053858), requires_capability(0x7ff3759347b8)]]
bool
ResizeCoinsCaches(
    size_t coinstip_size,
    size_t coinsdb_size);

Return Value

true unless an error occurred during the flush.

Parameters

NameDescription
coinstip_sizeNew size budget for the in-memory coins cache.
coinsdb_sizeNew size budget for the on-disk coins database cache.