Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
e8e4c2423e
  1. 14
      iguana/iguana_bundles.c

14
iguana/iguana_bundles.c

@ -1105,10 +1105,13 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
tmp = (difft.millis * 1000000);
tmp %= 1000000000;
difft.millis = ((double)tmp / 1000000.);
if ( firstgap != coin->current && firstgap != 0 )//&& coin->PREFETCHLAG < 0 )
if ( (bp= firstgap) != coin->current && bp != 0 )//&& coin->PREFETCHLAG < 0 )
{
printf("new 1st.%d\n",firstgap->hdrsi);
iguana_bundleissuemissing(coin,firstgap,3,1.);
printf("new 1st.%d\n",bp->hdrsi);
for (i=0; i<bp->n; i++)
if ( GETBIT(bp->haveblock,i) == 0 )
bp->issued[i] = 0;
iguana_bundleissuemissing(coin,bp,3,1.);
}
if ( (coin->current= firstgap) == 0 )
{
@ -1158,7 +1161,10 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
iguana_blockQ("stuck",coin,bp,i,block->RO.hash2,1);
}*/
}
if ( (n= iguana_bundleissuemissing(coin,bp,3,1.)) > 0 )
for (i=0; i<bp->n; i++)
if ( GETBIT(bp->haveblock,i) == 0 )
bp->issued[i] = 0;
if ( (n= iguana_bundleissuemissing(coin,bp,3,1.)) > 0 )
printf("issued %d priority requests [%d] to unstick stuckiters.%d lag.%d\n",n,bp->hdrsi,coin->stuckiters,lag);
//else printf("no bundlerequests issued\n");
}

Loading…
Cancel
Save