From b5f307829290841317badacf7b2f9c97c559b20c Mon Sep 17 00:00:00 2001 From: jl777 Date: Fri, 11 Mar 2016 13:18:26 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana777.h | 2 +- iguana/iguana_peers.c | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index b5c7852c6..db8f1489a 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -429,7 +429,7 @@ void iguana_coinloop(void *arg) } } if ( flag == 0 ) - usleep((coin->polltimeout+1) * 1000); + usleep((coin->polltimeout+1) * 10); } } diff --git a/iguana/iguana777.h b/iguana/iguana777.h index ac943461b..86c760f64 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -37,7 +37,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_MAXPENDHDRS 1 #define _IGUANA_MAXPENDING 7 #define _IGUANA_MAXBUNDLES 8 -#define IGUANA_BUNDLELOOP 7 +#define IGUANA_BUNDLELOOP 77 #define IGUANA_RPCPORT 7778 #define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16) diff --git a/iguana/iguana_peers.c b/iguana/iguana_peers.c index 03f98b18d..771e6e7eb 100755 --- a/iguana/iguana_peers.c +++ b/iguana/iguana_peers.c @@ -1034,8 +1034,8 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr) usleep(100000); } else if ( addr->rank != 1 ) - usleep(coin->polltimeout*10000 + 1*(rand() % (coin->polltimeout*10000))); - else usleep(1000); + usleep(coin->polltimeout*10 + 1*(rand() % (coin->polltimeout*10))); + else usleep(10); } else run >>= 2; } if ( flag != 0 )