mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
Merge 519ec2650e into merged_master (Bitcoin PR bitcoin/bitcoin#27157)
This commit is contained in:
commit
8c39ab51c2
2 changed files with 6 additions and 1 deletions
|
|
@ -198,9 +198,10 @@ ChainstateLoadResult VerifyLoadedChainstate(ChainstateManager& chainman, const C
|
|||
options.check_blocks);
|
||||
switch (result) {
|
||||
case VerifyDBResult::SUCCESS:
|
||||
case VerifyDBResult::INTERRUPTED:
|
||||
case VerifyDBResult::SKIPPED_MISSING_BLOCKS:
|
||||
break;
|
||||
case VerifyDBResult::INTERRUPTED:
|
||||
return {ChainstateLoadStatus::INTERRUPTED, _("Block verification was interrupted")};
|
||||
case VerifyDBResult::CORRUPTED_BLOCK_DB:
|
||||
return {ChainstateLoadStatus::FAILURE, _("Corrupted block database detected")};
|
||||
case VerifyDBResult::SKIPPED_L3_CHECKS:
|
||||
|
|
|
|||
|
|
@ -25,6 +25,10 @@ struct ChainstateLoadOptions {
|
|||
bool reindex{false};
|
||||
bool reindex_chainstate{false};
|
||||
bool prune{false};
|
||||
//! Setting require_full_verification to true will require all checks at
|
||||
//! check_level (below) to succeed for loading to succeed. Setting it to
|
||||
//! false will skip checks if cache is not big enough to run them, so may be
|
||||
//! helpful for running with a small cache.
|
||||
bool require_full_verification{true};
|
||||
int64_t check_blocks{DEFAULT_CHECKBLOCKS};
|
||||
int64_t check_level{DEFAULT_CHECKLEVEL};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue