Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
1cfe4fd40e
  1. 10
      iguana/iguana777.c
  2. 2
      iguana/iguana777.h
  3. 4
      iguana/iguana_bundles.c
  4. 2
      iguana/main.c

10
iguana/iguana777.c

@ -360,9 +360,13 @@ int32_t iguana_validated(struct iguana_info *coin)
int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convertflag)
{
int32_t hdrsi,retval,n,max,incr,num = 0; struct iguana_bundle *bp;
incr = (coin->PREFETCHLAG > 0) ? 1 : IGUANA_NUMHELPERS;
if ( coin->PREFETCHLAG > 0 && helperid != 0 )
return(0);
incr = IGUANA_NUMHELPERS;
if ( 0 && coin->PREFETCHLAG > 0 )
{
if ( helperid != 0 )
return(0);
else incr = 1;
}
max = coin->bundlescount;
if ( coin->bundles[max-1] != 0 && coin->bundles[max-1]->emitfinish <= 1 )
max--;

2
iguana/iguana777.h

@ -47,7 +47,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1
#define IGUANA_MAXPENDINGREQUESTS 8
#define IGUANA_PENDINGREQUESTS 256
#define IGUANA_PENDINGREQUESTS 8
#define IGUANA_MINPENDBUNDLES 4
#define IGUANA_MAXPENDBUNDLES 32
#define IGUANA_RPCPORT 7778

4
iguana/iguana_bundles.c

@ -1296,11 +1296,11 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
myfree(breq,sizeof(*breq));
while ( (breq= queue_dequeue(&coin->priorityQ,0)) != 0 )
myfree(breq,sizeof(*breq));
/*for (i=0; i<bp->n; i++)
for (i=0; i<bp->n; i++)
{
if ( (block= bp->blocks[i]) != 0 && block->txvalid == 0 )
iguana_blockQ("stuck",coin,bp,i,block->RO.hash2,1);
}*/
}
}
for (i=0; i<bp->n; i++)
if ( GETBIT(bp->haveblock,i) == 0 )

2
iguana/main.c

@ -73,7 +73,7 @@ char GLOBAL_DBDIR[512] = "/DB";
char GLOBAL_HELPDIR[512] = "help";
char GLOBAL_VALIDATEDIR[512] = "purgeable";
char GLOBAL_CONFSDIR[512] = "confs";
int32_t IGUANA_NUMHELPERS = 2;
int32_t IGUANA_NUMHELPERS = 4;
#else
char GLOBAL_TMPDIR[512] = "tmp";
char GLOBAL_HELPDIR[512] = "help";

Loading…
Cancel
Save