From 9e6986cf273ff0a162d461d14bc4440b5d81a8ca Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 30 May 2017 14:52:40 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_commands.c | 3 +++ iguana/exchanges/LP_nativeDEX.c | 1 + 2 files changed, 4 insertions(+) diff --git a/iguana/exchanges/LP_commands.c b/iguana/exchanges/LP_commands.c index bac7fd116..c4c7ce92c 100644 --- a/iguana/exchanges/LP_commands.c +++ b/iguana/exchanges/LP_commands.c @@ -190,7 +190,10 @@ char *LP_quote(uint32_t reserved,char *base,char *rel,bits256 txid,int32_t vout, { struct LP_cacheinfo *ptr; if ( (ptr= LP_cacheadd(base,rel,txid,vout,price,satoshis)) != 0 ) + { +LP_cacheadd(base,rel,txid,vout,price,satoshis); return(clonestr("{\"result\":\"updated\"}")); + } else return(clonestr("{\"error\":\"nullptr\"}")); } diff --git a/iguana/exchanges/LP_nativeDEX.c b/iguana/exchanges/LP_nativeDEX.c index df3f186dc..d89d43726 100644 --- a/iguana/exchanges/LP_nativeDEX.c +++ b/iguana/exchanges/LP_nativeDEX.c @@ -405,6 +405,7 @@ int32_t LP_utxosparse(int32_t amclient,struct LP_peerinfo *mypeer,int32_t mypubs { txid = jbits256(item,"txid"); utxo = LP_addutxo(amclient,mypeer,mypubsock,jstr(item,"coin"),txid,jint(item,"vout"),SATOSHIDEN*jdouble(item,"value"),jbits256(item,"deposit"),jint(item,"dvout"),SATOSHIDEN * jdouble(item,"dvalue"),jstr(item,"script"),jstr(item,"address"),argipaddr,argport,jdouble(item,"profit")); + utxo = LP_addutxo(amclient,mypeer,mypubsock,jstr(item,"coin"),txid,jint(item,"vout"),SATOSHIDEN*jdouble(item,"value"),jbits256(item,"deposit"),jint(item,"dvout"),SATOSHIDEN * jdouble(item,"dvalue"),jstr(item,"script"),jstr(item,"address"),argipaddr,argport,jdouble(item,"profit")); if ( utxo != 0 ) utxo->lasttime = now; }