Skip to content

Commit 2a09a38

Browse files
committed
Merge #10714: Avoid printing incorrect block indexing time due to uninitialized variable
959dd87 Avoid printing incorrect block indexing time due to uninitialized variable (practicalswift) Tree-SHA512: a76e43c3ffa734ed5c7eadf363f345f268aa0e6ce775aba8f856fe3bbc82f240dc7c734c5ca3ac500a12eb41fae00623413e79f484d5acf809b6e400851d771d
2 parents e8b9523 + 959dd87 commit 2a09a38

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/init.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1512,7 +1512,9 @@ bool AppInitMain(boost::thread_group& threadGroup, CScheduler& scheduler)
15121512
LogPrintf("Shutdown requested. Exiting.\n");
15131513
return false;
15141514
}
1515-
LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart);
1515+
if (fLoaded) {
1516+
LogPrintf(" block index %15dms\n", GetTimeMillis() - nStart);
1517+
}
15161518

15171519
fs::path est_path = GetDataDir() / FEE_ESTIMATES_FILENAME;
15181520
CAutoFile est_filein(fsbridge::fopen(est_path, "rb"), SER_DISK, CLIENT_VERSION);

0 commit comments

Comments
 (0)