|
|
@ -378,16 +378,16 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert |
|
|
|
{ |
|
|
|
if ( (bp= coin->bundles[hdrsi]) == 0 ) |
|
|
|
return(-1); |
|
|
|
printf("validate and gen utxo.[%d]\n",hdrsi); |
|
|
|
if ( coin->PREFETCHLAG > 0 ) |
|
|
|
iguana_ramchain_prefetch(coin,&bp->ramchain,0); |
|
|
|
if ( strcmp("BTC",coin->symbol) == 0 || iguana_bundlevalidate(coin,bp,0) == 0 ) |
|
|
|
if ( strcmp("BTC",coin->symbol) == 0 || iguana_bundlevalidate(coin,bp,0) == bp->n ) |
|
|
|
{ |
|
|
|
if ( bp->utxofinish > 1 || (retval= iguana_spendvectors(coin,bp,&bp->ramchain,0,bp->n,convertflag)) >= 0 ) |
|
|
|
{ |
|
|
|
//printf("spendvectors retval.%d\n",retval);
|
|
|
|
if ( retval > 0 ) |
|
|
|
{ |
|
|
|
//printf("GENERATED UTXO.%d for ht.%d duration %d seconds\n",bp->hdrsi,bp->bundleheight,(uint32_t)time(NULL) - bp->startutxo);
|
|
|
|
printf("GENERATED UTXO.%d for ht.%d duration %d seconds\n",bp->hdrsi,bp->bundleheight,(uint32_t)time(NULL) - bp->startutxo); |
|
|
|
num++; |
|
|
|
} |
|
|
|
bp->utxofinish = (uint32_t)time(NULL); |
|
|
|