From 9d5f9f2693253f8fe454a98be2923eec6396b113 Mon Sep 17 00:00:00 2001 From: jl777 Date: Sat, 3 Jun 2017 11:33:05 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index bb4ea07d7..bafe82548 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -231,7 +231,10 @@ cJSON *LP_tradecandidates(struct LP_utxoinfo *myutxo,char *base) { struct LP_peerinfo *peer,*tmp; struct LP_quoteinfo Q; char *utxostr,coinstr[16]; cJSON *array,*icopy,*retarray=0,*item; int32_t i,n; double price; int64_t estimatedbase; if ( (price= LP_price(base,myutxo->coin)) == .0 ) + { + printf("no LP_price\n"); return(0); + } estimatedbase = myutxo->satoshis / price; printf("%s -> %s price %.8f mysatoshis %llu estimated base %llu\n",base,myutxo->coin,price,(long long)myutxo->satoshis,(long long)estimatedbase); if ( estimatedbase <= 0 )