Browse Source

Test

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

10
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) void LP_pubkeysloop(void *ctx)
{ {
static uint32_t lasttime;
sleep(10); sleep(10);
while ( 1 ) while ( 1 )
{ {
LP_counter += 100; if ( time(NULL) > lasttime+60 )
//printf("LP_pubkeysloop %d\n",LP_counter); {
printf("LP_pubkeysloop %u\n",(uint32_t)time(NULL));
LP_notify_pubkeys(ctx,LP_mypubsock); LP_notify_pubkeys(ctx,LP_mypubsock);
sleep(60); lasttime = (uint32_t)time(NULL);
}
sleep(3);
} }
} }

Loading…
Cancel
Save