This commit is contained in:
jl777
2016-10-26 07:56:26 -03:00
parent df2c4c3984
commit 830fc77491

View File

@@ -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<kmdheight; i++,KMDHEIGHT++)
{