Browse Source

test

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

2
iguana/iguana777.h

@ -28,7 +28,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
//#define IGUANA_DISABLEPEERS
#define _IGUANA_MAXSTUCKTIME 77
#define IGUANA_MAXITERATIONS 10000
#define IGUANA_DEFAULTLAG 120
#define IGUANA_DEFAULTLAG 60
#define IGUANA_MAXCOINS 64
#define IGUANA_MAXDELAY_MILLIS (3600 * 1000)

7
iguana/iguana_bundles.c

@ -874,9 +874,8 @@ int32_t iguana_bundlemissings(struct iguana_info *coin,struct iguana_bundle *bp,
lag = 3;
if ( bp->numissued < bp->n )
max = bp->numissued;
else if ( bp != coin->current )
return(0);//max = bp->n;//origmissings;
if ( bp->missingstime == 0 || bp == coin->current || bp->numissued < bp->n || missing < (max >> 3) || time(NULL) > bp->missingstime+lag ) //
else max = origmissings;
if ( bp->missingstime == 0 || bp == coin->current || missing < (max >> 3) || time(NULL) > bp->missingstime+lag ) //
{
if ( (n= iguana_bundlerequests(coin,missings,&bp->origmissings,&tmp,bp,lag)) > 0 )
{
@ -907,7 +906,7 @@ void iguana_bundlestats(struct iguana_info *coin,char *str,int32_t lag)
{
if ( (bp= coin->bundles[i]) != 0 )
{
iguana_bundlecalcs(coin,bp,lag);
//iguana_bundlecalcs(coin,bp,lag);
if ( bp == coin->current && coin->blocks.hwmchain.height >= bp->bundleheight && coin->blocks.hwmchain.height < bp->bundleheight+bp->n )
{
for (i=coin->blocks.hwmchain.height-bp->bundleheight+1; i<=bp->n; i++)

Loading…
Cancel
Save