Browse Source

test

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

4
iguana/iguana777.c

@ -605,7 +605,9 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers,
mult = (strcmp("BTC",coin->symbol) != 0) ? 512 : 1;
maxval = (strcmp("BTC",coin->symbol) != 0) ? 2048 : 256;
coin->MAXMEM = juint(json,"RAM");
coin->PREFETCHLAG = juint(json,"prefetchlag");
if ( jobj(json,"prefetchlag") != 0 )
coin->PREFETCHLAG = juint(json,"prefetchlag");
else coin->PREFETCHLAG = IGUANA_DEFAULTLAG;
if ( (coin->MAXSTUCKTIME= juint(json,"maxstuck")) == 0 )
coin->MAXSTUCKTIME = _IGUANA_MAXSTUCKTIME;
if ( coin->MAXMEM == 0 )

2
iguana/iguana_bundles.c

@ -685,7 +685,7 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp)
{
struct iguana_bundle *prevbp; int32_t i;
#ifdef IGUANA_SERIALIZE_SPENDVECTORGEN
if ( (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-coin->MAXBUNDLES )
if ( coin->PREFETCHLAG != 0 && (prevbp= coin->current) != 0 && prevbp->hdrsi < (coin->longestchain / coin->chain->bundlesize)-coin->MAXBUNDLES )
return(0);
#endif
for (i=0; i<bp->hdrsi; i++)

Loading…
Cancel
Save