Browse Source

Test

etomic
jl777 7 years ago
parent
commit
d6bbdc7db3
  1. 1
      iguana/exchanges/LP_nativeDEX.c
  2. 3
      iguana/exchanges/LP_stats.c

1
iguana/exchanges/LP_nativeDEX.c

@ -26,6 +26,7 @@
// portfolio value based on ask?
//
// else claim path
// swap memleak?
// dPoW security -> 4: KMD notarized, 5: BTC notarized, after next notary elections
// bigendian architectures need to use little endian for sighash calcs
// improve critical section detection when parallel trades

3
iguana/exchanges/LP_stats.c

@ -803,8 +803,9 @@ cJSON *LP_ohlc_json(struct LP_ohlc *bar,struct LP_ohlc *prevbar)
memset(&tmp,0,sizeof(tmp));
if ( bar->numtrades == 0 )
{
tmp = *prevbar;
memset(&tmp,0,sizeof(tmp));
tmp.timestamp = bar->timestamp;
tmp.close = bar->close;
tmp.numtrades = 0;
tmp.relsum = tmp.basesum = 0.;
} else tmp = *bar;

Loading…
Cancel
Save