CoinsViews::CoinsViews

This constructor initializes CCoinsViewDB and CCoinsViewErrorCatcher instances, but it does not create a CCoinsViewCache instance by default. This is done separately because the presence of the cache has implications on whether or not we're allowed to flush the cache's state to disk, which should not be done until the health of the database is verified.

Synopsis

Declared in <validation.h>

CoinsViews(
    DBParams db_params,
    CoinsViewOptions options);

Description

All arguments forwarded onto CCoinsViewDB.

Parameters

NameDescription
db_paramsParameters used to open the underlying leveldb database.
optionsOptions controlling the behavior of the coins view.