From f8a09511190cdb93df428fd39898f93bdc8eb15a Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 28 Mar 2016 05:39:14 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_unspents.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 6b6676206..6a208f5a6 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -817,7 +817,7 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp) for (i=0; ihdrsi; i++) if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish < coin->startutc #ifdef IGUANA_SERIALIZE_SPENDVECTORGEN - || (i < bp->hdrsi-8 && prevbp->utxofinish <= 1 ) + || (i < bp->hdrsi-16 && prevbp->utxofinish <= 1 ) #endif ) break; diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 5e2ffc4fa..ab57980fb 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -689,7 +689,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp) printf("unexpected spendbp: height.%d bp.[%d] U%d <- S%d.[%d] [ext.%d %s prev.%d]\n",bp->bundleheight+i,spentbp->hdrsi,spent_unspentind,spendind,bp->hdrsi,s->external,bits256_str(str,prevhash),s->prevout); errs++; } - if ( now > spentbp->lastprefetch+1+5*coin->emitbusy ) + if ( 0 && now > spentbp->lastprefetch+1+5*coin->emitbusy ) { //printf("prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); iguana_ramchain_prefetch(coin,ramchain); @@ -795,7 +795,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3 for (i=0; in; i++) { now = (uint32_t)time(NULL); - if ( now > bp->lastprefetch+1+5*coin->emitbusy ) + if ( 0 && now > bp->lastprefetch+1+5*coin->emitbusy ) { //printf("RT prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); iguana_ramchain_prefetch(coin,&bp->ramchain); @@ -927,7 +927,7 @@ int32_t iguana_RTutxo(struct iguana_info *coin,struct iguana_bundle *bp,struct i return(-1); } rdata = spentbp->ramchain.H.data; - if ( now > spentbp->lastprefetch+1+5*coin->emitbusy ) + if ( 0 && now > spentbp->lastprefetch+1+5*coin->emitbusy ) { //printf("RT prefetch[%d] from.[%d] lag.%d\n",spentbp->hdrsi,bp->hdrsi,now - spentbp->lastprefetch); iguana_ramchain_prefetch(coin,&spentbp->ramchain);