From 6b786278c9bbe5fd897ac1ab20d825cca0acc68b Mon Sep 17 00:00:00 2001 From: blackjok3r Date: Tue, 29 Jan 2019 07:12:20 +0800 Subject: [PATCH] fix --- src/main.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 86d4504a0..94b9adf73 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -4639,20 +4639,20 @@ bool FindBlockPos(int32_t tmpflag,CValidationState &state, CDiskBlockPos &pos, u LogPrintf("Leaving block file %i: %s\n", nFile, (*ptr)[nFile].ToString()); } FlushBlockFile(!fKnown); - fprintf(stderr, "nFile = %i size.%li\n",nFile,tmpBlockFiles.size()); + //fprintf(stderr, "nFile = %i size.%li\n",nFile,tmpBlockFiles.size()); if ( tmpflag != 0 && tmpBlockFiles.size() >= 4 ) { if ( nFile == 1 ) { PruneOneBlockFile(true,TMPFILE_START+2); tmpBlockFiles[2].SetNull(); - LogPrintf("Reset tempfile 2\n"); sleep(15); + LogPrintf("Reset tempfile 2\n"); } else if ( nFile == 2 ) { PruneOneBlockFile(true,TMPFILE_START+3); tmpBlockFiles[3].SetNull(); - LogPrintf("Reset tempfile 3\n"); sleep(15); + LogPrintf("Reset tempfile 3\n"); } } if ( tmpflag != 0 && nFile == 3 ) @@ -4662,10 +4662,10 @@ bool FindBlockPos(int32_t tmpflag,CValidationState &state, CDiskBlockPos &pos, u PruneOneBlockFile(true,TMPFILE_START+1); tmpBlockFiles[1].SetNull(); nFile = 0; - LogPrintf("Reset tempfile 0\n"); sleep(15); + LogPrintf("Reset tempfile 0 and 1\n"); } *lastfilep = nFile; - fprintf(stderr, "*lastfilep = %i\n",*lastfilep);sleep(15); + //fprintf(stderr, "*lastfilep = %i\n",*lastfilep); } (*ptr)[nFile].AddBlock(nHeight, nTime);