Run a bounded check of the Bitcoin block database

After a storage incident, a bounded verification can help localize an error near the chain tip before you investigate older files.

Specify both depth and verification level

This example asks Bitcoin Core to check the most recent twelve blocks at level two. This level includes reading block data, validating blocks and checking undo data. Choose a quiet interval for disk-intensive diagnostics.

bitcoin-cli verifychain 2 12

Interpret the boolean in scope

A true result applies to the checks performed over that requested window. It cannot establish the health of every historical block file. If the result is false, inspect the node's debug log for the reason before selecting a repair. Passing zero for the block count requests all blocks and materially changes the workload.

bitcoincore.org verifychain