From 421ac11d044e5bed33b9b82cd6358f0dfd21e94b Mon Sep 17 00:00:00 2001 From: jl777 Date: Sun, 6 Nov 2016 12:04:45 -0300 Subject: [PATCH] test --- src/bitcoind.cpp | 2 ++ src/komodo_gateway.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/bitcoind.cpp b/src/bitcoind.cpp index 4ee421f0d..41773381f 100644 --- a/src/bitcoind.cpp +++ b/src/bitcoind.cpp @@ -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))) diff --git a/src/komodo_gateway.h b/src/komodo_gateway.h index a4170d504..82c4e7881 100644 --- a/src/komodo_gateway.h +++ b/src/komodo_gateway.h @@ -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 )