Browse Source

Test

etomic
jl777 7 years ago
parent
commit
95848e89d7
  1. 2
      iguana/exchanges/LP_nativeDEX.c
  2. 3
      iguana/exchanges/LP_prices.c

2
iguana/exchanges/LP_nativeDEX.c

@ -612,7 +612,9 @@ int32_t LP_mainloop_iter(void *ctx,char *myipaddr,struct LP_peerinfo *mypeer,int
if ( strcmp(peer->ipaddr,myipaddr) != 0 )
{
nonz++;
#ifndef FROM_JS
LP_peersquery(mypeer,pubsock,peer->ipaddr,peer->port,myipaddr,myport);
#endif
peer->diduquery = 0;
LP_peer_pricesquery(peer);
LP_utxos_sync(peer);

3
iguana/exchanges/LP_prices.c

@ -344,6 +344,9 @@ void LP_peer_pricesquery(struct LP_peerinfo *peer)
peer->needping = (uint32_t)time(NULL);
if ( (retstr= issue_LP_getprices(peer->ipaddr,peer->port)) != 0 )
{
#ifdef FROM_JS
printf("%s\n",retstr);
#endif
if ( (array= cJSON_Parse(retstr)) != 0 )
{
if ( is_cJSON_Array(array) && (n= cJSON_GetArraySize(array)) > 0 )

Loading…
Cancel
Save