[#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&period; This is done separately because the presence of the cache has implications on whether or not we&apos;re allowed to flush the cache&apos;s state to disk, which should not be done until the health of the database is verified&period;

== Synopsis

Declared in `&lt;validation&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
CoinsViews(
    xref:DBParams.adoc[DBParams] db&lowbar;params,
    xref:CoinsViewOptions.adoc[CoinsViewOptions] options);
----

== Description

All arguments forwarded onto CCoinsViewDB&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *db&lowbar;params*
| Parameters used to open the underlying leveldb database&period;
| *options*
| Options controlling the behavior of the coins view&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
