From 3ad520a08c944c0314f0b34669f334679d1e9f7d Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 24 Aug 2017 20:32:42 +0200 Subject: [PATCH] Test --- iguana/exchanges/LP_scan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_scan.c b/iguana/exchanges/LP_scan.c index cf339f98c..1c422441b 100644 --- a/iguana/exchanges/LP_scan.c +++ b/iguana/exchanges/LP_scan.c @@ -262,7 +262,7 @@ int32_t LP_scanblockchain(struct iguana_info *coin,int32_t startheight,int32_t e int sort_balance(void *a,void *b) { - uint64_t aval,bval; + int64_t aval,bval; /* compare a to b (cast a and b appropriately) * return (int) -1 if (a < b) * return (int) 0 if (a == b) @@ -341,6 +341,7 @@ cJSON *LP_snapshot(struct iguana_info *coin,int32_t height) } } } + printf("sort\n"); HASH_SORT(coin->addresses,sort_balance); portable_mutex_unlock(&coin->txmutex); printf("%s balance %.8f at height.%d\n",coin->symbol,dstr(balance),height);