From 83f6bd7d628c68a9d6e1b6f311a6684f6d2aa264 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 13 Jan 2016 16:37:21 -0300 Subject: [PATCH] test --- iguana/iguana777.c | 2 +- iguana/iguana_recv.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/iguana/iguana777.c b/iguana/iguana777.c index 82293fa45..006206dec 100755 --- a/iguana/iguana777.c +++ b/iguana/iguana777.c @@ -445,7 +445,7 @@ struct iguana_info *iguana_setcoin(char *symbol,void *launched,int32_t maxpeers, if ( (coin->MAXRECVCACHE= maxrecvcache) == 0 ) coin->MAXRECVCACHE = IGUANA_MAXRECVCACHE; if ( (coin->MAXPENDING= maxpending) <= 0 ) - coin->MAXPENDING = (strcmp(symbol,"BTC") == 0) ? _IGUANA_MAXPENDING : _IGUANA_MAXPENDING*64; + coin->MAXPENDING = (strcmp(symbol,"BTC") == 0) ? _IGUANA_MAXPENDING : _IGUANA_MAXPENDING*32; if ( (coin->MAXBUNDLES= maxbundles) <= 0 ) coin->MAXBUNDLES = (strcmp(symbol,"BTC") == 0) ? _IGUANA_MAXBUNDLES : _IGUANA_MAXBUNDLES*64; coin->myservices = services; diff --git a/iguana/iguana_recv.c b/iguana/iguana_recv.c index a6ee3b539..4c60bb0c2 100755 --- a/iguana/iguana_recv.c +++ b/iguana/iguana_recv.c @@ -394,14 +394,14 @@ struct iguana_bundlereq *iguana_recvblockhdrs(struct iguana_info *coin,struct ig bp = 0, bundlei = -1; if ( (bp= iguana_bundleset(coin,&block,&bundlei,&blocks[i])) != 0 ) { - if ( i == 1 ) + if ( i == 0 ) firstbp = bp; if ( bundlei == i+1 && bp == firstbp ) match++; else printf("recvhdr: ht.%d[%d] vs i.%d\n",bp->bundleheight,bundlei,i); } } - if ( firstbp != 0 && match == n && n == firstbp->n ) + if ( firstbp != 0 && match == coin->chain->bundlesize-1 && n == firstbp->n ) { if ( firstbp->queued == 0 ) {