From 83457d3f0b8bb19e5c1372fa7fcf22142c5e73d1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 1 Apr 2016 15:19:30 -0600 Subject: [PATCH] test --- iguana/iguana777.c | 4 +++- iguana/iguana_bundles.c | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 7db1f09a0..25fd9fdbb 100755 --- a/iguana/iguana777.c +++ b/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 ) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 087ac8b08..6b428417a 100755 --- a/iguana/iguana_bundles.c +++ b/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; ihdrsi; i++)