|
|
@ -270,8 +270,8 @@ int sort_balance(void *a,void *b) |
|
|
|
*/ |
|
|
|
aval = ((struct LP_address *)a)->balance; |
|
|
|
bval = ((struct LP_address *)b)->balance; |
|
|
|
printf("%.8f vs %.8f -> %d\n",dstr(aval),dstr(bval),(int32_t)(bval - aval)); |
|
|
|
return((int32_t)(bval - aval)); |
|
|
|
//printf("%.8f vs %.8f -> %d\n",dstr(aval),dstr(bval),(int32_t)(bval - aval));
|
|
|
|
return((aval == bval) ? 0 : ((aval < bval) ? -1 : 1)); |
|
|
|
} |
|
|
|
|
|
|
|
cJSON *LP_snapshot(struct iguana_info *coin,int32_t height) |
|
|
@ -342,7 +342,6 @@ 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); |
|
|
|