From b4c51e38a8cf0dc07011ad1d692699d0036e4085 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 3 Apr 2016 20:13:38 -0500 Subject: [PATCH] test --- iguana/iguana_recv.c | 2 +- iguana/iguana_unspents.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 63f82dfbf..487406eea 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -941,7 +941,7 @@ struct iguana_bundlereq *iguana_recvblock(struct iguana_info *coin,struct iguana if ( (tmpblock= bp->blocks[i]) != 0 && tmpblock->fpipbits != 0 && tmpblock->fpos >= 0 && ((bp->hdrsi == 0 && i == 0) || bits256_nonz(tmpblock->RO.prev_block) != 0) ) numsaved++; } - fprintf(stderr,"%s [%d:%d] block.%x | s.%d r.%d copy.%d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block->fpipbits,numsaved,numrecv,req->copyflag); + fprintf(stderr,"%s [%d:%d] block.%x | s.%d r.%d copy.%d\n",bits256_str(str,origblock->RO.hash2),bp!=0?bp->hdrsi:-1,bundlei,block!=0?block->fpipbits:0,numsaved,numrecv,req->copyflag); } if ( 0 && bundlei == 1 && bp != 0 && bp->numhashes < bp->n && coin->enableCACHE != 0 && bp->speculative == 0 && bp == coin->current ) { diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index c05d80a80..82d9b2946 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1770,7 +1770,7 @@ int32_t iguana_balancecalc(struct iguana_info *coin,struct iguana_bundle *bp,int { for (i=0; ibundlescount-1; i++) { - if ( coin->bundles[i] == 0 || coin->bundles[i]->emitfinish <= 1 ) + if ( coin->bundles[i] == 0 || coin->bundles[i]->utxofinish <= 1 ) break; } if ( i == coin->bundlescount-1 )