This commit is contained in:
jl777
2016-10-25 19:49:52 -03:00
parent c42b46db1a
commit 30f61477ac

View File

@@ -13,20 +13,20 @@
* *
******************************************************************************/
void komodo_gateway_iteration()
void komodo_gateway_iteration(char *symbol)
{
char *retstr; uint32_t n=0; static uint32_t r,counter=0;
if ( r == 0 )
r = rand();
if ( (counter++ % 10) == (r % 10) )
{
printf("%s calling getinfo %d\n",ASSETCHAINS_SYMBOL,n);
printf("%s calling getinfo %d\n",symbol,n);
if ( (retstr= komodo_issuemethod((char *)"getinfo",0,7771)) != 0 )
{
//printf("GETINFO from.%s (%s)\n",ASSETCHAINS_SYMBOL,retstr);
free(retstr);
n++;
} else printf("error from %s\n",ASSETCHAINS_SYMBOL);
} else printf("error from %s\n",symbol);
}
}