verifychain
verifychain ( checklevel nblocks )
Verifies blockchain database.
Argument #1 – checklevel
Type: numeric, optional, default=3, range=0-4
-
The thoroughness of block verification is determined by levels:
- Level 0: Reads the blocks from disk.
- Level 1: Verifies the validity of the blocks.
- Level 2: Validates the undo data.
- Level 3: Checks the disconnection of the tip blocks.
- Level 4: Attempts to reconnect the blocks.
Each level includes the checks from all preceding levels.
Argument #2 – nblocks
Type: numeric, optional, default=6, 0=all
The number of blocks to check.
Result
Name |
Type |
Description |
---|---|---|
true|false |
boolean |
Verified or not |