[#CVerifyDB-VerifyDB] = xref:CVerifyDB.adoc[CVerifyDB]::VerifyDB :relfileprefix: ../ :mrdocs: Verify the consistency of the block and coin databases. == Synopsis Declared in `<validation.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard, requires_capability(0x7f2e1b932720), requires_capability(0x7f2e275ab900), requires_capability(0x7f2e3696cd00), requires_capability(0x7f2e35458f50)]] xref:VerifyDBResult.adoc[VerifyDBResult] VerifyDB( xref:Chainstate.adoc[Chainstate]& chainstate, xref:Consensus/Params.adoc[Consensus::Params] const& consensus_params, xref:CCoinsView.adoc[CCoinsView]& coinsview, int nCheckLevel, int nCheckDepth); ---- == Return Value The outcome of the verification. [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. | *consensus_params* | Consensus parameters used during verification. | *coinsview* | The coins view to verify against. | *nCheckLevel* | How thorough the checks should be. | *nCheckDepth* | How many blocks back from the tip to verify. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#