Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c9c1985127
  1. 2
      iguana/iguana_bundles.c
  2. 2
      iguana/iguana_unspents.c

2
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; i<bp->hdrsi; 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 )
{

2
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);
}
}

Loading…
Cancel
Save