Inside Bitcoin
Opening the selected file…
Opening the selected file…
The code behind the network, with room to understand it.
Release published 2026-10-28 · Snapshot fetched 2026-11-01. Latest stable release at fetch time; development branches and Git history are excluded. Only the selected code window and visible folders load here.
251if (tip && tip->nTime > GetTime() + MAX_FUTURE_BLOCK_TIME) {252return {ChainstateLoadStatus::FAILURE, _("The block database contains a block which appears to be from the future. "253"This may be due to your computer's date and time being set incorrectly. "254"Only rebuild the block database if you are sure that your computer's date and time are correct")};255}257VerifyDBResult result = CVerifyDB(chainman.GetNotifications()).VerifyDB(258*chainstate, chainman.GetConsensus(), chainstate->CoinsDB(),259options.check_level,260options.check_blocks);261switch (result) {262case VerifyDBResult::SUCCESS:263case VerifyDBResult::SKIPPED_MISSING_BLOCKS:264break;265case VerifyDBResult::INTERRUPTED:266return {ChainstateLoadStatus::INTERRUPTED, _("Block verification was interrupted")};267case VerifyDBResult::CORRUPTED_BLOCK_DB:268return {ChainstateLoadStatus::FAILURE, _("Corrupted block database detected")};269case VerifyDBResult::SKIPPED_L3_CHECKS:270if (options.require_full_verification) {271return {ChainstateLoadStatus::FAILURE_INSUFFICIENT_DBCACHE, _("Insufficient dbcache for block verification")};272}273break;274} // no default case, so the compiler can warn about missing cases275}276}278return {ChainstateLoadStatus::SUCCESS, {}};279}280} // namespace node