Browse Source

Test

etomic
jl777 8 years ago
parent
commit
4db426791f
  1. 1
      iguana/exchanges/LP_remember.c
  2. 2
      iguana/exchanges/swapstatus

1
iguana/exchanges/LP_remember.c

@ -964,6 +964,7 @@ char *basilisk_swapfinished(uint32_t requestid,uint32_t quoteid)
for (i=0; i<n; i++)
{
item = jitem(array,i);
printf("check r%u/q%u\n",juint(item,"requestid"),juint(item,"quoteid"));
if ( juint(item,"requestid") == requestid && juint(item,"quoteid") == quoteid )
{
if ( jstr(item,"status") != 0 && strcmp(jstr(item,"status"),"finished") == 0 )

2
iguana/exchanges/swapstatus

@ -0,0 +1,2 @@
source userpass
curl --url "http://127.0.0.1:7779" --data "{\"userpass\":\"$userpass\",\"method\":\"swapstatus\",\"requestid\":2291973695,\"quoteid\":3387529385}"
Loading…
Cancel
Save