From 26433939553a789c590e72c3a3744e95b703a368 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 22 Mar 2016 14:24:22 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 5 +++-- iguana/iguana_unspents.c | 1 + 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index a047b3cd9..98db40b05 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -981,7 +981,8 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) { done++; numemit++; - iguana_bundlepurge(coin,bp); + if ( firstgap != 0 && bp->hdrsi > firstgap->hdrsi-3 ) + iguana_bundlepurge(coin,bp); } else { @@ -990,7 +991,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) lastpending = bp; //printf("SET MAXBUNDLES.%d pend.%d\n",bp->hdrsi,pending); } - if ( firstgap == 0 && (bp->emitfinish == 0 || bp->n < coin->chain->bundlesize) ) + if ( firstgap == 0 )//&& (bp->emitfinish == 0 || bp->n < coin->chain->bundlesize) ) { //printf("firstgap <- [%d] emit.%u bp->n.%d\n",bp->hdrsi,bp->emitfinish,bp->n); firstgap = bp; diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index b1ce4cc08..4a623e69d 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -297,6 +297,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,struct iguana_bundle *bp) { errs++; printf("utxogen: unresolved spendind.%d hdrsi.%d\n",spendind,bp->hdrsi); + break; } } }