diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 95017d3b3..d4c71e5e1 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -403,14 +403,17 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert if ( convertflag != 0 ) { for (hdrsi=0; hdrsibundles[hdrsi]->ramchain.Xspendinds,coin->bundles[hdrsi]->ramchain.numXspends); coin->bundles[hdrsi]->converted = (uint32_t)time(NULL); + } } while ( (n= iguana_convertfinished(coin)) < max ) { printf("helperid.%d convertfinished.%d vs max %d bundlescount.%d\n",helperid,n,max,coin->bundlescount); sleep(3); } - if ( convertflag == 0 || iguana_spendvectorsaves(coin) == 0 ) + if ( convertflag != 0 || iguana_spendvectorsaves(coin) == 0 ) { if ( coin->origbalanceswritten <= 1 ) hdrsi = 0;