diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index 2c61bbd0f..9c42772f9 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -13,6 +13,23 @@ * * ******************************************************************************/ +void komodo_gateway_iteration() +{ + 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); + 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); + } +} + void komodo_gateway_issuer() // "assetchain" {