Allow quicker shutdowns during LoadBlockIndex()

This commit is contained in:
Jonas Schnelli
2018-04-13 21:20:29 +02:00
parent f030410e88
commit af5fa82b67
3 changed files with 3 additions and 0 deletions

View File

@@ -1468,6 +1468,7 @@ bool AppInitMain()
// 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 (ShutdownRequested()) break;
strLoadError = _("Error loading block database");
break;
}