From 7ecb74e1314f5e0e28f946a80b506c54b0bd5ef0 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 18 Apr 2016 22:03:56 -0500 Subject: [PATCH] test --- iguana/iguana777.c | 1 + iguana/iguana_msg.c | 2 +- iguana/iguana_unspents.c | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 4cfb9d3d4..72512c844 100755 --- a/iguana/iguana777.c +++ b/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); 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 ( retval > 0 ) diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index 81524ba72..89b599dbe 100755 --- a/iguana/iguana_msg.c +++ b/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.(%s) n.%d len.%d\n",H->command,n,len); } else if ( (ishost= (strcmp(H->command,"version") == 0)) || strcmp(H->command,"verack") == 0 ) { diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index ba0186329..7217e0178 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -1100,7 +1100,7 @@ int32_t iguana_spendvectors(struct iguana_info *coin,struct iguana_bundle *bp,st } if ( ptr != 0 ) 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); return(-errs); }