Changeset View
Changeset View
Standalone View
Standalone View
src/node/chainstate.cpp
Show First 20 Lines • Show All 269 Lines • ▼ Show 20 Lines | for (Chainstate *chainstate : chainman.GetAll()) { | ||||
_("The block database contains a block which appears " | _("The block database contains a block which appears " | ||||
"to be from the future. " | "to be from the future. " | ||||
"This may be due to your computer's date and time " | "This may be due to your computer's date and time " | ||||
"being set incorrectly. " | "being set incorrectly. " | ||||
"Only rebuild the block database if you are sure " | "Only rebuild the block database if you are sure " | ||||
"that your computer's date and time are correct")}; | "that your computer's date and time are correct")}; | ||||
} | } | ||||
VerifyDBResult result = CVerifyDB().VerifyDB( | VerifyDBResult result = | ||||
*chainstate, chainman.GetConfig(), chainstate->CoinsDB(), | CVerifyDB().VerifyDB(*chainstate, chainstate->CoinsDB(), | ||||
options.check_level, options.check_blocks); | options.check_level, options.check_blocks); | ||||
switch (result) { | switch (result) { | ||||
case VerifyDBResult::SUCCESS: | case VerifyDBResult::SUCCESS: | ||||
case VerifyDBResult::SKIPPED_MISSING_BLOCKS: | case VerifyDBResult::SKIPPED_MISSING_BLOCKS: | ||||
break; | break; | ||||
case VerifyDBResult::INTERRUPTED: | case VerifyDBResult::INTERRUPTED: | ||||
return {ChainstateLoadStatus::INTERRUPTED, | return {ChainstateLoadStatus::INTERRUPTED, | ||||
_("Block verification was interrupted")}; | _("Block verification was interrupted")}; | ||||
case VerifyDBResult::CORRUPTED_BLOCK_DB: | case VerifyDBResult::CORRUPTED_BLOCK_DB: | ||||
Show All 16 Lines |