Verify the consistency of the block and coin databases.
Synopsis
Declared in <validation.h>
[[nodiscard, requires_capability(0x7fbc8fa14280), requires_capability(0x7fbc96aacd60), requires_capability(0x7fbc8461b4a0), requires_capability(0x7fbc930fc9c0)]]
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
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. |
Created with MrDocs