|
|
@ -474,8 +474,6 @@ void iguana_helper(void *arg) |
|
|
|
iguana_utxogen(coin,helperid,coin->PREFETCHLAG < 0); |
|
|
|
} |
|
|
|
} |
|
|
|
//if ( (type & (1 << 0)) != 0 )
|
|
|
|
{ |
|
|
|
n = queue_size(&bundlesQ); |
|
|
|
for (iter=0; iter<n; iter++) |
|
|
|
{ |
|
|
@ -509,11 +507,10 @@ void iguana_helper(void *arg) |
|
|
|
myfree(ptr,ptr->allocsize); |
|
|
|
} else break; |
|
|
|
} |
|
|
|
} |
|
|
|
//if ( (type & (1 << 1)) != 0 )
|
|
|
|
starttime = (uint32_t)time(NULL); |
|
|
|
while ( time(NULL) < starttime+10 && (ptr= queue_dequeue(&validateQ,0)) != 0 ) |
|
|
|
{ |
|
|
|
printf("vQ.%d lag.%d\n",queue_size(&validateQ),(uint32_t)time(NULL)-starttime); |
|
|
|
if ( (bp= ptr->bp) != 0 && (coin= ptr->coin) != 0 && coin->active != 0 ) |
|
|
|
{ |
|
|
|
printf("validate.[%d] %d vs %d\n",bp->hdrsi,coin->blocks.hwmchain.height/coin->chain->bundlesize,(coin->longestchain-1)/coin->chain->bundlesize); |
|
|
@ -523,7 +520,6 @@ void iguana_helper(void *arg) |
|
|
|
{ |
|
|
|
usleep(10000); |
|
|
|
iguana_validateQ(coin,bp); |
|
|
|
continue; |
|
|
|
} |
|
|
|
} |
|
|
|
else if ( coin->active != 0 ) |
|
|
|