From 2a0d4163c0ebf23975dc0159f0a282e78a4b6afa Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 7 Apr 2016 23:32:44 -0500 Subject: [PATCH] test --- iguana/iguana_unspents.c | 4 ++-- iguana/main.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana_unspents.c b/iguana/iguana_unspents.c index a3d3d88fb..dd3540fa8 100755 --- a/iguana/iguana_unspents.c +++ b/iguana/iguana_unspents.c @@ -753,7 +753,7 @@ uint32_t iguana_spendvectorconv(struct iguana_info *coin,struct iguana_spendvect static uint64_t count,converted,errs; struct iguana_bundle *spentbp; struct iguana_unspent *spentU; uint32_t spent_pkind; count++; - if ( (count % 1000000) == 0 ) + if ( 0 && (count % 1000000) == 0 ) printf("iguana_spendvectorconv.[%llu] errs.%llu converted.%llu %.2f%%\n",(long long)count,(long long)errs,(long long)converted,100. * (long long)converted/count); if ( ptr->tmpflag != 0 ) { @@ -1677,7 +1677,7 @@ void iguana_convert(struct iguana_info *coin,struct iguana_bundle *bp,int32_t RT static int64_t total,depth; int32_t i,n,m,converted; int64_t total_tmpspends; double startmillis = OS_milliseconds(); depth++; - printf("iguana_convert.[%d] depth.%d %u\n",bp->hdrsi,(int32_t)depth,bp->converted); + //printf("iguana_convert.[%d] depth.%d %u\n",bp->hdrsi,(int32_t)depth,bp->converted); if ( (converted= iguana_spendvectorconvs(coin,bp)) < 0 ) printf("error ram balancecalc.[%d]\n",bp->hdrsi); else diff --git a/iguana/main.c b/iguana/main.c index 36adfa8b3..569624e0a 100755 --- a/iguana/main.c +++ b/iguana/main.c @@ -69,7 +69,7 @@ cJSON *API_json; #ifdef __linux__ int32_t IGUANA_NUMHELPERS = 8; #else -int32_t IGUANA_NUMHELPERS = 4; +int32_t IGUANA_NUMHELPERS = 1; #endif struct iguana_jsonitem { struct queueitem DL; struct supernet_info *myinfo; uint32_t fallback,expired,allocsize; char **retjsonstrp; char remoteaddr[64]; uint16_t port; char jsonstr[]; }; @@ -388,7 +388,7 @@ void mainloop(struct supernet_info *myinfo) { isRT *= coin->isRT; numpeers += coin->peers.numranked; - if ( coin->spendvectorsaved == 0 && coin->blocks.hwmchain.height >= coin->longestchain-3 ) + if ( time(NULL) > coin->startutc+10 && coin->spendvectorsaved == 0 && coin->blocks.hwmchain.height >= coin->longestchain-3 ) { n = coin->bundlescount-1; if ( iguana_emitfinished(coin) >= n )