aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Morcos <morcos@chaincode.com>2015-11-17 22:23:39 -0500
committerAlex Morcos <morcos@chaincode.com>2015-11-17 22:23:39 -0500
commite855b0152fa9d23fd49ccdd1b8e9427826b44a67 (patch)
treec21affcfa0880034362adeaa3d7b54704eda2a1c
parente8df8a5077df673f1914f4a40bf54b126d13de1c (diff)
Fix debug log message for block files
-rw-r--r--src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.cpp b/src/main.cpp
index a1f326fb13..86bf957436 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -2579,7 +2579,7 @@ bool FindBlockPos(CValidationState &state, CDiskBlockPos &pos, unsigned int nAdd
if ((int)nFile != nLastBlockFile) {
if (!fKnown) {
- LogPrintf("Leaving block file %i: %s\n", nFile, vinfoBlockFile[nFile].ToString());
+ LogPrintf("Leaving block file %i: %s\n", nLastBlockFile, vinfoBlockFile[nLastBlockFile].ToString());
}
FlushBlockFile(!fKnown);
nLastBlockFile = nFile;