This commit is contained in:
jl777
2016-11-06 12:04:45 -03:00
parent a7f0d3e492
commit 421ac11d04
2 changed files with 3 additions and 0 deletions

View File

@@ -101,6 +101,8 @@ bool AppInit(int argc, char* argv[])
fprintf(stderr,"call komodo_args NOTARY_PUBKEY.(%s)\n",NOTARY_PUBKEY.c_str());
while ( ASSETCHAIN_INIT == 0 )
{
if ( ASSETCHAINS_SYMBOL[0] != 0 )
komodo_gateway_iteration(ASSETCHAINS_SYMBOL);
sleep(1);
}
if (!boost::filesystem::is_directory(GetDataDir(false)))

View File

@@ -392,6 +392,7 @@ void komodo_gateway_iteration(char *symbol)
if ( KMDHEIGHT <= 0 )
KMDHEIGHT = 1;
KOMODO_REALTIME = 0;
printf("komodo_gateway_iteration\n");
if ( (retstr= komodo_issuemethod((char *)"getinfo",0,port)) != 0 )
{
if ( (infoobj= cJSON_Parse(retstr)) != 0 )