From 652ea55b86dab55f05cfee451ac89260df920fd3 Mon Sep 17 00:00:00 2001 From: jl777 Date: Tue, 24 Oct 2017 23:36:45 +0300 Subject: [PATCH] Test --- iguana/exchanges/LP_ordermatch.c | 1 + iguana/exchanges/LP_signatures.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/iguana/exchanges/LP_ordermatch.c b/iguana/exchanges/LP_ordermatch.c index 03793b9eb..b60ffaef5 100644 --- a/iguana/exchanges/LP_ordermatch.c +++ b/iguana/exchanges/LP_ordermatch.c @@ -408,6 +408,7 @@ char *LP_trade(void *ctx,char *myipaddr,int32_t mypubsock,struct LP_quoteinfo *q return(clonestr("{\"error\":\"cant find alice utxopair\"}")); } price = 0.; + qp->aliceid = LP_aliceid_calc(qp->desttxid,qp->destvout,qp->feetxid,qp->feevout); LP_query(ctx,myipaddr,mypubsock,"request",qp); LP_Alicequery = *qp, LP_Alicemaxprice = maxprice, Alice_expiration = qp->timestamp + timeout; return(clonestr("{\"result\":\"success\"}")); diff --git a/iguana/exchanges/LP_signatures.c b/iguana/exchanges/LP_signatures.c index 97fad7b84..a53c1ef6e 100644 --- a/iguana/exchanges/LP_signatures.c +++ b/iguana/exchanges/LP_signatures.c @@ -623,7 +623,7 @@ char *LP_uitem_recv(cJSON *argjson) //char str[65]; printf("uitem %s %s %s/v%d %.8f ht.%d\n",symbol,coinaddr,bits256_str(str,txid),vout,dstr(value),height); if ( strcmp(coin->smartaddr,coinaddr) != 0 ) LP_address_utxoadd("LP_uitem,recv",coin,coinaddr,txid,vout,value,height,-1); - else printf("ignore external uitem %s %s\n",symbol,coin->smartaddr); + //else printf("ignore external uitem %s %s\n",symbol,coin->smartaddr); } return(clonestr("{\"result\":\"success\"}")); }