From 39bd25fd72aa39e244c50ae8f299706f497756ea Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 12 Jan 2016 20:24:26 -0300 Subject: [PATCH] test --- iguana/iguana777.h | 2 +- iguana/iguana_recv.c | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 5198c4e25..7a9b3d77f 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -29,7 +29,7 @@ #define IGUANA_HEIGHT 200 #define IGUANA_MAXPENDHDRS 1 -#define _IGUANA_MAXPENDING 13 //64 +#define _IGUANA_MAXPENDING 512 //64 #define _IGUANA_MAXBUNDLES 8 #define IGUANA_MAXACTIVEBUNDLES 32 #define IGUANA_MAXFILES 4096 diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 7994779b2..a42c93cdb 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -432,10 +432,9 @@ struct iguana_bundlereq *iguana_recvblockhashes(struct iguana_info *coin,struct { char str[65]; printf("blockhashes[%d] %s\n",num,bits256_str(str,blockhashes[1])); iguana_blockQ(coin,0,-1,blockhashes[1],1); - for (i=coin->chain->bundlesize*0; ichain->bundlesize; i= coin->chain->bundlesize && (i % coin->chain->bundlesize) < 2 ) - if ( bits256_nonz(blockhashes[i]) > 0 ) + if ( i >= coin->chain->bundlesize && (i % coin->chain->bundlesize) < 2 && bits256_nonz(blockhashes[i]) > 0 ) iguana_blockQ(coin,0,-1,blockhashes[i],0); } }