From 7435f2070c8b009576a900411906db71a05dd98e Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 17 Sep 2017 00:28:32 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index 3ad0e7473..ec67242fc 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -334,7 +334,11 @@ dividends(coin, height, )\n\ argjson = reqjson; } } - if ( IAMLP == 0 && LP_isdisabled(base,rel) != 0 ) + if ( strcmp(method,"postprice") == 0 ) + retstr = LP_postedprice(argjson); + else if ( strcmp(method,"postutxos") == 0 ) + retstr = LP_postedutxos(argjson); + else 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\"}"); @@ -352,10 +356,6 @@ dividends(coin, height, )\n\ retstr = clonestr("{\"result\":\"couldnt add utxo\"}"); //return(LP_numutxos()); } - else if ( strcmp(method,"postprice") == 0 ) - retstr = LP_postedprice(argjson); - else if ( strcmp(method,"postutxos") == 0 ) - retstr = LP_postedutxos(argjson); else if ( strcmp(method,"encrypted") == 0 ) retstr = clonestr("{\"result\":\"success\"}"); else if ( strcmp(method,"getprices") == 0 )