From e0476823fc02327374c9d4d77b62d6702c5fb6d8 Mon Sep 17 00:00:00 2001 From: jl777 Date: Thu, 12 Oct 2017 23:23:43 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_prices.c | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/iguana/exchanges/LP_prices.c b/iguana/exchanges/LP_prices.c index b7c9e04b0..9ceb2623e 100644 --- a/iguana/exchanges/LP_prices.c +++ b/iguana/exchanges/LP_prices.c @@ -770,7 +770,12 @@ char *LP_orderbook(char *base,char *rel,int32_t duration) { jaddi(array,LP_orderbookjson(rel,bids[i])); if ( bids[i]->numutxos == 0 )//|| relcoin->electrum == 0 ) - LP_address(relcoin,bids[i]->coinaddr), n++; + { + if ( relcoin->electrum == 0 ) + LP_listunspent_issue(rel,bids[i]->coinaddr); + else LP_address(relcoin,bids[i]->coinaddr); + n++; + } free(bids[i]); bids[i] = 0; } @@ -783,7 +788,12 @@ char *LP_orderbook(char *base,char *rel,int32_t duration) { jaddi(array,LP_orderbookjson(base,asks[i])); if ( asks[i]->numutxos == 0 )//|| basecoin->electrum == 0 ) - LP_address(basecoin,asks[i]->coinaddr), n++; + { + if ( basecoin->electrum == 0 ) + LP_listunspent_issue(base,asks[i]->coinaddr); + else LP_address(basecoin,asks[i]->coinaddr); + n++; + } free(asks[i]); asks[i] = 0; }