diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 3a8e06244..e6bbee2e9 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -29,7 +29,7 @@ #define IGUANA_HEIGHT 200 #define IGUANA_MAXPENDHDRS 1 -#define _IGUANA_MAXPENDING 3 //64 +#define _IGUANA_MAXPENDING 8 //64 #define _IGUANA_MAXBUNDLES 8 #define IGUANA_MAXACTIVEBUNDLES 32 #define IGUANA_MAXFILES 4096 diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index f597043f7..d0795e2d0 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -535,7 +535,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str) } /*for (i=0; irankedbps[i][0],coin->rankedbps[i][1],coin->bundles[(int32_t)coin->rankedbps[i][1]]->numrecv);*/ - if ( flag != 0 ) + if ( 0 && flag != 0 ) printf("rem.%d issue.%d pend.%d | numranked.%d\n",n,origissue,pend,coin->peers.numranked); } } diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index 0d179c429..6ed04b4d6 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -697,9 +697,9 @@ int32_t iguana_pollQsPT(struct iguana_info *coin,struct iguana_peer *addr) if ( bits256_nonz(hash2) > 0 ) { bp = 0, bundlei = -2; - if ( (bp= iguana_bundlefind(coin,&bp,&bundlei,hash2)) == 0 || bp->numhashes < bp->n ) + if ( (bp= iguana_bundlefind(coin,&bp,&bundlei,hash2)) == 0 || (bp->numhashes < bp->n && bp->bundleheight+coin->chain->bundlesize < coin->longestchain) ) { - printf("%s request hdr.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp->numhashes); + //printf("%s request hdr.(%s) numhashes.%d\n",addr!=0?addr->ipaddr:"local",hashstr,bp->numhashes); iguana_send(coin,addr,serialized,datalen); addr->pendhdrs++; flag++;