From 8c327cae8316677038ba4d3527256c1a04e05633 Mon Sep 17 00:00:00 2001 From: jl777 Date: Mon, 4 Dec 2017 00:01:52 +0400 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 4 ++-- iguana/exchanges/LP_rpc.c | 2 +- iguana/exchanges/LP_stats.c | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index d9031b6df..af24bf929 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -603,7 +603,7 @@ instantdex_claim()\n\ } argjson = reqjson; } - else if ( strcmp(method,"getdPoW") == 0 ) + if ( strcmp(method,"getdPoW") == 0 ) retstr = clonestr("{\"result\":\"success\"}"); } else @@ -618,7 +618,7 @@ instantdex_claim()\n\ LP_dPoW_broadcast(ptr); retstr = clonestr("{\"result\":\"success\"}"); } - } + } // received response if ( strcmp(method,"swapstatus") == 0 ) return(LP_swapstatus_recv(argjson)); diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index b3a070f83..a9dcfe1e3 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -1031,7 +1031,7 @@ int32_t LP_txhasnotarization(bits256 *notarizedhashp,struct iguana_info *coin,bi { len >>= 1; decode_hex(script,len,hexstr); - iguana_rwbignum(0,&script[4],32,(uint8_t *)notarizedhashp); + iguana_rwbignum(0,&script[2],32,(uint8_t *)notarizedhashp); } } free_json(txobj); diff --git a/iguana/exchanges/LP_stats.c b/iguana/exchanges/LP_stats.c index ab3744c60..ba9486f13 100644 --- a/iguana/exchanges/LP_stats.c +++ b/iguana/exchanges/LP_stats.c @@ -77,7 +77,7 @@ char *LP_dPoW_recv(cJSON *argjson) return(clonestr("{\"result\":\"success\"}")); } -int32_t LP_dPoWheight(struct iguana_info *coin) // get dPoW protected height +/*int32_t LP_dPoWheight(struct iguana_info *coin) // get dPoW protected height { int32_t notarized,oldnotarized; if ( coin->electrum == 0 ) @@ -94,7 +94,7 @@ int32_t LP_dPoWheight(struct iguana_info *coin) // get dPoW protected height else if ( coin->notarized == 0 ) LP_dPoW_request(coin); return(coin->notarized); -} +}*/ void LP_tradecommand_log(cJSON *argjson) {