validation: report if pruning prevents completion of verification

Now the verifychain RPC returns false if the checks didn't
finish because the blocks requested to be queried have been pruned.
This commit is contained in:
Martin Zumsande
2023-02-06 15:05:33 -05:00
parent 0c7785bb25
commit 57ef2a4812
4 changed files with 10 additions and 3 deletions

View File

@@ -354,6 +354,7 @@ enum class VerifyDBResult {
CORRUPTED_BLOCK_DB,
INTERRUPTED,
SKIPPED_L3_CHECKS,
SKIPPED_MISSING_BLOCKS,
};
/** RAII wrapper for VerifyDB: Verify consistency of the block and coin databases */