Changeset View
Changeset View
Standalone View
Standalone View
src/init.cpp
Show First 20 Lines • Show All 2,039 Lines • ▼ Show 20 Lines | while (!fLoaded && !fRequestShutdown) { | ||||
CleanupBlockRevFiles(); | CleanupBlockRevFiles(); | ||||
} | } | ||||
} else if (!pcoinsdbview->Upgrade()) { | } else if (!pcoinsdbview->Upgrade()) { | ||||
strLoadError = _("Error upgrading chainstate database"); | strLoadError = _("Error upgrading chainstate database"); | ||||
break; | break; | ||||
} | } | ||||
if (fRequestShutdown) break; | if (fRequestShutdown) break; | ||||
if (!LoadBlockIndex(chainparams)) { | if (!LoadBlockIndex(config)) { | ||||
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 | ||||
// (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 248 Lines • Show Last 20 Lines |