From 1809cfe26964fa5d9f24ffbb2bd1f8b71c6ab059 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 28 Mar 2016 00:59:15 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 3 ++- iguana/iguana_bundles.c | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 6dddf1edf..09c567d4a 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -429,10 +429,11 @@ void iguana_helper(void *arg) } if ( (helperid % IGUANA_NUMHELPERS) == (1 % IGUANA_NUMHELPERS) && (ptr= queue_dequeue(&spendvectorsQ,0)) != 0 ) { - //printf("spendvectorsQ size.%d\n",queue_size(&spendvectorsQ)); + printf("spendvectorsQ size.%d\n",queue_size(&spendvectorsQ)); coin = ptr->coin; if ( (bp= ptr->bp) != 0 && coin != 0 ) { + printf("call spendvectors.%d\n",bp->hdrsi); if ( (retval= iguana_spendvectors(coin,bp)) >= 0 ) { flag++; diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 2747c11cc..01047e05f 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -811,12 +811,13 @@ int32_t iguana_bundlefinish(struct iguana_info *coin,struct iguana_bundle *bp) if ( (prevbp= coin->bundles[i]) == 0 || prevbp->emitfinish < coin->startutc || (i < bp->hdrsi-8 && prevbp->utxofinish <= 1) ) break; - printf("i.%d hdrsi.%d busy.%d helpers.%d\n",i,bp->hdrsi,coin->emitbusy,IGUANA_NUMHELPERS); - if ( i == bp->hdrsi && coin->emitbusy <= (IGUANA_NUMHELPERS/3) ) + //printf("i.%d hdrsi.%d busy.%d helpers.%d\n",i,bp->hdrsi,coin->emitbusy,IGUANA_NUMHELPERS); + if ( i == bp->hdrsi && coin->emitbusy < (IGUANA_NUMHELPERS/3) ) { if ( bp->startutxo == 0 ) { bp->startutxo = (uint32_t)time(NULL); + printf("spendvectorQ.%d\n",bp->hdrsi); iguana_spendvectorsQ(coin,bp); } else if ( bp->utxofinish != 0 ) @@ -862,7 +863,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru { if ( bp->emitfinish > 1 ) { - printf("ITER now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount); + //printf("ITER now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",(uint32_t)time(NULL),bp->numspec,bp->bundleheight/coin->chain->bundlesize,bp->numhashes,bp->numrecv,bp->numsaved,bp->emitfinish,timelimit,counter,coin->MAXBUNDLES,coin->bundlescount); if ( (retval= iguana_bundlefinish(coin,bp)) > 0 ) { //printf("moved to balancesQ.%d bundleiters.%d\n",bp->hdrsi,bp->bundleheight);