Browse Source

Test

etomic
jl777 8 years ago
parent
commit
d5af6b7c6a
  1. 5
      iguana/exchanges/LP_scan.c

5
iguana/exchanges/LP_scan.c

@ -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);

Loading…
Cancel
Save