test
This commit is contained in:
@@ -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++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user