Browse Source

Test

etomic
jl777 7 years ago
parent
commit
e8a9c21e2d
  1. 1
      iguana/exchanges/LP_rpc.c
  2. 2
      iguana/exchanges/LP_utxos.c

1
iguana/exchanges/LP_rpc.c

@ -52,7 +52,6 @@ char *issue_LP_clientgetutxos(char *destip,uint16_t destport,char *coin,int32_t
{ {
char url[512]; char url[512];
sprintf(url,"http://%s:%u/api/stats/getutxos?coin=%s&lastn=%d&ipaddr=127.0.0.1&port=0",destip,destport,coin,lastn); sprintf(url,"http://%s:%u/api/stats/getutxos?coin=%s&lastn=%d&ipaddr=127.0.0.1&port=0",destip,destport,coin,lastn);
printf("getutxo.(%s)\n",url);
return(issue_curlt(url,LP_HTTP_TIMEOUT)); return(issue_curlt(url,LP_HTTP_TIMEOUT));
} }

2
iguana/exchanges/LP_utxos.c

@ -483,7 +483,7 @@ void LP_utxosquery(struct LP_peerinfo *mypeer,int32_t mypubsock,char *destipaddr
{ {
now = (uint32_t)time(NULL); now = (uint32_t)time(NULL);
LP_utxosparse(mypubsock,destipaddr,destport,retstr,now); LP_utxosparse(mypubsock,destipaddr,destport,retstr,now);
//printf("got.(%s)\n",retstr); printf("got.(%s)\n",retstr);
free(retstr); free(retstr);
/*i = 0; /*i = 0;
if ( lastn >= mypeer->numutxos ) if ( lastn >= mypeer->numutxos )

Loading…
Cancel
Save