From c810fba1b26c2c403139c0edc27774691cc79ad7 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 18 Apr 2016 21:29:27 -0500 Subject: [PATCH] test --- iguana/iguana777.c | 6 +++--- iguana/iguana_msg.c | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index a6de250e7..3c44fb3cd 100755 --- a/iguana/iguana777.c +++ b/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); diff --git a/iguana/iguana_msg.c b/iguana/iguana_msg.c index f0462aadc..81524ba72 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 n.%d len.%d\n",n,len); } else if ( (ishost= (strcmp(H->command,"version") == 0)) || strcmp(H->command,"verack") == 0 ) {