Browse Source

Test

etomic
jl777 8 years ago
parent
commit
45e5225c3b
  1. 2
      iguana/exchanges/LP_unspents.c
  2. 2
      iguana/exchanges/mm.c

2
iguana/exchanges/LP_unspents.c

@ -268,7 +268,7 @@ void LPinit(uint16_t port,double profitmargin)
if ( (retstr= issue_LP_intro(default_LPnodes[i],port,ipaddr,port,profitmargin,LP_numpeers)) != 0 ) if ( (retstr= issue_LP_intro(default_LPnodes[i],port,ipaddr,port,profitmargin,LP_numpeers)) != 0 )
{ {
//printf("(%s) -> %s\n",default_LPnodes[i],retstr); //printf("(%s) -> %s\n",default_LPnodes[i],retstr);
LP_notify(&LP_peerinfos[0],ipaddr,port,retstr); LP_notify(&LP_peerinfos[i],ipaddr,port,retstr);
//free(retstr); //free(retstr);
} }
} }

2
iguana/exchanges/mm.c

@ -163,7 +163,7 @@ char *issue_LP_intro(char *destip,uint16_t destport,char *ipaddr,uint16_t port,d
{ {
char url[512]; char url[512];
sprintf(url,"http://%s:%u/api/stats/intro?ipaddr=%s&port=%u&profit=%.6f&numpeers=%d",destip,destport,ipaddr,port,profitmargin,numpeers); sprintf(url,"http://%s:%u/api/stats/intro?ipaddr=%s&port=%u&profit=%.6f&numpeers=%d",destip,destport,ipaddr,port,profitmargin,numpeers);
//printf("(%s)\n",url); printf("(%s)\n",url);
return(issue_curl(url)); return(issue_curl(url));
} }

Loading…
Cancel
Save