diff options
author | Martin Zumsande <mzumsande@gmail.com> | 2023-02-16 16:54:26 -0500 |
---|---|---|
committer | Martin Zumsande <mzumsande@gmail.com> | 2023-02-16 17:32:15 -0500 |
commit | d6f781f1cfcbc2c2ad5ee289a0642ed00386d013 (patch) | |
tree | bb1c6b9ba3a23356cc86bcb3265f499e02918680 /src/validation.h | |
parent | 6360b5302d2675788de5c4a28ea77d823f6d809e (diff) |
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.
Diffstat (limited to 'src/validation.h')
-rw-r--r-- | src/validation.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/validation.h b/src/validation.h index 7e30fc95de..a9977e76e3 100644 --- a/src/validation.h +++ b/src/validation.h @@ -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 */ |