4753 | @@ -4754,9 +4754,7 @@ bool LoadExternalBlockFile(const CChainParams& chainparams, FILE* fileIn, FlatFi
4754 | } catch (const std::runtime_error& e) {
4755 | AbortNode(std::string("System error: ") + e.what());
4756 | }
4757 | - if (nLoaded > 0)
4758 | - LogPrintf("Loaded %i blocks from external file in %dms\n", nLoaded, GetTimeMillis() - nStart);
4759 | - return nLoaded > 0;
4760 | + LogPrintf("Loaded %i blocks from external file in %dms\n", nLoaded, GetTimeMillis() - nStart);
This change adds log entry if nLoaded == 0. Is it intentional?
Yes. LoadExternalBlockFile is only called when files are actually read. If nLoaded is zero, something has gone wrong and we should be verbose about that.