Browse Source

Test

etomic
jl777 7 years ago
parent
commit
86e4295c24
  1. 2
      crypto777/bitcoind_RPC.c
  2. 9
      iguana/exchanges/LP_utxo.c

2
crypto777/bitcoind_RPC.c

@ -56,7 +56,7 @@ char *post_process_bitcoind_RPC(char *debugstr,char *command,char *rpcstr,char *
char *retstr = 0;
cJSON *json,*result,*error;
#ifdef FROM_MARKETMAKER
usleep(5000);
usleep(3000);
#endif
//printf("<<<<<<<<<<< bitcoind_RPC: %s post_process_bitcoind_RPC.%s.[%s]\n",debugstr,command,rpcstr);
if ( command == 0 || rpcstr == 0 || rpcstr[0] == 0 )

9
iguana/exchanges/LP_utxo.c

@ -58,10 +58,13 @@ void cJSON_unregister(cJSON *item)
total = 0;
DL_FOREACH_SAFE(LP_cJSONlist,ptr,tmp)
{
if ( (tmpstr= jprint(ptr->item,0)) != 0 )
if ( ptr->item != 0 && ptr->item->child != 0 )
{
total += strlen(tmpstr);
free(tmpstr);
if ( (tmpstr= jprint(ptr->item,0)) != 0 )
{
total += strlen(tmpstr);
free(tmpstr);
}
}
n++;
}

Loading…
Cancel
Save