Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,482 Lines • ▼ Show 20 Lines | while (!fLoaded && !ShutdownRequested()) { | ||||
break; | break; | ||||
} | } | ||||
// LoadBlockIndex will load fHavePruned if we've ever removed a | // LoadBlockIndex will load fHavePruned if we've ever removed a | ||||
// block file from disk. | // block file from disk. | ||||
// Note that it also sets fReindex based on the disk flag! | // Note that it also sets fReindex based on the disk flag! | ||||
// From here on out fReindex and fReset mean something | // From here on out fReindex and fReset mean something | ||||
// different! | // different! | ||||
if (!LoadBlockIndex(params)) { | if (!chainman.LoadBlockIndex(params)) { | ||||
if (ShutdownRequested()) { | if (ShutdownRequested()) { | ||||
break; | break; | ||||
} | } | ||||
strLoadError = _("Error loading block database"); | strLoadError = _("Error loading block database"); | ||||
break; | break; | ||||
} | } | ||||
// If the loaded chain has a wrong genesis, bail out immediately | // If the loaded chain has a wrong genesis, bail out immediately | ||||
▲ Show 20 Lines • Show All 394 Lines • Show Last 20 Lines |