Chainstate::InitCoinsDB

Initialize the CoinsViews UTXO set database management data structures. The in-memory cache is initialized separately.

Synopsis

Declared in <validation.h>

void
InitCoinsDB(
    size_t cache_size_bytes,
    bool in_memory,
    bool should_wipe);

Description

All parameters forwarded to CoinsViews.

Parameters

NameDescription
cache_size_bytesSize budget for the on-disk coins database cache.
in_memoryWhether the database should be kept in memory only.
should_wipeWhether to wipe any existing database contents.