Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,073 Lines • ▼ Show 20 Lines | while (!fLoaded && !fRequestShutdown) { | ||||
"blocks; only checking available blocks", | "blocks; only checking available blocks", | ||||
MIN_BLOCKS_TO_KEEP); | MIN_BLOCKS_TO_KEEP); | ||||
} | } | ||||
{ | { | ||||
LOCK(cs_main); | LOCK(cs_main); | ||||
CBlockIndex *tip = chainActive.Tip(); | CBlockIndex *tip = chainActive.Tip(); | ||||
RPCNotifyBlockChange(true, tip); | RPCNotifyBlockChange(true, tip); | ||||
if (tip && tip->nTime > GetAdjustedTime() + 2 * 60 * 60) { | if (tip && | ||||
tip->nTime > | |||||
GetAdjustedTime() + MAX_FUTURE_BLOCK_TIME) { | |||||
strLoadError = | strLoadError = | ||||
_("The block database contains a block which " | _("The block database contains a block which " | ||||
"appears to be from the future. " | "appears to be from the future. " | ||||
"This may be due to your computer's date and " | "This may be due to your computer's date and " | ||||
"time being set incorrectly. " | "time 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"); | ||||
break; | break; | ||||
▲ Show 20 Lines • Show All 173 Lines • Show Last 20 Lines |