From 0c7785bb2540b69564104767d38342704230cbc2 Mon Sep 17 00:00:00 2001 From: Martin Zumsande Date: Thu, 6 Oct 2022 17:11:02 -0400 Subject: init, validation: Improve handling if VerifyDB() fails due to insufficient dbcache The rpc command verifychain now fails if the dbcache was not sufficient to complete the verification at the specified level and depth. In the same situation, the VerifyDB check during Init will now fail (and lead to an early shutdown) if the user has explicitly specified -checkblocks or -checklevel but the check couldn't be executed because of the limited cache. If the user didn't change any of the two and is using the defaults, log a warning but don't prevent the node from starting up. --- src/validation.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/validation.h') diff --git a/src/validation.h b/src/validation.h index a9977e76e3..044b4ef823 100644 --- a/src/validation.h +++ b/src/validation.h @@ -353,6 +353,7 @@ enum class VerifyDBResult { SUCCESS, CORRUPTED_BLOCK_DB, INTERRUPTED, + SKIPPED_L3_CHECKS, }; /** RAII wrapper for VerifyDB: Verify consistency of the block and coin databases */ -- cgit v1.2.3