[#CoinsViews-2constructor] = xref:CoinsViews.adoc[CoinsViews]::CoinsViews :relfileprefix: ../ :mrdocs: 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>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- CoinsViews( xref:DBParams.adoc[DBParams] db_params, xref:CoinsViewOptions.adoc[CoinsViewOptions] options); ---- == Description All arguments forwarded onto CCoinsViewDB. == Parameters [cols="1,4"] |=== | Name| Description | *db_params* | Parameters used to open the underlying leveldb database. | *options* | Options controlling the behavior of the coins view. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#