Browse Source

test

release/v0.1
jl777 9 years ago
parent
commit
bb937ec55f
  1. 2
      iguana/iguana777.c
  2. 4
      iguana/iguana777.h
  3. 4
      iguana/iguana_peers.c

2
iguana/iguana777.c

@ -429,7 +429,7 @@ void iguana_coinloop(void *arg)
}
}
if ( flag == 0 )
usleep((coin->polltimeout+1) * 1000);
usleep((coin->polltimeout+1) * 10);
}
}

4
iguana/iguana777.h

@ -35,9 +35,9 @@ typedef int32_t (*blockhashfunc)(uint8_t *blockhashp,uint8_t *serialized,int32_t
#define IGUANA_HEADPERCENTAGE .1
#define IGUANA_TAILPERCENTAGE .99
#define IGUANA_MAXPENDHDRS 1
#define _IGUANA_MAXPENDING 7
#define _IGUANA_MAXPENDING 32
#define _IGUANA_MAXBUNDLES 8
#define IGUANA_BUNDLELOOP 13
#define IGUANA_BUNDLELOOP 128
#define IGUANA_RPCPORT 7778
#define IGUANA_MAXRAMCHAINSIZE ((uint64_t)1024L * 1024L * 1024L * 16)

4
iguana/iguana_peers.c

@ -1034,8 +1034,8 @@ void iguana_dedicatedloop(struct iguana_info *coin,struct iguana_peer *addr)
usleep(100000);
}
else if ( addr->rank != 1 )
usleep(coin->polltimeout*1000 + 1*(rand() % (coin->polltimeout*1000)));
else usleep(1000);
usleep(coin->polltimeout*10 + 1*(rand() % (coin->polltimeout*10)));
else usleep(10);
} else run >>= 2;
}
if ( flag != 0 )

Loading…
Cancel
Save