From c42b46db1aa5918df9ae974d37eb8cbc41e2a3a2 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 25 Oct 2016 19:47:58 -0300 Subject: [PATCH] test --- src/komodo_gateway.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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" {