Browse Source

Test

etomic
jl777 8 years ago
parent
commit
2a3640248a
  1. 6
      iguana/exchanges/LP_unspents.c

6
iguana/exchanges/LP_unspents.c

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

Loading…
Cancel
Save