Skip to content

Commit e855b01

Browse files
committed
Fix debug log message for block files
1 parent e8df8a5 commit e855b01

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)