Browse Source

Test

etomic
jl777 7 years ago
parent
commit
25a2a7df51
  1. 12
      iguana/exchanges/LP_nativeDEX.c

12
iguana/exchanges/LP_nativeDEX.c

@ -761,13 +761,17 @@ void LP_initpeers(int32_t pubsock,struct LP_peerinfo *mypeer,char *myipaddr,uint
void LP_pubkeysloop(void *ctx)
{
static uint32_t lasttime;
sleep(10);
while ( 1 )
{
LP_counter += 100;
//printf("LP_pubkeysloop %d\n",LP_counter);
LP_notify_pubkeys(ctx,LP_mypubsock);
sleep(60);
if ( time(NULL) > lasttime+60 )
{
printf("LP_pubkeysloop %u\n",(uint32_t)time(NULL));
LP_notify_pubkeys(ctx,LP_mypubsock);
lasttime = (uint32_t)time(NULL);
}
sleep(3);
}
}

Loading…
Cancel
Save