Browse Source

Test

etomic
jl777 7 years ago
parent
commit
e8b2923ffc
  1. 4
      iguana/exchanges/LP_nativeDEX.c
  2. 2
      iguana/exchanges/LP_signatures.c
  3. 2
      iguana/exchanges/stats.c

4
iguana/exchanges/LP_nativeDEX.c

@ -1216,7 +1216,7 @@ int32_t zeroval() { return(0); }
void *LP_alloc(uint64_t len) void *LP_alloc(uint64_t len)
{ {
//return(calloc(1,len)); return(calloc(1,len));
LP_cjson_allocated += len; LP_cjson_allocated += len;
LP_cjson_total += len; LP_cjson_total += len;
LP_cjson_count++; LP_cjson_count++;
@ -1235,7 +1235,7 @@ void *LP_alloc(uint64_t len)
void LP_free(void *ptr) void LP_free(void *ptr)
{ {
static uint32_t lasttime,unknown; static int64_t lasttotal; static uint32_t lasttime,unknown; static int64_t lasttotal;
//free(ptr); return; free(ptr); return;
uint32_t now; char str[65]; int32_t n,lagging; uint64_t total = 0; struct LP_memory_list *mp,*tmp; uint32_t now; char str[65]; int32_t n,lagging; uint64_t total = 0; struct LP_memory_list *mp,*tmp;
if ( (now= (uint32_t)time(NULL)) > lasttime+1 ) if ( (now= (uint32_t)time(NULL)) > lasttime+1 )
{ {

2
iguana/exchanges/LP_signatures.c

@ -616,7 +616,7 @@ char *LP_notify_recv(cJSON *argjson)
void LP_smartutxos_push(struct iguana_info *coin) void LP_smartutxos_push(struct iguana_info *coin)
{ {
uint64_t value; bits256 zero,txid; int32_t i,vout,height,n; cJSON *array,*item,*req; uint64_t value; bits256 zero,txid; int32_t i,vout,height,n; cJSON *array,*item,*req;
return; return;
if ( coin->smartaddr[0] == 0 ) if ( coin->smartaddr[0] == 0 )
return; return;
//LP_notify_pubkeys(coin->ctx,LP_mypubsock); //LP_notify_pubkeys(coin->ctx,LP_mypubsock);

2
iguana/exchanges/stats.c

@ -32,7 +32,7 @@ char *stats_JSON(void *ctx,char *myipaddr,int32_t mypubsock,cJSON *argjson,char
char *stats_validmethods[] = char *stats_validmethods[] =
{ {
"psock", "getprices", "listunspent", "notify", "getpeers", "uitem", // from issue_ "psock", "getprices", "notify", "getpeers", // from issue_ "uitem", "listunspent",
"orderbook", "help", "getcoins", "pricearray", "balance", "tradestatus" "orderbook", "help", "getcoins", "pricearray", "balance", "tradestatus"
}; };

Loading…
Cancel
Save