Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
4d9f2b3fb4
  1. 2
      iguana/iguana777.h
  2. 2
      iguana/iguana_bundles.c

2
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

2
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);

Loading…
Cancel
Save