[#CVerifyDB-VerifyDB]
= xref:CVerifyDB.adoc[CVerifyDB]::VerifyDB
:relfileprefix: ../
:mrdocs:

Verify the consistency of the block and coin databases&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, requires&lowbar;capability(0x7f2e1b932720), requires&lowbar;capability(0x7f2e275ab900), requires&lowbar;capability(0x7f2e3696cd00), requires&lowbar;capability(0x7f2e35458f50)&rsqb;&rsqb;
xref:VerifyDBResult.adoc[VerifyDBResult]
VerifyDB(
    xref:Chainstate.adoc[Chainstate]& chainstate,
    xref:Consensus/Params.adoc[Consensus::Params] const& consensus&lowbar;params,
    xref:CCoinsView.adoc[CCoinsView]& coinsview,
    int nCheckLevel,
    int nCheckDepth);
----

== Return Value

The outcome of the verification&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *chainstate*
| The chainstate whose databases are verified&period;
| *consensus&lowbar;params*
| Consensus parameters used during verification&period;
| *coinsview*
| The coins view to verify against&period;
| *nCheckLevel*
| How thorough the checks should be&period;
| *nCheckDepth*
| How many blocks back from the tip to verify&period;
|===


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