Browse Source

test

pull/4/head
jl777 8 years ago
parent
commit
421ac11d04
  1. 2
      src/bitcoind.cpp
  2. 1
      src/komodo_gateway.h

2
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)))

1
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 )

Loading…
Cancel
Save