From c9c198512754354102a91d4a36b24ef79d4c2667 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 2 Apr 2016 13:03:26 -0600 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_unspents.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 151b5bfbe..1ced5f657 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -724,7 +724,7 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp) return(0); #endif for (i=0; ihdrsi; i++) - if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish <= 1 || prevbp->utxofinish == 0 ) + if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish <= 1 || (prevbp->utxofinish == 0 && prevbp->tmpspends == 0) ) break; if ( bp->hdrsi < coin->blocks.hwmchain.height/coin->chain->bundlesize && i >= bp->hdrsi-IGUANA_NUMHELPERS/2 && time(NULL) > bp->emitfinish+10 )//&& coin->emitbusy <= 4 ) { diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index fddb5e4ed..e295e1429 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1633,7 +1633,7 @@ int32_t iguana_balancecalc(struct iguana_info *coin,struct iguana_bundle *bp,int else { //printf("third case.%d utxo.%u balance.%u prev.%u\n",bp->hdrsi,bp->utxofinish,bp->balancefinish,prevbp!=0?prevbp->utxofinish:-1); - //coin->pendbalances--; + coin->pendbalances--; iguana_balancesQ(coin,bp); } }