From f338f46d92b19b96b6dba318e23ac4dd38864aac Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 22 Mar 2016 00:41:10 -0300 Subject: [PATCH] test --- iguana/iguana_bundles.c | 2 +- iguana/iguana_recv.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index abc14cac5..9524c992f 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -849,7 +849,7 @@ int32_t iguana_bundleiters(struct iguana_info *coin,struct OS_memspace *mem,stru { max = bp->n; counter = iguana_bundleissue(coin,bp,max,timelimit); - if ( bp->hdrsi == starti ) + if ( bp->hdrsi == starti && counter > 0 ) 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 ( bp == coin->current ) { diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index a35cca059..8a03ccdfc 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -54,7 +54,7 @@ int32_t iguana_sendblockreqPT(struct iguana_info *coin,struct iguana_peer *addr, coin->numreqsent++; addr->pendblocks++; addr->pendtime = (uint32_t)time(NULL); - //if ( 0 && coin->current == bp ) + if ( 0 && coin->current == bp ) printf("REQ.%s bundlei.%d hdrsi.%d\n",bits256_str(hexstr,hash2),bundlei,bp!=0?bp->hdrsi:-1); } else printf("MSG_BLOCK null datalen.%d\n",len); return(len);