Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
c810fba1b2
  1. 6
      iguana/iguana777.c
  2. 2
      iguana/iguana_msg.c

6
iguana/iguana777.c

@ -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);

2
iguana/iguana_msg.c

@ -634,8 +634,8 @@ int32_t iguana_msgparser(struct iguana_info *coin,struct iguana_peer *addr,struc
if ( bits256_nonz(hash2) == 0 )
break;
}
printf("GOT HEADERS n.%d len.%d\n",n,len);
}
//printf("GOT HEADERS n.%d len.%d\n",n,len);
}
else if ( (ishost= (strcmp(H->command,"version") == 0)) || strcmp(H->command,"verack") == 0 )
{

Loading…
Cancel
Save