test
This commit is contained in:
@@ -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;
|
char *retstr; uint32_t n=0; static uint32_t r,counter=0;
|
||||||
if ( r == 0 )
|
if ( r == 0 )
|
||||||
r = rand();
|
r = rand();
|
||||||
if ( (counter++ % 10) == (r % 10) )
|
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 )
|
if ( (retstr= komodo_issuemethod((char *)"getinfo",0,7771)) != 0 )
|
||||||
{
|
{
|
||||||
//printf("GETINFO from.%s (%s)\n",ASSETCHAINS_SYMBOL,retstr);
|
//printf("GETINFO from.%s (%s)\n",ASSETCHAINS_SYMBOL,retstr);
|
||||||
free(retstr);
|
free(retstr);
|
||||||
n++;
|
n++;
|
||||||
} else printf("error from %s\n",ASSETCHAINS_SYMBOL);
|
} else printf("error from %s\n",symbol);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user