From 382997fdcb43bb16c7efcaa1ce960b3c6d5ad61c Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 6 Apr 2016 23:49:35 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 0a8eae7e7..89657931c 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1540,8 +1540,9 @@ int32_t iguana_balancenormal(struct iguana_info *coin,struct iguana_bundle *bp,i break; } //printf("B [%d] j.%d u.%u b.%u\n",bp->hdrsi,j,bp->utxofinish,bp->balancefinish); - if ( (j == n || bp->hdrsi == 0) && bp->bundleheight+bp->n <= coin->blocks.hwmchain.height && bp->utxofinish > 1 && bp->balancefinish <= 1 ) + if ( (j == n || bp->hdrsi == 0) && bp->bundleheight+bp->n <= coin->blocks.hwmchain.height && bp->utxofinish > 1 && bp->balancefinish == 0 ) { + bp->balancefinish = 1; if ( bp->hdrsi >= coin->balanceswritten ) { //printf("balancecalc for %d when %d\n",bp->hdrsi,coin->balanceswritten);