From 78dfd8926d0108b843eb71774e69f9001e0fc012 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 19 Oct 2017 22:31:12 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 2 +- iguana/exchanges/LP_rpc.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index d6b7eb916..ad7afcc73 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -225,6 +225,7 @@ stop()\n\ else if ( strcmp(method,"notarizations") == 0 ) { int32_t height; + printf("notarizations (%s)\n",coin); if ( (ptr= LP_coinsearch(coin)) != 0 ) { height = LP_notarization_latest(ptr); @@ -233,7 +234,6 @@ stop()\n\ jaddnum(retjson,"lastnotarization",height); return(jprint(retjson,1)); } else return(clonestr("{\"error\":\"cant find coin\"}")); - } else if ( strcmp(method,"autoprice") == 0 ) { diff --git a/iguana/exchanges/LP_rpc.c b/iguana/exchanges/LP_rpc.c index dc50f6fdc..4eabea042 100644 --- a/iguana/exchanges/LP_rpc.c +++ b/iguana/exchanges/LP_rpc.c @@ -1039,6 +1039,8 @@ int32_t LP_hasnotarization(struct iguana_info *coin,cJSON *blockjson) int32_t LP_notarization_latest(struct iguana_info *coin) { cJSON *blockjson; bits256 blockhash; int32_t height=-1,hasnotarization; + if ( coin->isassetchain == 0 ) + return(-1); memset(blockhash.bytes,0,sizeof(blockhash)); while ( 1 ) {