Browse Source

Test

etomic
jl777 8 years ago
parent
commit
c91bd24d40
  1. 4
      iguana/exchanges/LP_nativeDEX.c

4
iguana/exchanges/LP_nativeDEX.c

@ -365,9 +365,9 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
numpeers = LP_numpeers();
HASH_ITER(hh,LP_peerinfos,peer,tmp)
{
if ( peer->errors >= LP_MAXPEER_ERRORS )
if ( IAMLP == 0 && peer->errors >= LP_MAXPEER_ERRORS )
{
if ( (rand() % 10000) == 0 )
if ( (rand() % 5000) == 0 )
peer->errors--;
else continue;
}

Loading…
Cancel
Save