Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
3ae93101d7
  1. 2
      iguana/iguana777.c
  2. 2
      iguana/iguana_unspents.c

2
iguana/iguana777.c

@ -377,6 +377,8 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
} }
if ( helperid == 0 ) if ( helperid == 0 )
{ {
for (hdrsi=0; hdrsi<max; hdrsi++)
coin->bundles[hdrsi]->converted = (uint32_t)time(NULL);
while ( convertflag == 0 && (n= iguana_convertfinished(coin)) < max ) while ( convertflag == 0 && (n= iguana_convertfinished(coin)) < max )
{ {
printf("helperid.%d convertfinished.%d vs max %d bundlescount.%d\n",helperid,n,max,coin->bundlescount); printf("helperid.%d convertfinished.%d vs max %d bundlescount.%d\n",helperid,n,max,coin->bundlescount);

2
iguana/iguana_unspents.c

@ -1548,7 +1548,7 @@ int32_t iguana_spendvectorconvs(struct iguana_info *coin,struct iguana_bundle *s
struct iguana_bundle *bp; int16_t spent_hdrsi; uint32_t numpkinds; struct iguana_unspent *spentU; struct iguana_spendvector *vec; int32_t i,converted,j,n = coin->bundlescount; struct iguana_ramchain *ramchain; struct iguana_bundle *bp; int16_t spent_hdrsi; uint32_t numpkinds; struct iguana_unspent *spentU; struct iguana_spendvector *vec; int32_t i,converted,j,n = coin->bundlescount; struct iguana_ramchain *ramchain;
if ( spentbp->converted != 0 ) if ( spentbp->converted != 0 )
{ {
printf("[%d] already converted.%u\n",spentbp->hdrsi,spentbp->converted); //printf("[%d] already converted.%u\n",spentbp->hdrsi,spentbp->converted);
return(-1); return(-1);
} }
spentbp->converted = 1; spentbp->converted = 1;

Loading…
Cancel
Save