|
|
@ -352,6 +352,12 @@ char *stats_JSON(cJSON *argjson,char *remoteaddr,uint16_t port) |
|
|
|
peer->notify_numpeers = LP_numpeers; |
|
|
|
peer->notify_margin = LP_peerinfos[0].profitmargin; |
|
|
|
strcpy(peer->notify_ipaddr,LP_peerinfos[0].ipaddr); |
|
|
|
if ( (retstr= issue_LP_getpeers(peer->ipaddr,peer->port,LP_peerinfos[0].ipaddr,LP_peerinfos[0].port,LP_peerinfos[0].profitmargin,LP_numpeers)) != 0 ) |
|
|
|
{ |
|
|
|
printf("2fetchpeers.(%s)\n",retstr); |
|
|
|
LP_notify(peer,peer->ipaddr,peer->port,0,0,retstr); |
|
|
|
//free(retstr);
|
|
|
|
} else peer->errors++, peer->errortime = (uint32_t)time(NULL); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|