diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 5ea3d004e..e94c4b074 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -92,10 +92,9 @@ void komodo_gateway_iteration(char *symbol) char *retstr; int32_t i,kmdheight; cJSON *infoobj,*result; uint16_t port = 7771; if ( (retstr= komodo_issuemethod((char *)"getinfo",0,port)) != 0 ) { - printf("GETINFO from.%s (%s)\n",ASSETCHAINS_SYMBOL,retstr); if ( (infoobj= cJSON_Parse(retstr)) != 0 ) { - if ( (result= jobj(infoobj,(char *)"result")) != 0 && (kmdheight= jint(infoobj,(char *)"blocks")) != 0 ) + if ( (result= jobj(infoobj,(char *)"result")) != 0 && (kmdheight= jint(result,(char *)"blocks")) != 0 ) { for (i=0; i<10000 && KMDHEIGHT