From 4d9f2b3fb4f138712177f009376318b2749f77f6 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 7 Apr 2016 18:11:25 -0500 Subject: [PATCH] test --- iguana/iguana777.h | 2 +- iguana/iguana_bundles.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/iguana777.h b/iguana/iguana777.h index 1c4a9c9f7..2810efe60 100755 --- a/iguana/iguana777.h +++ b/iguana/iguana777.h @@ -42,7 +42,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t #define IGUANA_HEADPERCENTAGE 0. #define IGUANA_TAILPERCENTAGE 1.0 #define IGUANA_MAXPENDHDRS 1 -#define IGUANA_MAXPENDINGREQUESTS 3 +#define IGUANA_MAXPENDINGREQUESTS 1 #define IGUANA_PENDINGREQUESTS 512 #define IGUANA_MINPENDBUNDLES 2 #define IGUANA_MAXPENDBUNDLES 32 diff --git a/iguana/iguana_bundles.c b/iguana/iguana_bundles.c index a051dac7f..411157810 100755 --- a/iguana/iguana_bundles.c +++ b/iguana/iguana_bundles.c @@ -549,7 +549,7 @@ int32_t iguana_bundleissuemissing(struct iguana_info *coin,struct iguana_bundle } } } - if ( firsti >= 0 && firsti == lasti && bp == coin->current ) + if ( firsti >= 0 && (firsti == lasti || bp == coin->current) ) { printf("[%d] first missing.%d of %d\n",bp->hdrsi,firsti,nonz); iguana_bundleblock(coin,&hash2,bp,firsti);