Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
1c9b6bcf45
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_bundles.c

2
iguana/iguana777.c

@ -706,7 +706,7 @@ void iguana_helper(void *arg)
allcurrent = 0;
//printf("h.%d [%d] bundleQ size.%d lag.%ld\n",helperid,bp->hdrsi,queue_size(&bundlesQ),time(NULL) - bp->nexttime);
coin->numbundlesQ--;
if ( coin->started != 0 && time(NULL) >= bp->nexttime && coin->active != 0 )
if ( coin->started != 0 && time(NULL) > bp->nexttime && coin->active != 0 )
{
flag += iguana_bundleiters(myinfo,ptr->coin,&MEM,MEMB,bp,ptr->timelimit,IGUANA_DEFAULTLAG);
}

2
iguana/iguana_bundles.c

@ -1383,7 +1383,7 @@ void iguana_bundlestats(struct supernet_info *myinfo,struct iguana_info *coin,ch
}
else
{
if ( firstgap == 0 && bp->queued == 0 )
if ( firstgap == 0 && bp->queued == 0 && bp->numsaved < bp->n )
iguana_bundleQ(myinfo,coin,bp,1000);
if ( firstgap == 0 && bp->numsaved < bp->n && bp->numcached < bp->n && (bp->ramchain.H.data == 0 || bp->hdrsi == coin->longestchain/coin->chain->bundlesize || iguana_bundleready(myinfo,coin,bp,bp->numsaved == bp->n) != bp->n) )
{

Loading…
Cancel
Save