|
|
@ -365,6 +365,11 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
iguana_bundleQ(coin,bp,bp->n*5); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
if ( bp->rank == 0 || bp->rank > coin->peers.numranked ) |
|
|
|
{ |
|
|
|
iguana_bundleQ(coin,bp,((bp->rank != 0) ? bp->rank : 64) * 1000); |
|
|
|
return(0); |
|
|
|
} |
|
|
|
pend = queue_size(&coin->priorityQ) + queue_size(&coin->blocksQ); |
|
|
|
for (i=0; i<IGUANA_MAXPEERS; i++) |
|
|
|
pend += coin->peers.active[i].pendblocks; |
|
|
@ -416,7 +421,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int |
|
|
|
} |
|
|
|
width = 1000 + sqrt(sqrt(bp->n * (1+bp->numsaved+issued)) * (10+coin->bundlescount-bp->hdrsi)); |
|
|
|
if ( 1 && counter > 0 && bp->rank <= coin->peers.numranked ) |
|
|
|
printf("ITERATE bundle.%d h.%d n.%d r.%d s.%d F.%d I.%d T.%d %f %u next %f\n",bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,issued,timelimit,endmillis-OS_milliseconds(),(uint32_t)time(NULL),width); |
|
|
|
printf("ITERATE.%d bundle.%d h.%d n.%d r.%d s.%d F.%d I.%d T.%d %f %u next %f\n",bp->rank,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->n,bp->numrecv,bp->numsaved,bp->emitfinish,issued,timelimit,endmillis-OS_milliseconds(),(uint32_t)time(NULL),width); |
|
|
|
if ( bp->emitfinish == 0 ) |
|
|
|
{ |
|
|
|
if ( bp->numsaved >= bp->n ) |
|
|
|