jl777 7 years ago
parent
commit
f7af7a5b1d
  1. 4
      iguana/exchanges/LP_prices.c
  2. 2
      iguana/exchanges/LP_rpc.c

4
iguana/exchanges/LP_prices.c

@ -676,7 +676,7 @@ char *LP_orderbook(char *base,char *rel,int32_t duration)
for (i=0; i<numbids; i++)
{
jaddi(array,LP_orderbookjson(rel,bids[i]));
if ( i < 3 )
if ( i == 0 || relcoin->electrum == 0 )
LP_address(relcoin,bids[i]->coinaddr);
free(bids[i]);
bids[i] = 0;
@ -687,7 +687,7 @@ char *LP_orderbook(char *base,char *rel,int32_t duration)
for (i=0; i<numasks; i++)
{
jaddi(array,LP_orderbookjson(base,asks[i]));
if ( i < 3 )
if ( i == 0 || basecoin->electrum == 0 )
LP_address(basecoin,asks[i]->coinaddr);
free(asks[i]);
asks[i] = 0;

2
iguana/exchanges/LP_rpc.c

@ -459,7 +459,7 @@ void LP_listunspent_issue(char *symbol,char *coinaddr)
{
if ( electrum_process_array(coin,coinaddr,retjson) != 0 )
{
LP_postutxos(symbol);
LP_postutxos(symbol); // might be good to not saturate
}
}
//printf("rand %s listunspent.(%s) to %s:%u -> %s\n",symbol,coinaddr,destip,destport,retstr);

Loading…
Cancel
Save