Browse Source

test

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

2
iguana/iguana777.h

@ -26,7 +26,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_SERIALIZE_SPENDVECTORGEN
//#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 30
#define IGUANA_MAXITERATIONS 10
#define IGUANA_MAXITERATIONS 100
#define IGUANA_DEFAULTLAG 30
#define IGUANA_MAXCOINS 64

2
iguana/iguana_bundles.c

@ -945,7 +945,7 @@ double iguana_bundlemissings(struct iguana_info *coin,struct iguana_bundle *bp,d
else max = bp->origmissings;
if ( coin->current != 0 )
{
if ( (dist= bp->hdrsi - coin->current->hdrsi) < coin->MAXBUNDLES )
if ( (dist= bp->hdrsi - coin->current->hdrsi) < coin->MAXBUNDLES && (bp == coin->current || netBLOCKS < bp->n) )
{
iguana_unstickhdr(coin,bp,60);
if ( bp->numcached > bp->n - (coin->MAXBUNDLES - dist) )

Loading…
Cancel
Save