From e6336ef2ef315ba55ed82595811819e80bb45824 Mon Sep 17 00:00:00 2001 From: jl777 Date: Wed, 7 Jun 2017 22:08:41 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_utxos.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/iguana/exchanges/LP_utxos.c b/iguana/exchanges/LP_utxos.c index 738392bd1..8d5c813da 100644 --- a/iguana/exchanges/LP_utxos.c +++ b/iguana/exchanges/LP_utxos.c @@ -281,7 +281,12 @@ int32_t LP_utxosparse(int32_t amclient,struct LP_peerinfo *mypeer,int32_t mypubs //printf("parse.(%s)\n",jprint(item,0)); utxo = LP_addutxo(amclient,mypeer,mypubsock,jstr(item,"coin"),txid,jint(item,"vout"),j64bits(item,"value"),jbits256(item,"txid2"),jint(item,"vout2"),j64bits(item,"value2"),jstr(item,"script"),jstr(item,"address"),argipaddr,argport,jdouble(item,"profit")); if ( utxo != 0 ) + { + struct LP_quoteinfo Q; + memset(&Q,0,sizeof(Q)); utxo->lasttime = now; + LP_query("price",&Q,utxo->ipaddr,utxo->port,utxo->coin,"KMD",utxo->mypub); + } } } // else printf("skip.(%s)\n",jprint(item,0)); }