Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3637ee7392
  1. 3
      iguana/iguana777.c
  2. 2
      iguana/iguana777.h
  3. 3
      iguana/iguana_unspents.c

3
iguana/iguana777.c

@ -673,7 +673,8 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
coin->MAXMEM *= (1024L * 1024 * 1024);
#ifdef __PNACL__
//maxval = 2 * (strcmp("BTC",coin->symbol) != 0) + 2;
//mult = 1;
if ( mult > 1 )
mult /= 2;
#endif
if ( (coin->startPEND= juint(json,"startpend")) == 0 )
coin->startPEND = IGUANA_MAXPENDBUNDLES*mult;

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 512
#define IGUANA_PENDINGREQUESTS 64
#define IGUANA_MINPENDBUNDLES 4
#define IGUANA_MAXPENDBUNDLES 16
#define IGUANA_RPCPORT 7778

3
iguana/iguana_unspents.c

@ -1101,7 +1101,8 @@ int32_t iguana_balancegen(struct iguana_info *coin,int32_t incremental,struct ig
if ( ramchain->Xspendinds == 0 && bp->hdrsi > 0 )
{
printf("iguana_balancegen.%d: no Xspendinds[%d]\n",bp->hdrsi,ramchain->numXspends);
return(-1);
if ( iguana_Xspendmap(coin,ramchain,bp) < 0 )
return(-1);
}
iguana_ramchain_prefetch(coin,ramchain,0);
fprintf(stderr,"BALANCEGEN.[%d] ",bp->hdrsi);

Loading…
Cancel
Save