Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
310456821e
  1. 4
      iguana/iguana777.c
  2. 1
      iguana/iguana_unspents.c

4
iguana/iguana777.c

@ -363,7 +363,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
if ( coin->spendvectorsaved > 1 )
return(0);
incr = IGUANA_NUMHELPERS;
if ( 1 && coin->PREFETCHLAG > 0 )
if ( strcmp("BTC",coin->symbol) == 0 && coin->PREFETCHLAG > 0 )
{
incr = 1;
if ( incr < 1 )
@ -381,7 +381,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
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) == bp->n )
if ( strcmp("BTC",coin->symbol) == 0 || iguana_bundlevalidate(coin,bp,1) == bp->n )
{
if ( bp->utxofinish > 1 || (retval= iguana_spendvectors(coin,bp,&bp->ramchain,0,bp->n,convertflag)) >= 0 )
{

1
iguana/iguana_unspents.c

@ -968,6 +968,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
starttime = (uint32_t)time(NULL);
txidind = B[starti].firsttxidind;
spendind = B[starti].firstvin;
iguana_ramchain_prefetch(coin,&bp->ramchain,0);
for (i=starti; i<numblocks; i++)
{
if ( txidind != B[i].firsttxidind || spendind != B[i].firstvin )

Loading…
Cancel
Save