Browse Source

test

release/v0.1
jl777 8 years ago
parent
commit
d3997bf561
  1. 12
      iguana/iguana_bundles.c
  2. 2
      includes/iguana_defines.h

12
iguana/iguana_bundles.c

@ -1202,16 +1202,16 @@ void iguana_unstickhdr(struct iguana_info *coin,struct iguana_bundle *bp,int32_t
void iguana_bundlemissings(struct supernet_info *myinfo,struct iguana_info *coin,struct iguana_bundle *bp,uint32_t now)
{
int32_t mult = 3,n=0,priority = 1;
if ( now > bp->missingstime+3 )
int32_t mult = 7,n=0,priority = 1;
if ( now > bp->missingstime+30 )
{
if ( coin->current != 0 )
{
mult = bp->hdrsi - coin->current->hdrsi;
if ( mult < 2 )
mult = 2;
else if ( mult > 3 )
mult = 3;
if ( mult < 4 )
mult = 4;
else if ( mult > 7 )
mult = 7;
} else mult = 1;
if ( coin->bandwidth < .7*coin->maxbandwidth )
{

2
includes/iguana_defines.h

@ -44,7 +44,7 @@
#define IGUANA_HEADPERCENTAGE 0.
#define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1
#define IGUANA_MAXPENDINGREQUESTS 64
#define IGUANA_MAXPENDINGREQUESTS 128
#define IGUANA_PENDINGREQUESTS 500
#define IGUANA_MINPENDBUNDLES 4
#define IGUANA_MAXPENDBUNDLES 64

Loading…
Cancel
Save