Browse Source

Test

etomic
jl777 7 years ago
parent
commit
86e4295c24
  1. 2
      crypto777/bitcoind_RPC.c
  2. 3
      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 )

3
iguana/exchanges/LP_utxo.c

@ -57,12 +57,15 @@ void cJSON_unregister(cJSON *item)
n = 0;
total = 0;
DL_FOREACH_SAFE(LP_cJSONlist,ptr,tmp)
{
if ( ptr->item != 0 && ptr->item->child != 0 )
{
if ( (tmpstr= jprint(ptr->item,0)) != 0 )
{
total += strlen(tmpstr);
free(tmpstr);
}
}
n++;
}
printf("total %d cJSON pending %s\n",n,mbstr(str,total));

Loading…
Cancel
Save