Browse Source

test

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

2
iguana/iguana777.h

@ -47,7 +47,7 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_TAILPERCENTAGE 1.0
#define IGUANA_MAXPENDHDRS 1
#define IGUANA_MAXPENDINGREQUESTS 3
#define IGUANA_PENDINGREQUESTS 32
#define IGUANA_PENDINGREQUESTS 64
#define IGUANA_MINPENDBUNDLES 4
#define IGUANA_MAXPENDBUNDLES 16
#define IGUANA_RPCPORT 7778

23
iguana/iguana_bundles.c

@ -1070,15 +1070,28 @@ void iguana_bundlemissings(struct iguana_info *coin,struct iguana_bundle *bp,uin
mult = 4;
else if ( mult > 7 )
mult = 7;
if ( coin->bandwidth < .5*coin->maxbandwidth )
if ( coin->bandwidth < .7*coin->maxbandwidth )
{
mult--;
if ( coin->bandwidth < .25*coin->maxbandwidth )
mult /= 2;
if ( coin->bandwidth < .6*coin->maxbandwidth )
{
if ( coin->bandwidth < .5*coin->maxbandwidth )
{
mult--;
if ( coin->bandwidth < .4*coin->maxbandwidth )
{
mult--;
if ( coin->bandwidth < .3*coin->maxbandwidth )
{
mult--;
if ( coin->bandwidth < 0.25*coin->maxbandwidth )
priority = 3;
}
}
}
}
if ( mult < 1 )
mult = 1;
if ( coin->bandwidth < 0.1*coin->maxbandwidth )
priority = 3;
}
if ( (n= iguana_bundleissuemissing(coin,bp,priority,mult)) > 0 )
{

Loading…
Cancel
Save