Browse Source

Test

etomic
jl777 7 years ago
parent
commit
8891bc49d6
  1. 3
      iguana/exchanges/LP_socket.c

3
iguana/exchanges/LP_socket.c

@ -257,12 +257,13 @@ struct electrum_info *electrum_server(char *symbol,struct electrum_info *ep)
portable_mutex_lock(&LP_electrummutex);
if ( ep == 0 )
{
printf("find random electrum.%s\n",symbol);
printf("find random electrum.%s from %d\n",symbol,Num_electrums);
memset(rbuf,0,sizeof(rbuf));
recent_ep = 0;
recent = (uint32_t)time(NULL) - 300;
for (i=0; i<Num_electrums; i++)
{
ep = Electrums[i];
if ( strcmp(symbol,ep->symbol) == 0 && ep->sock >= 0 )
{
if ( ep->lasttime > recent )

Loading…
Cancel
Save