Browse Source

Test

etomic
jl777 8 years ago
parent
commit
65505e2778
  1. 4
      iguana/exchanges/LP_commands.c

4
iguana/exchanges/LP_commands.c

@ -149,7 +149,7 @@ trust(pubkey, trust)\n\
if ( base != 0 && rel != 0 ) if ( base != 0 && rel != 0 )
{ {
double price,bid,ask; double price,bid,ask;
if ( LP_isdisabled(base,rel) != 0 ) if ( IAMLP == 0 && LP_isdisabled(base,rel) != 0 )
return(clonestr("{\"error\":\"at least one of coins disabled\"}")); return(clonestr("{\"error\":\"at least one of coins disabled\"}"));
price = jdouble(argjson,"price"); price = jdouble(argjson,"price");
if ( strcmp(method,"setprice") == 0 ) if ( strcmp(method,"setprice") == 0 )
@ -264,7 +264,7 @@ trust(pubkey, trust)\n\
argjson = reqjson; argjson = reqjson;
} }
} }
if ( LP_isdisabled(base,rel) != 0 ) if ( IAMLP == 0 && LP_isdisabled(base,rel) != 0 )
return(clonestr("{\"result\":\"at least one of coins disabled\"}")); return(clonestr("{\"result\":\"at least one of coins disabled\"}"));
else if ( IAMLP == 0 && LP_isdisabled(jstr(argjson,"coin"),0) != 0 ) else if ( IAMLP == 0 && LP_isdisabled(jstr(argjson,"coin"),0) != 0 )
retstr = clonestr("{\"result\":\"coin is disabled\"}"); retstr = clonestr("{\"result\":\"coin is disabled\"}");

Loading…
Cancel
Save