diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 43b882d11..f157f1852 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -361,7 +361,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int break; } } - //sleep(1); + usleep(10000); iguana_bundleQ(coin,bp,bp->n); return(0); } @@ -371,7 +371,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int if ( pend >= coin->MAXPENDING*coin->MAXPEERS ) { usleep(10000); - printf("SKIP pend.%d vs %d: ITERATE bundle.%d n.%d r.%d s.%d finished.%d timelimit.%d\n",pend,coin->MAXPENDING*coin->MAXPEERS,bp->bundleheight,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit); + //printf("SKIP pend.%d vs %d: ITERATE bundle.%d n.%d r.%d s.%d finished.%d timelimit.%d\n",pend,coin->MAXPENDING*coin->MAXPEERS,bp->bundleheight,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit); iguana_bundleQ(coin,bp,counter == 0 ? bp->n*5 : bp->n*2); return(0); } @@ -404,7 +404,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int break; usleep(1000); } - if ( 0 && counter > 0 ) + if ( 1 && counter > 0 ) printf("ITERATE bundle.%d h.%d n.%d r.%d s.%d finished.%d issued.%d\n",bp->bundleheight,bp->numhashes,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,counter); if ( bp->emitfinish == 0 ) { @@ -434,7 +434,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int iguana_emitQ(coin,bp); return(1); } - iguana_bundleQ(coin,bp,counter == 0 ? 200);bp->n*5 : bp->n*2); + iguana_bundleQ(coin,bp,counter == 0 ? bp->n*5 : bp->n*2); } return(0); }