Browse Source

Test

etomic
jl777 8 years ago
parent
commit
518b3c5f2e
  1. 2
      iguana/exchanges/LP_ordermatch.c
  2. 2
      iguana/exchanges/LP_swap.c

2
iguana/exchanges/LP_ordermatch.c

@ -456,6 +456,7 @@ char *LP_connectedalice(cJSON *argjson) // alice
jaddnum(retjson,"quoteid",Q.R.quoteid); jaddnum(retjson,"quoteid",Q.R.quoteid);
} else jaddstr(retjson,"error","couldnt aliceloop"); } else jaddstr(retjson,"error","couldnt aliceloop");
} }
printf("connected result.(%s)\n",jprint(retjson,0));
if ( jobj(retjson,"error") != 0 ) if ( jobj(retjson,"error") != 0 )
LP_availableset(autxo); LP_availableset(autxo);
return(jprint(retjson,1)); return(jprint(retjson,1));
@ -463,6 +464,7 @@ char *LP_connectedalice(cJSON *argjson) // alice
else else
{ {
LP_availableset(autxo); LP_availableset(autxo);
printf("no privkey found\n");
return(clonestr("{\"error\",\"no privkey\"}")); return(clonestr("{\"error\",\"no privkey\"}"));
} }
} }

2
iguana/exchanges/LP_swap.c

@ -414,7 +414,7 @@ int32_t LP_waitfor(int32_t pairsock,struct basilisk_swap *swap,int32_t timeout,i
nn_freemsg(data); nn_freemsg(data);
//printf("retval.%d\n",retval); //printf("retval.%d\n",retval);
return(retval); return(retval);
} else printf("error nn_recv\n"); } // else printf("error nn_recv\n");
} }
printf("waitfor timedout\n"); printf("waitfor timedout\n");
return(retval); return(retval);

Loading…
Cancel
Save