From 2ae03cf9515a7cf1bf74bceb5ec97acf2d64b1c1 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 7 Apr 2016 01:21:36 -0500 Subject: [PATCH] test --- iguana/iguana_bundles.c | 4 +--- iguana/iguana_recv.c | 4 ---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index 30b688f3e..dcbb4e699 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -516,8 +516,6 @@ int32_t iguana_blocksmissing(struct iguana_info *coin,int32_t *nonzp,uint8_t mis int32_t iguana_sendhashes(struct iguana_info *coin,struct iguana_peer *addr,int32_t msgtype,bits256 hashes[],int32_t n,int32_t priority) { int32_t len; uint8_t *serialized; - if ( netBLOCKS > IGUANA_NUMHELPERS*1000 ) - return(0); if ( addr->usock >= 0 && addr->dead == 0 && priority > 1 ) { serialized = malloc((sizeof(int32_t) + sizeof(*hashes))*n + 1024); @@ -1100,7 +1098,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag) } else { - if ( bp->hdrsi >= starti && bp->hdrsi < lasti && (displag % 3) == 2 ) + if ( bp->hdrsi >= starti && bp->hdrsi < lasti && (displag % 3) == 2 && netBLOCKS < IGUANA_NUMHELPERS*1000 ) { if ( (aveduration= iguana_bundlemissings(coin,bp,recentduration)) != 0 ) dxblend(&recentduration,aveduration,.5); diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 66ee17c9e..16eef7625 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -1382,11 +1382,7 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) if ( addr->msgcounts.verack == 0 ) return(0); if ( netBLOCKS > IGUANA_NUMHELPERS*1000 ) - { usleep(netBLOCKS); - if ( netBLOCKS > IGUANA_NUMHELPERS*5000 ) - return(0); - } now = (uint32_t)time(NULL); if ( iguana_needhdrs(coin) != 0 && addr->pendhdrs < IGUANA_MAXPENDHDRS ) {