From b3b5ae872ede1ac6f48b8fd2fde38ece8dc4c84c Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 7 Apr 2016 23:04:56 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index 5c48df233..a3d3d88fb 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1081,7 +1081,7 @@ int32_t iguana_balancegen(struct iguana_info *coin,struct iguana_bundle *bp,int3 S = (void *)(long)((long)rdata + rdata->Soffset); B = (void *)(long)((long)rdata + rdata->Boffset); T = (void *)(long)((long)rdata + rdata->Toffset); - if ( bp->hdrsi > 0 && ramchain->Xspendinds == 0 ) + if ( ramchain->Xspendinds == 0 ) { printf("iguana_balancegen.%d: no Xspendinds[%d]\n",bp->hdrsi,ramchain->numXspends); return(-1); @@ -1581,7 +1581,7 @@ int32_t iguana_balanceflush(struct iguana_info *coin,int32_t refhdrsi,int32_t pu int32_t iguana_spendvectorsaves(struct iguana_info *coin) { int32_t i,j,n,iter; struct iguana_bundle *bp; - if ( coin->spendvectorsaved != 0 ) + if ( coin->spendvectorsaved > 1 ) return(0); coin->spendvectorsaved = 1; n = coin->bundlescount - 1;