Browse Source

Test

etomic
jl777 8 years ago
parent
commit
429ccaf65b
  1. 3
      iguana/exchanges/LP_commands.c

3
iguana/exchanges/LP_commands.c

@ -59,6 +59,7 @@ void LP_command(struct LP_peerinfo *mypeer,int32_t pubsock,cJSON *argjson,uint8_
retjson = cJSON_CreateObject(); retjson = cJSON_CreateObject();
jaddstr(retjson,"base",base); jaddstr(retjson,"base",base);
jaddstr(retjson,"rel",rel); jaddstr(retjson,"rel",rel);
jaddstr(retjson,"address",utxo->coinaddr);
jaddnum(retjson,"timestamp",time(NULL)); jaddnum(retjson,"timestamp",time(NULL));
jaddnum(retjson,"price",price); jaddnum(retjson,"price",price);
jaddbits256(retjson,"txid",txid); jaddbits256(retjson,"txid",txid);
@ -131,9 +132,7 @@ void LP_command(struct LP_peerinfo *mypeer,int32_t pubsock,cJSON *argjson,uint8_
} }
else else
{ {
if ( pairstr != 0 )
printf("printf error nn_connect to %s\n",pairstr); printf("printf error nn_connect to %s\n",pairstr);
else printf("(%s) missing pair\n",jprint(argjson,0));
nn_close(utxo->pair); nn_close(utxo->pair);
utxo->pair = -1; utxo->pair = -1;
} }

Loading…
Cancel
Save