Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
a1d6802078
  1. 4
      iguana/iguana_recv.c

4
iguana/iguana_recv.c

@ -501,7 +501,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
{
if ( (block= bp->blocks[i]) != 0 )
{
if ( block->RO.recvlen == 0 )//&& (block->fpipbits == 0 || block->fpos < 0) && block->queued == 0 )
if ( block->RO.recvlen == 0 || block->fpipbits == 0 || block->fpos < 0 )
{
if ( bp->issued[i] == 0 || now > bp->issued[i]+10 )
{
@ -533,7 +533,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
//usleep(10000);
}
width = 100 + max*100;//sqrt(sqrt(bp->n * (1+bp->numsaved+issued)) * (10+coin->bundlescount-bp->hdrsi));
if ( 0 && bp->hdrsi == starti )
if ( 1 && bp->hdrsi == starti )
printf("ITERATE.%d max.%d bundle.%d h.%d n.%d r.%d s.%d F.%d I.%d T.%d %f %u next %f counter.%d\n",bp->rank,max,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,counter);
if ( bp->emitfinish == 0 )
{

Loading…
Cancel
Save