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

4
iguana/exchanges/LP_nativeDEX.c

@ -331,7 +331,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
if ( IAMLP == 0 ) if ( IAMLP == 0 )
continue; continue;
} }
if ( now > peer->lastpeers+300 && peer->numpeers > 0 && (peer->numpeers != numpeers || (rand() % 50000) == 0) ) if ( now > peer->lastpeers+60 && peer->numpeers > 0 && (peer->numpeers != numpeers || (rand() % 10000) == 0) )
{ {
peer->lastpeers = now; peer->lastpeers = now;
if ( strcmp(peer->ipaddr,myipaddr) != 0 ) if ( strcmp(peer->ipaddr,myipaddr) != 0 )
@ -352,7 +352,7 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
peer->diduquery = now; peer->diduquery = now;
} }
} }
if ( (counter % 6000) == 10 ) if ( (counter % 60000) == 10 )
{ {
LP_privkey_updates(ctx,pubsock,0); LP_privkey_updates(ctx,pubsock,0);
} }

Loading…
Cancel
Save