validation: return VerifyDBResult::INTERRUPTED if verification was interrupted

This means that the -verifydb RPC will now return false if it
cannot finish due to the node being shutdown.
This commit is contained in:
Martin Zumsande
2023-02-16 16:54:26 -05:00
parent 6360b5302d
commit d6f781f1cf
3 changed files with 4 additions and 2 deletions

View File

@@ -352,6 +352,7 @@ arith_uint256 CalculateHeadersWork(const std::vector<CBlockHeader>& headers);
enum class VerifyDBResult {
SUCCESS,
CORRUPTED_BLOCK_DB,
INTERRUPTED,
};
/** RAII wrapper for VerifyDB: Verify consistency of the block and coin databases */