Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,449 Lines • ▼ Show 20 Lines | while (!fLoaded && !ShutdownRequested()) { | ||||
const Consensus::Params ¶ms = chainparams.GetConsensus(); | const Consensus::Params ¶ms = chainparams.GetConsensus(); | ||||
// 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 (!LoadBlockIndex(params)) { | ||||
if (ShutdownRequested()) { | |||||
break; | |||||
} | |||||
strLoadError = _("Error loading block database").translated; | strLoadError = _("Error loading block database").translated; | ||||
break; | break; | ||||
} | } | ||||
// If the loaded chain has a wrong genesis, bail out immediately | // If the loaded chain has a wrong genesis, bail out immediately | ||||
// (we're likely using a testnet datadir, or the other way | // (we're likely using a testnet datadir, or the other way | ||||
// around). | // around). | ||||
if (!mapBlockIndex.empty() && | if (!mapBlockIndex.empty() && | ||||
▲ Show 20 Lines • Show All 354 Lines • Show Last 20 Lines |