From 65505e2778b5a35d088595ebd1b52d776e933a29 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 9 Jul 2017 20:46:37 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 55a3800f4..34105ae2a 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -149,7 +149,7 @@ trust(pubkey, trust)\n\ if ( base != 0 && rel != 0 ) { 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\"}")); price = jdouble(argjson,"price"); if ( strcmp(method,"setprice") == 0 ) @@ -264,7 +264,7 @@ trust(pubkey, trust)\n\ 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\"}")); else if ( IAMLP == 0 && LP_isdisabled(jstr(argjson,"coin"),0) != 0 ) retstr = clonestr("{\"result\":\"coin is disabled\"}");