Skip to content

Commit f3ea48a

Browse files
committed
Merge pull request #7050
e855b01 Fix debug log message for block files (Alex Morcos)
2 parents e8df8a5 + e855b01 commit f3ea48a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2579,7 +2579,7 @@ bool FindBlockPos(CValidationState &state, CDiskBlockPos &pos, unsigned int nAdd
25792579

25802580
if ((int)nFile != nLastBlockFile) {
25812581
if (!fKnown) {
2582-
LogPrintf("Leaving block file %i: %s\n", nFile, vinfoBlockFile[nFile].ToString());
2582+
LogPrintf("Leaving block file %i: %s\n", nLastBlockFile, vinfoBlockFile[nLastBlockFile].ToString());
25832583
}
25842584
FlushBlockFile(!fKnown);
25852585
nLastBlockFile = nFile;

0 commit comments

Comments
 (0)