fix
This commit is contained in:
10
src/main.cpp
10
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());
|
LogPrintf("Leaving block file %i: %s\n", nFile, (*ptr)[nFile].ToString());
|
||||||
}
|
}
|
||||||
FlushBlockFile(!fKnown);
|
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 ( tmpflag != 0 && tmpBlockFiles.size() >= 4 )
|
||||||
{
|
{
|
||||||
if ( nFile == 1 )
|
if ( nFile == 1 )
|
||||||
{
|
{
|
||||||
PruneOneBlockFile(true,TMPFILE_START+2);
|
PruneOneBlockFile(true,TMPFILE_START+2);
|
||||||
tmpBlockFiles[2].SetNull();
|
tmpBlockFiles[2].SetNull();
|
||||||
LogPrintf("Reset tempfile 2\n"); sleep(15);
|
LogPrintf("Reset tempfile 2\n");
|
||||||
}
|
}
|
||||||
else if ( nFile == 2 )
|
else if ( nFile == 2 )
|
||||||
{
|
{
|
||||||
PruneOneBlockFile(true,TMPFILE_START+3);
|
PruneOneBlockFile(true,TMPFILE_START+3);
|
||||||
tmpBlockFiles[3].SetNull();
|
tmpBlockFiles[3].SetNull();
|
||||||
LogPrintf("Reset tempfile 3\n"); sleep(15);
|
LogPrintf("Reset tempfile 3\n");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if ( tmpflag != 0 && nFile == 3 )
|
if ( tmpflag != 0 && nFile == 3 )
|
||||||
@@ -4662,10 +4662,10 @@ bool FindBlockPos(int32_t tmpflag,CValidationState &state, CDiskBlockPos &pos, u
|
|||||||
PruneOneBlockFile(true,TMPFILE_START+1);
|
PruneOneBlockFile(true,TMPFILE_START+1);
|
||||||
tmpBlockFiles[1].SetNull();
|
tmpBlockFiles[1].SetNull();
|
||||||
nFile = 0;
|
nFile = 0;
|
||||||
LogPrintf("Reset tempfile 0\n"); sleep(15);
|
LogPrintf("Reset tempfile 0 and 1\n");
|
||||||
}
|
}
|
||||||
*lastfilep = nFile;
|
*lastfilep = nFile;
|
||||||
fprintf(stderr, "*lastfilep = %i\n",*lastfilep);sleep(15);
|
//fprintf(stderr, "*lastfilep = %i\n",*lastfilep);
|
||||||
}
|
}
|
||||||
|
|
||||||
(*ptr)[nFile].AddBlock(nHeight, nTime);
|
(*ptr)[nFile].AddBlock(nHeight, nTime);
|
||||||
|
|||||||
Reference in New Issue
Block a user