|
@ -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); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|