validation: Make LoadBlockIndex() a member of ChainstateManager

This commit is contained in:
MarcoFalke
2020-04-18 08:27:46 -04:00
parent fa05fdf0f1
commit fa84b1cd84
3 changed files with 11 additions and 11 deletions

View File

@@ -1582,7 +1582,7 @@ bool AppInitMain(const util::Ref& context, NodeContext& node)
// block file from disk.
// Note that it also sets fReindex based on the disk flag!
// From here on out fReindex and fReset mean something different!
if (!LoadBlockIndex(chainparams)) {
if (!chainman.LoadBlockIndex(chainparams)) {
if (ShutdownRequested()) break;
strLoadError = _("Error loading block database");
break;