CVerifyDB::VerifyDB

Verify the consistency of the block and coin databases.

Synopsis

Declared in <validation.h>

[[nodiscard, requires_capability(0x7ff37b7b0260), requires_capability(0x7ff375b0e3c0), requires_capability(0x7ff37df48df0), requires_capability(0x7ff391ab6710)]]
VerifyDBResult
VerifyDB(
    Chainstate& chainstate,
    Consensus::Params const& consensus_params,
    CCoinsView& coinsview,
    int nCheckLevel,
    int nCheckDepth);

Return Value

The outcome of the verification.

NOTE

The return value should not be discarded.

Parameters

NameDescription
chainstateThe chainstate whose databases are verified.
consensus_paramsConsensus parameters used during verification.
coinsviewThe coins view to verify against.
nCheckLevelHow thorough the checks should be.
nCheckDepthHow many blocks back from the tip to verify.