From efd963831fb0ef55c7a064c06b4dc33189ca2a15 Mon Sep 17 00:00:00 2001 From: Artem Pikulin Date: Fri, 8 Jun 2018 19:09:40 +0700 Subject: [PATCH] #62 Add "version" RPC method. --- iguana/exchanges/LP_commands.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index b42ab7a31..9df4c1581 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -176,7 +176,13 @@ getfee(coin)\n\ sleep(seconds=60)\n\ listtransactions(coin, address, count=10, skip=0)\n\ jpg(srcfile, destfile, power2=7, password, data="", required, ind=0)\n\ +version\n\ \"}")); + if ( strcmp(method,"version") == 0 ) { + retjson = cJSON_CreateObject(); + jaddstr(retjson,"result",MM_VERSION); + return(jprint(retjson,1)); + } if ( (base= jstr(argjson,"base")) == 0 ) base = "";