From e8e4c2423e319ab4cd744e40bc3eb2005165c65d Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 8 Apr 2016 16:48:45 -0500 Subject: [PATCH] test --- iguana/iguana_bundles.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index c2f5cbf1b..eb88d4f4e 100755 --- a/iguana/iguana_bundles.c +++ b/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; in; 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; in; 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"); }