Browse Source

test

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

4
iguana/iguana_recv.c

@ -457,7 +457,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
}
}
max = 1 + ((coin->MAXPENDING*coin->MAXPEERS - pend) >> 1);*/
max = 100;
max = 100 + 100*(bp->hdrsi - starti);
endmillis = OS_milliseconds() + timelimit + (rand() % 1000);
while ( bp->emitfinish == 0 && OS_milliseconds() < endmillis )
{
@ -491,7 +491,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct iguana_bundle *bp,int
usleep(10000);
}
width = 1000 + sqrt(sqrt(bp->n * (1+bp->numsaved+issued)) * (10+coin->bundlescount-bp->hdrsi));
//if ( 0 && counter > 0 )//&& bp->rank <= coin->peers.numranked )
if ( 1 && counter > 0 )//&& bp->rank <= coin->peers.numranked )
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