Chainstate::GetCoinsCacheSizeState

GetCoinsCacheSizeState overloads

Synopses

Declared in <validation.h>

Dictates whether we need to flush the cache to disk or not.

[[requires_capability(0x7fbc8fb66c78), requires_capability(0x7fbc96bff2e8), requires_capability(0x7fbcaf5d66f8), requires_capability(0x7fbc9e0dcec8)]]
CoinsCacheSizeState
GetCoinsCacheSizeState();
» more...

Dictates whether we need to flush the cache to disk or not, using explicit limits.

[[requires_capability(0x7fbc8fb66d48), requires_capability(0x7fbc96bff3b8), requires_capability(0x7fbcaf5d67c8), requires_capability(0x7fbc9e0dcf98)]]
CoinsCacheSizeState
GetCoinsCacheSizeState(
    size_t max_coins_cache_size_bytes,
    size_t max_mempool_size_bytes);
» more...

Return Value

  • the state of the size of the coins cache.
  • The state of the size of the coins cache.

Parameters

NameDescription
max_coins_cache_size_bytesMaximum size budget for the in-memory coins cache.
max_mempool_size_bytesMaximum size budget for the mempool.