Browse Source

test

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

1
iguana/iguana777.c

@ -383,6 +383,7 @@ int32_t iguana_utxogen(struct iguana_info *coin,int32_t helperid,int32_t convert
iguana_ramchain_prefetch(coin,&bp->ramchain,0); iguana_ramchain_prefetch(coin,&bp->ramchain,0);
if ( strcmp("BTC",coin->symbol) == 0 || iguana_bundlevalidate(coin,bp,1) == bp->n ) if ( strcmp("BTC",coin->symbol) == 0 || iguana_bundlevalidate(coin,bp,1) == bp->n )
{ {
retval = 0;
if ( bp->utxofinish > 1 || (retval= iguana_spendvectors(coin,bp,&bp->ramchain,0,bp->n,convertflag)) >= 0 ) if ( bp->utxofinish > 1 || (retval= iguana_spendvectors(coin,bp,&bp->ramchain,0,bp->n,convertflag)) >= 0 )
{ {
if ( retval > 0 ) if ( retval > 0 )

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 ) if ( bits256_nonz(hash2) == 0 )
break; break;
} }
printf("GOT HEADERS n.%d len.%d\n",n,len);
} }
printf("GOT HEADERS.(%s) n.%d len.%d\n",H->command,n,len);
} }
else if ( (ishost= (strcmp(H->command,"version") == 0)) || strcmp(H->command,"verack") == 0 ) else if ( (ishost= (strcmp(H->command,"version") == 0)) || strcmp(H->command,"verack") == 0 )
{ {

2
iguana/iguana_unspents.c

@ -1100,7 +1100,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st
} }
if ( ptr != 0 ) if ( ptr != 0 )
myfree(ptr,sizeof(*ptr) * n); myfree(ptr,sizeof(*ptr) * n);
if ( bp != coin->current ) //if ( bp != coin->current )
printf("UTXO [%4d].%-6d dur.%-2d [milli %8.3f] vectors %-6d err.%d [%5.2f%%] %7d %9s of %d\n",bp->hdrsi,bp->numtmpspends,(uint32_t)time(NULL)-starttime,OS_milliseconds()-startmillis,spendind,errs,100.*(double)emitted/(total+1),emit,mbstr(str,sizeof(*ptr) * emit),n); printf("UTXO [%4d].%-6d dur.%-2d [milli %8.3f] vectors %-6d err.%d [%5.2f%%] %7d %9s of %d\n",bp->hdrsi,bp->numtmpspends,(uint32_t)time(NULL)-starttime,OS_milliseconds()-startmillis,spendind,errs,100.*(double)emitted/(total+1),emit,mbstr(str,sizeof(*ptr) * emit),n);
return(-errs); return(-errs);
} }

Loading…
Cancel
Save