Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
48b2466285
  1. 4
      iguana/iguana777.c
  2. 2
      iguana/iguana777.h

4
iguana/iguana777.c

@ -323,11 +323,13 @@ void iguana_helper(void *arg)
flag = 0; flag = 0;
if ( (ptr= queue_dequeue(&helperQ,0)) != 0 ) if ( (ptr= queue_dequeue(&helperQ,0)) != 0 )
{ {
if ( (coin= ptr->coin) != 0 && myallocated(0,-1) > coin->MAXMEM ) if ( (coin= ptr->coin) != 0 && myallocated(0,-1) > coin->MAXMEM && coin->helperdepth > IGUANA_NUMHELPERS/2 && ptr->type == 'B' )
queue_enqueue("reQ",&helperQ,&ptr->DL,0); queue_enqueue("reQ",&helperQ,&ptr->DL,0);
else else
{ {
coin->helperdepth++;
iguana_helpertask(fp,&MEM,MEMB,ptr); iguana_helpertask(fp,&MEM,MEMB,ptr);
coin->helperdepth--;
myfree(ptr,ptr->allocsize); myfree(ptr,ptr->allocsize);
} }
flag++; flag++;

2
iguana/iguana777.h

@ -418,7 +418,7 @@ struct iguana_info
struct iguana_peers peers; struct iguana_peers peers;
uint64_t instance_nonce,myservices,totalsize,totalrecv,totalpackets,sleeptime; uint64_t instance_nonce,myservices,totalsize,totalrecv,totalpackets,sleeptime;
int64_t mining,totalfees,TMPallocated,MAXRECVCACHE,MAXMEM,estsize,activebundles; int64_t mining,totalfees,TMPallocated,MAXRECVCACHE,MAXMEM,estsize,activebundles;
int32_t MAXPEERS,MAXPENDING,MAXBUNDLES,active,closestbundle,numemitted,lastsweep,startutc,newramchain,numcached,cachefreed; int32_t MAXPEERS,MAXPENDING,MAXBUNDLES,active,closestbundle,numemitted,lastsweep,startutc,newramchain,numcached,cachefreed,helperdepth;
uint32_t longestchain,lastsync,parsetime,numiAddrs,firstblock,lastpossible,bundlescount,savedblocks; uint32_t longestchain,lastsync,parsetime,numiAddrs,firstblock,lastpossible,bundlescount,savedblocks;
struct tai starttime; double startmillis; struct tai starttime; double startmillis;
struct iguana_chain *chain; struct iguana_chain *chain;

Loading…
Cancel
Save