From 12546443f1340d296b1558c41864b381a8a2dcfd Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 26 Oct 2016 08:55:51 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index d75089704..6923fa801 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -97,6 +97,7 @@ int32_t komodo_gateway_block(char *symbol,int32_t height,uint16_t port) break; if ( i == n ) retval = 0; + else printf("error i.%d vs n.%d\n",i,n); } free_json(json); } @@ -113,6 +114,8 @@ int32_t komodo_gateway_block(char *symbol,int32_t height,uint16_t port) void komodo_gateway_iteration(char *symbol) { char *retstr; int32_t i,kmdheight; cJSON *infoobj,*result; uint16_t port = 7771; + if ( KMDHEIGHT <= 0 ) + KMDHEIGHT = 1; if ( (retstr= komodo_issuemethod((char *)"getinfo",0,port)) != 0 ) { if ( (infoobj= cJSON_Parse(retstr)) != 0 )