From e312cc9d04f6a4917c37a9ae79ecc26a96cf2f03 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 25 Aug 2016 00:08:04 -0300 Subject: [PATCH] test --- iguana/coins/genbtc | 2 +- iguana/iguana777.c | 2 +- iguana/iguana_bundles.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/coins/genbtc b/iguana/coins/genbtc index a0e43e8f8..8671241e6 100755 --- a/iguana/coins/genbtc +++ b/iguana/coins/genbtc @@ -1 +1 @@ -curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":5,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":64,\"endpend\":16,\"services\":128,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}" +curl --url "http://127.0.0.1:7778" --data "{\"prefetchlag\":5,\"poll\":1,\"active\":1,\"agent\":\"iguana\",\"method\":\"addcoin\",\"newcoin\":\"BTC\",\"startpend\":1024,\"endpend\":128,\"services\":128,\"maxpeers\":512,\"RELAY\":1,\"VALIDATE\":1,\"portp2p\":8333}" diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 3fa549043..70bb5dbc9 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -631,7 +631,7 @@ void iguana_helper(void *arg) allcurrent = 0; //printf("h.%d [%d] bundleQ size.%d lag.%ld\n",helperid,bp->hdrsi,queue_size(&bundlesQ),time(NULL) - bp->nexttime); coin->numbundlesQ--; - if ( coin->started != 0 && (bp->nexttime == 0 || time(NULL) >= bp->nexttime) && coin->active != 0 ) + if ( coin->started != 0 && (bp->nexttime == 0 || time(NULL) > bp->nexttime) && coin->active != 0 ) { flag += iguana_bundleiters(myinfo,ptr->coin,&MEM,MEMB,bp,ptr->timelimit,IGUANA_DEFAULTLAG); } diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index fb905ce01..ba449796a 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -1122,7 +1122,7 @@ int32_t iguana_bundleiters(struct supernet_info *myinfo,struct iguana_info *coin { max = bp->n; counter = iguana_bundleissuemissing(coin,bp,1,3.); - //if ( 0 && counter > 0 ) + if ( 0 && counter > 0 ) printf("ITER.rt%d now.%u spec.%-4d bundle.%-4d h.%-4d r.%-4d s.%-4d F.%d T.%d issued.%d mb.%d/%d\n",bp->isRT,(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); } else bp->nexttime++; if ( bp->emitfinish <= 1 )