Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4a6e4a6139
  1. 4
      iguana/iguana_bundles.c

4
iguana/iguana_bundles.c

@ -1219,12 +1219,12 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
coin->stucktime = (uint32_t)time(NULL);
coin->stuckiters = 0;
}
else if ( coin->stucktime != 0 )//&& (displag % 3) == 1 )
else if ( coin->stucktime != 0 && (displag % 3) == 1 )
{
uint8_t missings[IGUANA_MAXBUNDLESIZE/8+1]; struct iguana_blockreq *breq; double aveduration; int32_t tmp,tmp2,n,lag; //priority=3,
lag = (int32_t)time(NULL) - coin->stucktime;
bp = firstgap;
printf("NONZ stucktime.%u lag.%d iters.%d vs %d\n",coin->stucktime,lag,coin->stuckiters,lag/coin->MAXSTUCKTIME);
printf("NONZ stucktime.%u lag.%d iters.%d vs %d metric.%d\n",coin->stucktime,lag,coin->stuckiters,lag/coin->MAXSTUCKTIME,(firstgap->hdrsi * coin->chain->bundlesize * 10) + firstgap->numsaved + firstgap->numhashes + firstgap->numcached);
if ( (lag/coin->MAXSTUCKTIME) > coin->stuckiters )
{
//printf("UNSTICK\n");

Loading…
Cancel
Save