Browse Source

Test

etomic
jl777 8 years ago
parent
commit
0c238430b5
  1. 2
      iguana/exchanges/LP_commands.c

2
iguana/exchanges/LP_commands.c

@ -413,7 +413,7 @@ int32_t LP_command(struct LP_peerinfo *mypeer,int32_t pubsock,cJSON *argjson,uin
nanomsg_tcpname(pairstr,mypeer->ipaddr,10000+(rand() % 10000)); nanomsg_tcpname(pairstr,mypeer->ipaddr,10000+(rand() % 10000));
if ( (utxo->pair= nn_socket(AF_SP,NN_PAIR)) < 0 ) if ( (utxo->pair= nn_socket(AF_SP,NN_PAIR)) < 0 )
printf("error creating utxo->pair\n"); printf("error creating utxo->pair\n");
else if ( nn_connect(utxo->pair,pairstr) >= 0 ) else if ( nn_bind(utxo->pair,pairstr) >= 0 )
{ {
//char str[65]; printf("destsatoshis %.8f %s t%u\n",dstr(Q.destsatoshis),bits256_str(str,Q.desthash),Q.quotetime); //char str[65]; printf("destsatoshis %.8f %s t%u\n",dstr(Q.destsatoshis),bits256_str(str,Q.desthash),Q.quotetime);
LP_requestinit(&R,Q.srchash,Q.desthash,base,Q.satoshis,rel,Q.destsatoshis,Q.timestamp,Q.quotetime,DEXselector); LP_requestinit(&R,Q.srchash,Q.desthash,base,Q.satoshis,rel,Q.destsatoshis,Q.timestamp,Q.quotetime,DEXselector);

Loading…
Cancel
Save