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

Name

Description

db_params

Parameters used to open the underlying leveldb database.

options

Options controlling the behavior of the coins view.

Created with MrDocs