Add pause if scriptcheckqueue isn't idle

This commit is contained in:
jl777
2018-07-27 01:12:00 -11:00
parent 09c32513d1
commit c66eb36d51
6 changed files with 43 additions and 0 deletions

View File

@@ -2825,6 +2825,14 @@ bool ConnectBlock(const CBlock& block, CValidationState& state, CBlockIndex* pin
CBlockUndo blockundo;
if ( ASSETCHAINS_CC != 0 )
{
if ( pqueue->IsIdle() == 0 )
{
fprintf(stderr,"scriptcheckqueue isnt idle\n");
sleep(1);
}
}
CCheckQueueControl<CScriptCheck> control(fExpensiveChecks && nScriptCheckThreads ? &scriptcheckqueue : NULL);
int64_t nTimeStart = GetTimeMicros();