Add pause if scriptcheckqueue isn't idle
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user