Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
092962ec4e
  1. 4
      iguana/iguana777.c
  2. 2
      iguana/iguana_bundles.c

4
iguana/iguana777.c

@ -404,9 +404,9 @@ void iguana_helper(void *arg)
idle = 0;
if ( (bp= ptr->bp) != 0 && (coin= ptr->coin) != 0 )
{
//if ( coin->started != 0 && time(NULL) >= bp->nexttime )
if ( coin->started != 0 && time(NULL) >= bp->nexttime )
flag += iguana_bundleiters(ptr->coin,&MEM,MEMB,bp,ptr->timelimit);
//else iguana_bundleQ(ptr->coin,bp,1000);
else iguana_bundleQ(ptr->coin,bp,1000);
} else printf("helper missing param? %p %p %u\n",ptr->coin,bp,ptr->timelimit);
myfree(ptr,ptr->allocsize);
flag++;

2
iguana/iguana_bundles.c

@ -738,7 +738,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru
}
if ( coin->current == 0 )
coin->current = coin->bundles[0];
//if ( (range= coin->peers.numranked) > coin->MAXBUNDLES )
if ( (range= coin->peers.numranked) > coin->MAXBUNDLES )
range = coin->MAXBUNDLES;
currentbp = coin->current;
lastbp = coin->lastpending;

Loading…
Cancel
Save